Author Topic: Downloading and compiling Tremulous source on a Mac  (Read 110073 times)

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« on: June 03, 2007, 03:26:31 pm »
OK, I put together this guide by request. Compilation on mac is really quite simple once you have all the necessary applications and utilities, but it does help if you have at least a basic understanding of the command line. Open up your applications folder, look for Utilities, and find Terminal. Drop it into your dock, you're going to need it. Open it up, and you should be greeted with something like
Code: [Select]
Last login: Sun Jun  3 13:39:11 on console
Welcome to Darwin!
casino:~ ben$
From here, type pwd - print working directory
Code: [Select]
casino:~ ben$ pwd
/Users/ben
Your next command is cd - change directory. A special note: . is the current directory, .. is the parent directory (Users in this case)
Code: [Select]
casino:~ ben$ cd Documents/
casino:~/Documents ben$ pwd
/Users/ben/Documents
casino:~/Documents ben$ cd ..
casino:~ ben$ pwd
/Users/ben
Also useful is ls (that's LS in lowercase) which lists all files in the current directory.
Code: [Select]
casino:~ ben$ ls
Desktop   Library   Music     Public    base
Documents Movies    Pictures  Sites
That should be enough for now, time to move on to the important stuff. The first thing you'll need is Xcode Tools, a package of source code handling applications and utilities found on your OSX install disk. Find that disk, insert it, and install Xcode. You can now compile, but you still need something to compile - time to get some SVN.
http://metissian.com/projects/macosx/subversion/
Download the most recent version and follow instructions to install it - shouldn't be too hard. However, you can't actually use SVN until you've completed this next bit - probably the hardest - changed your PATH to find it.
New terminal command for you - echo. Simple enough, it prints the arguments you give it.
Code: [Select]
casino:~ ben$ echo these are some arguments
these are some arguments
Why is this useful? You can get it to print variables too. There are several variables the system uses, and you can read them by typing echo $VARIABLE (this will return nothing as there is no variable called $VARIABLE). Try for example:
Code: [Select]
casino:~ ben$ echo $TERM_PROGRAM
Apple_Terminal
The variable TERM_PROGRAM stores the name of the program you are using to access the command line. Why is all this important? Well, the variable PATH contains all the locations the command line looks for instructions on how to run your commands.
Code: [Select]
casino:~ ben$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin
so when you type pwd, the system searches /bin, /sbin, /usr/bin and /usr/sbin for a file named pwd and runs it. The trouble is, svn isn't in any of these, it's in /usr/local/bin (go have a look if you like, type ls /usr/local/bin to see all the files there). So we have to add /usr/local/bin to PATH. We do this using the following two commands:
Code: [Select]
PATH=$PATH:/usr/local/bin
export PATH
or even just:
Code: [Select]
export PATH=$PATH:/usr/local/binNow try this again:
Code: [Select]
casino:~ ben$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
There it is! And, you're ready. Use cd to change to the directory you want your tremulous source to go (don't worry, it will be contained in its own folder, so you don't have to make a folder to hold it in) and type the following to get the very latest in tremulous technology from the internets:
Code: [Select]
svn co svn://svn.icculus.org/tremulous/trunk tremulous-svnThen wait a bit - this could take a while. When it's done, and you see your command prompt again, you should have a folder called tremulous-svn (you specified this name in the command above, it could be lookatmeimafolder for all svn cares). Change directory into this folder, and type make. Wait a bit more, because this takes a while too. When that's done, though, you'll have successfully compiled Tremulous source for the first time! Your binaries are in build/release-darwin-x86/ (or -ppc/ if you are not on an intel mac), but you can't actually use any of them because you forgot to backport. No worries - you just need to look here:
http://www.mercenariesguild.net/patches/?do=details&task_id=2
You should decide what you want to do and pick a patch as appropriate, and download it to your code directory.
How do you use them? Like so:
Code: [Select]
patch -p0 < patchfile.patchwhile in the tremulous-svn directory and with the patch in the same directory. Then remake with the make command, and you're done - compatible binaries for you. To run either the client or the server you'll need to put the relevant pk3s - vms and data - in the base folder next to those binaries, then cd to the build/release-darwin-x86 directory and run ./tremulous.x86

If I've made this guide obscure anywhere, tell me.

Post-script: If you want the PATH command to be executed automatically on login, just put it in a file called .bash_profile in your home directory. Or, run this:
Code: [Select]
printf "#! /bin/bash\nexport PATH=$PATH:/usr/local/bin\n" > ~/.bash_profileNote that you'll need to do ls -A (show hidden files) to see this new file, as it starts with a .
« Last Edit: December 12, 2008, 11:31:24 pm by benmachine »
benmachine

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Downloading and compiling Tremulous source on a Mac
« Reply #1 on: June 03, 2007, 03:32:34 pm »
Thank you So much, Ben!
I'm glad that there's a Mac user who can help us all out with the in depth involvements of Trem.

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Downloading and compiling Tremulous source on a Mac
« Reply #2 on: June 03, 2007, 05:06:44 pm »
Hmm, well, I followed the instructions, however both of the times I tried to "make" the binaries, before and after applying the patch, I got errors:

What follows is the ENTIRE log:


Last login: Sun Jun  3 09:01:34 on ttyp1
Welcome to Darwin!
miles-computer:~ miles$
miles-computer:~ miles$ PATH=$PATH:/usr/local/bin
miles-computer:~ miles$ export PATH
miles-computer:~ miles$ svn co svn://svn.icculus.org/tremulous/trunk tremulous-svn
A    tremulous-svn/GPL
A    tremulous-svn/make-macosx-ub.sh
A    tremulous-svn/CC
A    tremulous-svn/ChangeLog
A    tremulous-svn/src
A    tremulous-svn/src/unix
A    tremulous-svn/src/unix/unix_glw.h
A    tremulous-svn/src/unix/linux_qgl.c
A    tremulous-svn/src/unix/linux_snd.c
A    tremulous-svn/src/unix/snapvectora.s
A    tremulous-svn/src/unix/qasm.h
A    tremulous-svn/src/unix/unix_shared.c
A    tremulous-svn/src/unix/sdl_glimp.c
A    tremulous-svn/src/unix/matha.s
A    tremulous-svn/src/unix/MacSupport
A    tremulous-svn/src/unix/MacSupport/SLA.r
A    tremulous-svn/src/unix/MacSupport/Tremulous.icns
A    tremulous-svn/src/unix/MacSupport/ioquake3.icns
A    tremulous-svn/src/unix/MacSupport/SLA-dmg.sh
A    tremulous-svn/src/unix/linux_local.h
A    tremulous-svn/src/unix/linux_joystick.c
A    tremulous-svn/src/unix/linux_signals.c
A    tremulous-svn/src/unix/snd_mixa.s
A    tremulous-svn/src/unix/ftola.s
A    tremulous-svn/src/unix/sdl_snd.c
A    tremulous-svn/src/unix/unix_main.c
A    tremulous-svn/src/unix/linux_glimp.c
A    tremulous-svn/src/unix/unix_net.c
A    tremulous-svn/src/SDL12
A    tremulous-svn/src/SDL12/include
A    tremulous-svn/src/SDL12/include/SDL_getenv.h
A    tremulous-svn/src/SDL12/include/SDL_mouse.h
A    tremulous-svn/src/SDL12/include/SDL_error.h
A    tremulous-svn/src/SDL12/include/close_code.h
A    tremulous-svn/src/SDL12/include/SDL_endian.h
A    tremulous-svn/src/SDL12/include/SDL_joystick.h
A    tremulous-svn/src/SDL12/include/SDL_byteorder.h
A    tremulous-svn/src/SDL12/include/SDL_keyboard.h
A    tremulous-svn/src/SDL12/include/SDL_audio.h
A    tremulous-svn/src/SDL12/include/SDL_mutex.h
A    tremulous-svn/src/SDL12/include/SDL_cpuinfo.h
A    tremulous-svn/src/SDL12/include/SDL_events.h
A    tremulous-svn/src/SDL12/include/SDL_cdrom.h
A    tremulous-svn/src/SDL12/include/SDL_types.h
A    tremulous-svn/src/SDL12/include/SDL_video.h
A    tremulous-svn/src/SDL12/include/SDL_thread.h
A    tremulous-svn/src/SDL12/include/SDL_copying.h
A    tremulous-svn/src/SDL12/include/SDL_rwops.h
A    tremulous-svn/src/SDL12/include/SDL_active.h
A    tremulous-svn/src/SDL12/include/begin_code.h
A    tremulous-svn/src/SDL12/include/SDL.h
A    tremulous-svn/src/SDL12/include/SDL_name.h
A    tremulous-svn/src/SDL12/include/SDL_timer.h
A    tremulous-svn/src/SDL12/include/SDL_loadso.h
A    tremulous-svn/src/SDL12/include/SDL_keysym.h
A    tremulous-svn/src/SDL12/include/SDL_quit.h
A    tremulous-svn/src/SDL12/include/SDL_syswm.h
A    tremulous-svn/src/SDL12/include/SDL_main.h
A    tremulous-svn/src/SDL12/include/SDL_opengl.h
A    tremulous-svn/src/SDL12/include/SDL_version.h
A    tremulous-svn/src/jpeg-6
A    tremulous-svn/src/jpeg-6/jddctmgr.c
A    tremulous-svn/src/jpeg-6/jdatadst.c
A    tremulous-svn/src/jpeg-6/jerror.c
A    tremulous-svn/src/jpeg-6/jmemansi.c
A    tremulous-svn/src/jpeg-6/jchuff.c
A    tremulous-svn/src/jpeg-6/jdtrans.c
A    tremulous-svn/src/jpeg-6/jdhuff.c
A    tremulous-svn/src/jpeg-6/jfdctfst.c
A    tremulous-svn/src/jpeg-6/jcmaster.c
A    tremulous-svn/src/jpeg-6/jerror.h
A    tremulous-svn/src/jpeg-6/jdmaster.c
A    tremulous-svn/src/jpeg-6/jchuff.h
A    tremulous-svn/src/jpeg-6/jidctfst.c
A    tremulous-svn/src/jpeg-6/jmemnobs.c
A    tremulous-svn/src/jpeg-6/jdhuff.h
A    tremulous-svn/src/jpeg-6/jcparam.c
A    tremulous-svn/src/jpeg-6/jcinit.c
A    tremulous-svn/src/jpeg-6/jquant1.c
A    tremulous-svn/src/jpeg-6/jquant2.c
A    tremulous-svn/src/jpeg-6/jcphuff.c
A    tremulous-svn/src/jpeg-6/jdct.h
A    tremulous-svn/src/jpeg-6/jmemname.c
A    tremulous-svn/src/jpeg-6/jdatasrc.c
A    tremulous-svn/src/jpeg-6/jccolor.c
A    tremulous-svn/src/jpeg-6/jcsample.c
A    tremulous-svn/src/jpeg-6/jcmarker.c
A    tremulous-svn/src/jpeg-6/jmemdos.c
A    tremulous-svn/src/jpeg-6/jmemmgr.c
A    tremulous-svn/src/jpeg-6/jdmarker.c
A    tremulous-svn/src/jpeg-6/jdsample.c
A    tremulous-svn/src/jpeg-6/jfdctflt.c
A    tremulous-svn/src/jpeg-6/jcapistd.c
A    tremulous-svn/src/jpeg-6/jmorecfg.h
A    tremulous-svn/src/jpeg-6/jdapistd.c
A    tremulous-svn/src/jpeg-6/jinclude.h
A    tremulous-svn/src/jpeg-6/jidctflt.c
A    tremulous-svn/src/jpeg-6/jctrans.c
A    tremulous-svn/src/jpeg-6/jversion.h
A    tremulous-svn/src/jpeg-6/jfdctint.c
A    tremulous-svn/src/jpeg-6/jpegint.h
A    tremulous-svn/src/jpeg-6/jidctint.c
A    tremulous-svn/src/jpeg-6/jcprepct.c
A    tremulous-svn/src/jpeg-6/jpegtran.c
A    tremulous-svn/src/jpeg-6/jutils.c
A    tremulous-svn/src/jpeg-6/README
A    tremulous-svn/src/jpeg-6/jdinput.c
A    tremulous-svn/src/jpeg-6/jdmerge.c
A    tremulous-svn/src/jpeg-6/jccoefct.c
A    tremulous-svn/src/jpeg-6/jdcoefct.c
A    tremulous-svn/src/jpeg-6/jpeglib.h
A    tremulous-svn/src/jpeg-6/jcomapi.c
A    tremulous-svn/src/jpeg-6/jconfig.h
A    tremulous-svn/src/jpeg-6/jdphuff.c
A    tremulous-svn/src/jpeg-6/jcmainct.c
A    tremulous-svn/src/jpeg-6/jidctred.c
A    tremulous-svn/src/jpeg-6/jdmainct.c
A    tremulous-svn/src/jpeg-6/jload.c
A    tremulous-svn/src/jpeg-6/jcapimin.c
A    tremulous-svn/src/jpeg-6/jdpostct.c
A    tremulous-svn/src/jpeg-6/jdapimin.c
A    tremulous-svn/src/jpeg-6/jdcolor.c
A    tremulous-svn/src/jpeg-6/jmemsys.h
A    tremulous-svn/src/jpeg-6/jcdctmgr.c
A    tremulous-svn/src/libs
A    tremulous-svn/src/libs/win32
A    tremulous-svn/src/libs/win32/libcurl.a
A    tremulous-svn/src/libs/macosx
A    tremulous-svn/src/libs/macosx/libSDL-1.2.0.dylib
A    tremulous-svn/src/libs/macosx/libSDLmain.a
A    tremulous-svn/src/master
A    tremulous-svn/src/master/servers.h
A    tremulous-svn/src/master/stats.c
A    tremulous-svn/src/master/messages.c
A    tremulous-svn/src/master/servers.c
A    tremulous-svn/src/master/master.c
A    tremulous-svn/src/master/Makefile
A    tremulous-svn/src/master/messages.h
A    tremulous-svn/src/master/common.h
A    tremulous-svn/src/libcurl
A    tremulous-svn/src/libcurl/curl
A    tremulous-svn/src/libcurl/curl/stdcheaders.h
A    tremulous-svn/src/libcurl/curl/multi.h
A    tremulous-svn/src/libcurl/curl/mprintf.h
A    tremulous-svn/src/libcurl/curl/easy.h
A    tremulous-svn/src/libcurl/curl/curlver.h
A    tremulous-svn/src/libcurl/curl/types.h
A    tremulous-svn/src/libcurl/curl/curl.h
A    tremulous-svn/src/AL
A    tremulous-svn/src/AL/al.h
A    tremulous-svn/src/AL/VERSION
A    tremulous-svn/src/AL/alc.h
A    tremulous-svn/src/AL/altypes.h
A    tremulous-svn/src/AL/alctypes.h
A    tremulous-svn/src/AL/alut.h
A    tremulous-svn/src/tools
A    tremulous-svn/src/tools/asm
A    tremulous-svn/src/tools/asm/ops.txt
A    tremulous-svn/src/tools/asm/cmdlib.h
A    tremulous-svn/src/tools/asm/lib.txt
A    tremulous-svn/src/tools/asm/q3asm.c
A    tremulous-svn/src/tools/asm/mathlib.h
A    tremulous-svn/src/tools/asm/notes.txt
A    tremulous-svn/src/tools/asm/README.Id
A    tremulous-svn/src/tools/asm/cmdlib.c
A    tremulous-svn/src/tools/asm/Makefile
A    tremulous-svn/src/tools/asm/opstrings.h
A    tremulous-svn/src/tools/lcc
A    tremulous-svn/src/tools/lcc/LOG
A    tremulous-svn/src/tools/lcc/cpp
A    tremulous-svn/src/tools/lcc/cpp/macro.c
A    tremulous-svn/src/tools/lcc/cpp/cpp.c
A    tremulous-svn/src/tools/lcc/cpp/getopt.c
A    tremulous-svn/src/tools/lcc/cpp/include.c
A    tremulous-svn/src/tools/lcc/cpp/tokens.c
A    tremulous-svn/src/tools/lcc/cpp/unix.c
A    tremulous-svn/src/tools/lcc/cpp/hideset.c
A    tremulous-svn/src/tools/lcc/cpp/cpp.h
A    tremulous-svn/src/tools/lcc/cpp/eval.c
A    tremulous-svn/src/tools/lcc/cpp/lex.c
A    tremulous-svn/src/tools/lcc/cpp/nlist.c
A    tremulous-svn/src/tools/lcc/doc
A    tremulous-svn/src/tools/lcc/doc/lcc.1
A    tremulous-svn/src/tools/lcc/doc/4.html
A    tremulous-svn/src/tools/lcc/doc/bprint.pdf
A    tremulous-svn/src/tools/lcc/doc/install.html
A    tremulous-svn/src/tools/lcc/doc/lcc.pdf
A    tremulous-svn/src/tools/lcc/doc/bprint.1
A    tremulous-svn/src/tools/lcc/src
A    tremulous-svn/src/tools/lcc/src/trace.c
A    tremulous-svn/src/tools/lcc/src/bytecode.c
A    tremulous-svn/src/tools/lcc/src/output.c
A    tremulous-svn/src/tools/lcc/src/init.c
A    tremulous-svn/src/tools/lcc/src/types.c
A    tremulous-svn/src/tools/lcc/src/string.c
A    tremulous-svn/src/tools/lcc/src/dagcheck.md
A    tremulous-svn/src/tools/lcc/src/decl.c
A    tremulous-svn/src/tools/lcc/src/sym.c
A    tremulous-svn/src/tools/lcc/src/simp.c
A    tremulous-svn/src/tools/lcc/src/null.c
A    tremulous-svn/src/tools/lcc/src/config.h
A    tremulous-svn/src/tools/lcc/src/stmt.c
A    tremulous-svn/src/tools/lcc/src/error.c
A    tremulous-svn/src/tools/lcc/src/enode.c
A    tremulous-svn/src/tools/lcc/src/dag.c
A    tremulous-svn/src/tools/lcc/src/profio.c
A    tremulous-svn/src/tools/lcc/src/tree.c
A    tremulous-svn/src/tools/lcc/src/input.c
A    tremulous-svn/src/tools/lcc/src/prof.c
A    tremulous-svn/src/tools/lcc/src/gen.c
A    tremulous-svn/src/tools/lcc/src/list.c
A    tremulous-svn/src/tools/lcc/src/bind.c
A    tremulous-svn/src/tools/lcc/src/expr.c
A    tremulous-svn/src/tools/lcc/src/symbolic.c
A    tremulous-svn/src/tools/lcc/src/event.c
A    tremulous-svn/src/tools/lcc/src/main.c
A    tremulous-svn/src/tools/lcc/src/token.h
A    tremulous-svn/src/tools/lcc/src/inits.c
A    tremulous-svn/src/tools/lcc/src/c.h
A    tremulous-svn/src/tools/lcc/src/lex.c
A    tremulous-svn/src/tools/lcc/src/alloc.c
A    tremulous-svn/src/tools/lcc/COPYRIGHT
A    tremulous-svn/src/tools/lcc/README.id
A    tremulous-svn/src/tools/lcc/etc
A    tremulous-svn/src/tools/lcc/etc/bytecode.c
A    tremulous-svn/src/tools/lcc/etc/lcc.c
A    tremulous-svn/src/tools/lcc/lburg
A    tremulous-svn/src/tools/lcc/lburg/lburg.h
A    tremulous-svn/src/tools/lcc/lburg/gram.c
A    tremulous-svn/src/tools/lcc/lburg/lburg.1
A    tremulous-svn/src/tools/lcc/lburg/lburg.c
A    tremulous-svn/src/tools/lcc/lburg/gram.y
A    tremulous-svn/src/tools/lcc/Makefile
A    tremulous-svn/src/tools/lcc/README
A    tremulous-svn/src/win32
A    tremulous-svn/src/win32/win_gamma.c
A    tremulous-svn/src/win32/win_qgl.c
A    tremulous-svn/src/win32/win_main.c
A    tremulous-svn/src/win32/win_snd.c
A    tremulous-svn/src/win32/win_net.c
A    tremulous-svn/src/win32/win_shared.c
A    tremulous-svn/src/win32/win_glimp.c
A    tremulous-svn/src/win32/win_resource.rc
A    tremulous-svn/src/win32/win_wndproc.c
A    tremulous-svn/src/win32/glw_win.h
A    tremulous-svn/src/win32/win_syscon.c
A    tremulous-svn/src/win32/resource.h
A    tremulous-svn/src/win32/win_input.c
A    tremulous-svn/src/win32/win_local.h
A    tremulous-svn/src/server
A    tremulous-svn/src/server/sv_world.c
A    tremulous-svn/src/server/sv_ccmds.c
A    tremulous-svn/src/server/sv_game.c
A    tremulous-svn/src/server/sv_rankings.c
A    tremulous-svn/src/server/sv_client.c
A    tremulous-svn/src/server/sv_net_chan.c
A    tremulous-svn/src/server/sv_snapshot.c
A    tremulous-svn/src/server/server.h
A    tremulous-svn/src/server/sv_init.c
A    tremulous-svn/src/server/sv_main.c
A    tremulous-svn/src/renderer
A    tremulous-svn/src/renderer/tr_mesh.c
A    tremulous-svn/src/renderer/tr_scene.c
A    tremulous-svn/src/renderer/tr_local.h
A    tremulous-svn/src/renderer/tr_model.c
A    tremulous-svn/src/renderer/tr_init.c
A    tremulous-svn/src/renderer/tr_font.c
A    tremulous-svn/src/renderer/tr_shade_calc.c
A    tremulous-svn/src/renderer/tr_shader.c
A    tremulous-svn/src/renderer/tr_sky.c
A    tremulous-svn/src/renderer/tr_light.c
A    tremulous-svn/src/renderer/tr_shadows.c
A    tremulous-svn/src/renderer/qgl_linked.h
A    tremulous-svn/src/renderer/tr_types.h
A    tremulous-svn/src/renderer/tr_flares.c
A    tremulous-svn/src/renderer/tr_marks.c
A    tremulous-svn/src/renderer/tr_noise.c
A    tremulous-svn/src/renderer/tr_animation.c
A    tremulous-svn/src/renderer/tr_image.c
A    tremulous-svn/src/renderer/qgl.h
A    tremulous-svn/src/renderer/tr_public.h
A    tremulous-svn/src/renderer/tr_main.c
A    tremulous-svn/src/renderer/tr_curve.c
A    tremulous-svn/src/renderer/tr_bsp.c
A    tremulous-svn/src/renderer/tr_shade.c
A    tremulous-svn/src/renderer/tr_cmds.c
A    tremulous-svn/src/renderer/tr_backend.c
A    tremulous-svn/src/renderer/tr_world.c
A    tremulous-svn/src/renderer/tr_surface.c
A    tremulous-svn/src/qcommon
A    tremulous-svn/src/qcommon/cm_test.c
A    tremulous-svn/src/qcommon/vm_local.h
A    tremulous-svn/src/qcommon/cm_public.h
A    tremulous-svn/src/qcommon/q_platform.h
A    tremulous-svn/src/qcommon/q_math.c
A    tremulous-svn/src/qcommon/surfaceflags.h
A    tremulous-svn/src/qcommon/cm_local.h
A    tremulous-svn/src/qcommon/cm_patch.c
A    tremulous-svn/src/qcommon/net_chan.c
A    tremulous-svn/src/qcommon/cm_patch.h
A    tremulous-svn/src/qcommon/md4.c
A    tremulous-svn/src/qcommon/md5.c
A    tremulous-svn/src/qcommon/q_shared.c
A    tremulous-svn/src/qcommon/vm_x86.c
A    tremulous-svn/src/qcommon/cm_polylib.c
A    tremulous-svn/src/qcommon/q_shared.h
A    tremulous-svn/src/qcommon/vm_ppc_new.c
A    tremulous-svn/src/qcommon/cm_load.c
A    tremulous-svn/src/qcommon/cm_polylib.h
A    tremulous-svn/src/qcommon/vm_x86_64.c
A    tremulous-svn/src/qcommon/vm_none.c
A    tremulous-svn/src/qcommon/files.c
A    tremulous-svn/src/qcommon/cmd.c
A    tremulous-svn/src/qcommon/unzip.c
A    tremulous-svn/src/qcommon/unzip.h
A    tremulous-svn/src/qcommon/parse.c
A    tremulous-svn/src/qcommon/cm_trace.c
A    tremulous-svn/src/qcommon/qcommon.h
A    tremulous-svn/src/qcommon/vm.c
A    tremulous-svn/src/qcommon/huffman.c
A    tremulous-svn/src/qcommon/vm_ppc.c
A    tremulous-svn/src/qcommon/msg.c
A    tremulous-svn/src/qcommon/vm_interpreted.c
A    tremulous-svn/src/qcommon/qfiles.h
A    tremulous-svn/src/qcommon/common.c
A    tremulous-svn/src/qcommon/cvar.c
A    tremulous-svn/src/game
A    tremulous-svn/src/game/g_spawn.c
A    tremulous-svn/src/game/bg_slidemove.c
A    tremulous-svn/src/game/g_syscalls.asm
A    tremulous-svn/src/game/g_syscalls.c
A    tremulous-svn/src/game/bg_misc.c
A    tremulous-svn/src/game/tremulous.h
A    tremulous-svn/src/game/g_svcmds.c
A    tremulous-svn/src/game/g_local.h
A    tremulous-svn/src/game/g_ptr.c
A    tremulous-svn/src/game/g_combat.c
A    tremulous-svn/src/game/g_active.c
A    tremulous-svn/src/game/g_mem.c
A    tremulous-svn/src/game/g_session.c
A    tremulous-svn/src/game/g_public.h
A    tremulous-svn/src/game/g_buildable.c
A    tremulous-svn/src/game/g_main.c
A    tremulous-svn/src/game/g_target.c
A    tremulous-svn/src/game/g_mover.c
A    tremulous-svn/src/game/bg_pmove.c
A    tremulous-svn/src/game/g_admin.c
A    tremulous-svn/src/game/g_weapon.c
A    tremulous-svn/src/game/g_misc.c
A    tremulous-svn/src/game/g_maprotation.c
A    tremulous-svn/src/game/g_admin.h
A    tremulous-svn/src/game/g_utils.c
A    tremulous-svn/src/game/bg_local.h
A    tremulous-svn/src/game/g_trigger.c
A    tremulous-svn/src/game/g_missile.c
A    tremulous-svn/src/game/bg_lib.c
A    tremulous-svn/src/game/bg_lib.h
A    tremulous-svn/src/game/g_client.c
A    tremulous-svn/src/game/g_physics.c
A    tremulous-svn/src/game/bg_public.h
A    tremulous-svn/src/game/g_team.c
A    tremulous-svn/src/game/g_cmds.c
A    tremulous-svn/src/null
A    tremulous-svn/src/null/null_main.c
A    tremulous-svn/src/null/null_net.c
A    tremulous-svn/src/null/null_snddma.c
A    tremulous-svn/src/null/null_glimp.c
A    tremulous-svn/src/null/mac_net.c
A    tremulous-svn/src/null/null_client.c
A    tremulous-svn/src/null/null_input.c
A    tremulous-svn/src/cgame
A    tremulous-svn/src/cgame/cg_particles.c
A    tremulous-svn/src/cgame/cg_attachment.c
A    tremulous-svn/src/cgame/cg_scanner.c
A    tremulous-svn/src/cgame/cg_predict.c
A    tremulous-svn/src/cgame/cg_syscalls.asm
A    tremulous-svn/src/cgame/cg_playerstate.c
A    tremulous-svn/src/cgame/cg_draw.c
A    tremulous-svn/src/cgame/cg_syscalls.c
A    tremulous-svn/src/cgame/cg_trails.c
A    tremulous-svn/src/cgame/cg_local.h
A    tremulous-svn/src/cgame/cg_snapshot.c
A    tremulous-svn/src/cgame/cg_tutorial.c
A    tremulous-svn/src/cgame/cg_ptr.c
A    tremulous-svn/src/cgame/cg_ents.c
A    tremulous-svn/src/cgame/cg_consolecmds.c
A    tremulous-svn/src/cgame/cg_view.c
A    tremulous-svn/src/cgame/cg_weapons.c
A    tremulous-svn/src/cgame/cg_marks.c
A    tremulous-svn/src/cgame/cg_animmapobj.c
A    tremulous-svn/src/cgame/cg_servercmds.c
A    tremulous-svn/src/cgame/cg_mem.c
A    tremulous-svn/src/cgame/cg_drawtools.c
A    tremulous-svn/src/cgame/cg_players.c
A    tremulous-svn/src/cgame/cg_animation.c
A    tremulous-svn/src/cgame/cg_event.c
A    tremulous-svn/src/cgame/cg_buildable.c
A    tremulous-svn/src/cgame/cg_public.h
A    tremulous-svn/src/cgame/cg_main.c
A    tremulous-svn/src/ui
A    tremulous-svn/src/ui/ui_atoms.c
A    tremulous-svn/src/ui/ui_public.h
A    tremulous-svn/src/ui/ui_main.c
A    tremulous-svn/src/ui/ui_gameinfo.c
A    tremulous-svn/src/ui/ui_shared.c
A    tremulous-svn/src/ui/ui_shared.h
A    tremulous-svn/src/ui/ui_syscalls.asm
A    tremulous-svn/src/ui/ui_syscalls.c
A    tremulous-svn/src/ui/ui_local.h
A    tremulous-svn/src/ui/ui_players.c
A    tremulous-svn/src/client
A    tremulous-svn/src/client/snd_codec_wav.c
A    tremulous-svn/src/client/snd_mix.c
A    tremulous-svn/src/client/cl_main.c
A    tremulous-svn/src/client/snd_local.h
A    tremulous-svn/src/client/snd_dma.c
A    tremulous-svn/src/client/keycodes.h
A    tremulous-svn/src/client/snd_wavelet.c
A    tremulous-svn/src/client/cl_input.c
A    tremulous-svn/src/client/qal.c
A    tremulous-svn/src/client/snd_codec_ogg.c
A    tremulous-svn/src/client/keys.h
A    tremulous-svn/src/client/cl_console.c
A    tremulous-svn/src/client/snd_codec.c
A    tremulous-svn/src/client/qal.h
A    tremulous-svn/src/client/snd_mem.c
A    tremulous-svn/src/client/snd_openal.c
A    tremulous-svn/src/client/client.h
A    tremulous-svn/src/client/cl_scrn.c
A    tremulous-svn/src/client/cl_curl.c
A    tremulous-svn/src/client/snd_codec.h
A    tremulous-svn/src/client/cl_cin.c
A    tremulous-svn/src/client/snd_public.h
A    tremulous-svn/src/client/cl_parse.c
A    tremulous-svn/src/client/cl_curl.h
A    tremulous-svn/src/client/snd_adpcm.c
A    tremulous-svn/src/client/snd_main.c
A    tremulous-svn/src/client/cl_keys.c
A    tremulous-svn/src/client/cl_cgame.c
A    tremulous-svn/src/client/cl_ui.c
A    tremulous-svn/src/client/cl_net_chan.c
A    tremulous-svn/src/client/cl_avi.c
A    tremulous-svn/COPYING
A    tremulous-svn/misc
A    tremulous-svn/misc/entities.def
A    tremulous-svn/misc/tremulous.xpm
A    tremulous-svn/misc/server.cfg
A    tremulous-svn/misc/manual.lyx
A    tremulous-svn/misc/tremulous.ico
A    tremulous-svn/misc/merge-ioq3-into-trem.sh
A    tremulous-svn/cross-make-mingw.sh
A    tremulous-svn/Makefile
A    tremulous-svn/ui
A    tremulous-svn/ui/loading.menu
A    tremulous-svn/ui/tremulous_alienupgrade.menu
A    tremulous-svn/ui/teamscore.menu
A    tremulous-svn/ui/serverinfo.menu
A    tremulous-svn/ui/main.menu
A    tremulous-svn/ui/joinserver.menu
A    tremulous-svn/ui/tremulous_alienbuild.menu
A    tremulous-svn/ui/error.menu
A    tremulous-svn/ui/tremulous_humandialogs.menu
A    tremulous-svn/ui/tremulous_alienclass.menu
A    tremulous-svn/ui/assets
A    tremulous-svn/ui/assets/alien
A    tremulous-svn/ui/assets/alien/buildstat.cfg
A    tremulous-svn/ui/assets/human
A    tremulous-svn/ui/assets/human/buildstat.cfg
A    tremulous-svn/ui/password.menu
A    tremulous-svn/ui/createfavorite.menu
A    tremulous-svn/ui/tremulous_alien_general_hud.menu
A    tremulous-svn/ui/tremulous_teamselect.menu
A    tremulous-svn/ui/menudef.h
A    tremulous-svn/ui/tremulous_humanarmoury.menu
A    tremulous-svn/ui/tremulous_humanitem.menu
A    tremulous-svn/ui/ptrc.menu
A    tremulous-svn/ui/tremulous_aliendialogs.menu
A    tremulous-svn/ui/ingame.txt
A    tremulous-svn/ui/ingame_leave.menu
A    tremulous-svn/ui/tremulous_alien_builder_hud.menu
A    tremulous-svn/ui/quitcredit.menu
A    tremulous-svn/ui/mod.menu
A    tremulous-svn/ui/generate-infopanes.sh
A    tremulous-svn/ui/quit.menu
A    tremulous-svn/ui/tremulous_human_hud.menu
A    tremulous-svn/ui/connect.menu
A    tremulous-svn/ui/ingame_game.menu
A    tremulous-svn/ui/createserver.menu
A    tremulous-svn/ui/options.menu
A    tremulous-svn/ui/hud.txt
A    tremulous-svn/ui/findplayer.menu
A    tremulous-svn/ui/ingame.menu
A    tremulous-svn/ui/menus.txt
A    tremulous-svn/ui/infopanes.def.h
A    tremulous-svn/ui/tremulous_default_hud.menu
A    tremulous-svn/ui/drop.menu
A    tremulous-svn/ui/tremulous_humanbuild.menu
A    tremulous-svn/ui/tremulous.txt
A    tremulous-svn/ui/ingame_options.menu
Checked out revision 940.
miles-computer:~ miles$ cd svn-tremulous
-bash: cd: svn-tremulous: No such file or directory
miles-computer:~ miles$ ls
Applications    Library         Pando Packages  Sites
Desktop         Movies          Pictures        tremulous-svn
Documents       Music           Public          usr
miles-computer:~ miles$ cd tremulous-svn
miles-computer:~/tremulous-svn miles$ make
make -C src/tools/lcc install
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-darwin-x86/etc/lcc.o etc/lcc.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-darwin-x86/etc/bytecode.o etc/bytecode.c
gcc  -o build-darwin-x86/q3lcc build-darwin-x86/etc/lcc.o build-darwin-x86/etc/bytecode.o
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/cpp.o cpp/cpp.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/lex.o cpp/lex.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/nlist.o cpp/nlist.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/tokens.o cpp/tokens.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/macro.o cpp/macro.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/eval.o cpp/eval.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/include.o cpp/include.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/hideset.o cpp/hideset.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/getopt.o cpp/getopt.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Icpp -o build-darwin-x86/cpp/unix.o cpp/unix.c
gcc  -o build-darwin-x86/q3cpp build-darwin-x86/cpp/cpp.o build-darwin-x86/cpp/lex.o build-darwin-x86/cpp/nlist.o build-darwin-x86/cpp/tokens.o build-darwin-x86/cpp/macro.o build-darwin-x86/cpp/eval.o build-darwin-x86/cpp/include.o build-darwin-x86/cpp/hideset.o build-darwin-x86/cpp/getopt.o build-darwin-x86/cpp/unix.o
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/alloc.o src/alloc.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/bind.o src/bind.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/bytecode.o src/bytecode.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/dag.o src/dag.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Ilburg -o build-darwin-x86/lburg/lburg.o lburg/lburg.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Ilburg -o build-darwin-x86/lburg/gram.o lburg/gram.c
gcc  -o build-darwin-x86/lburg/lburg build-darwin-x86/lburg/lburg.o build-darwin-x86/lburg/gram.o
build-darwin-x86/lburg/lburg src/dagcheck.md build-darwin-x86/rcc/dagcheck.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -Wno-unused -c -Isrc -o build-darwin-x86/rcc/dagcheck.o build-darwin-x86/rcc/dagcheck.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/decl.o src/decl.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/enode.o src/enode.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/error.o src/error.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/event.o src/event.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/expr.o src/expr.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/gen.o src/gen.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/init.o src/init.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/inits.o src/inits.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/input.o src/input.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/lex.o src/lex.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/list.o src/list.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/main.o src/main.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/null.o src/null.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/output.o src/output.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/prof.o src/prof.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/profio.o src/profio.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/simp.o src/simp.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/stmt.o src/stmt.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/string.o src/string.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/sym.o src/sym.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/symbolic.o src/symbolic.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/trace.o src/trace.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/tree.o src/tree.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -DMACOS_X -c -Isrc -o build-darwin-x86/rcc/types.o src/types.c
gcc  -o build-darwin-x86/q3rcc build-darwin-x86/rcc/alloc.o build-darwin-x86/rcc/bind.o build-darwin-x86/rcc/bytecode.o build-darwin-x86/rcc/dag.o build-darwin-x86/rcc/dagcheck.o build-darwin-x86/rcc/decl.o build-darwin-x86/rcc/enode.o build-darwin-x86/rcc/error.o build-darwin-x86/rcc/event.o build-darwin-x86/rcc/expr.o build-darwin-x86/rcc/gen.o build-darwin-x86/rcc/init.o build-darwin-x86/rcc/inits.o build-darwin-x86/rcc/input.o build-darwin-x86/rcc/lex.o build-darwin-x86/rcc/list.o build-darwin-x86/rcc/main.o build-darwin-x86/rcc/null.o build-darwin-x86/rcc/output.o build-darwin-x86/rcc/prof.o build-darwin-x86/rcc/profio.o build-darwin-x86/rcc/simp.o build-darwin-x86/rcc/stmt.o build-darwin-x86/rcc/string.o build-darwin-x86/rcc/sym.o build-darwin-x86/rcc/symbolic.o build-darwin-x86/rcc/trace.o build-darwin-x86/rcc/tree.o build-darwin-x86/rcc/types.o
install -s -m 0755 build-darwin-x86/q3lcc ../
install -s -m 0755 build-darwin-x86/q3cpp ../
install -s -m 0755 build-darwin-x86/q3rcc ../
make -C src/tools/asm install
gcc -O2 -Wall -Werror -fno-strict-aliasing -o q3asm q3asm.c cmdlib.c
install -s -m 0755 q3asm ../
make targets B=build/release-darwin-x86 CFLAGS="  -Wall -Wimplicit -Wstrict-prototypes -mstackrealign -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Isrc/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\\\"1.1.0_SVN940\\\" -DNDEBUG  -march=prescott -mfpmath=sse -ffast-math -falign-loops=16 -MMD"
gcc -mdynamic-no-pic -DDEDICATED -Wall -Wimplicit -Wstrict-prototypes -mstackrealign -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Isrc/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\"1.1.0_SVN940\" -DNDEBUG  -march=prescott -mfpmath=sse -ffast-math -falign-loops=16 -MMD -o build/release-darwin-x86/ded/sv_client.o -c src/server/sv_client.c
cc1: error: invalid option 'stackrealign'
make[1]: *** [build/release-darwin-x86/ded/sv_client.o] Error 1
make: *** [build_release] Error 2
miles-computer:~/tremulous-svn miles$ patch -p0 < backportlight.patch
patching file src/game/bg_public.h
patching file src/qcommon/common.c
patching file src/qcommon/msg.c
patching file src/qcommon/qcommon.h
miles-computer:~/tremulous-svn miles$ make
make -C src/tools/lcc install
install -s -m 0755 build-darwin-x86/q3lcc ../
install -s -m 0755 build-darwin-x86/q3cpp ../
install -s -m 0755 build-darwin-x86/q3rcc ../
make -C src/tools/asm install
install -s -m 0755 q3asm ../
make targets B=build/release-darwin-x86 CFLAGS="  -Wall -Wimplicit -Wstrict-prototypes -mstackrealign -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Isrc/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\\\"1.1.0_SVN940M\\\" -DNDEBUG  -march=prescott -mfpmath=sse -ffast-math -falign-loops=16 -MMD"
gcc -mdynamic-no-pic -DDEDICATED -Wall -Wimplicit -Wstrict-prototypes -mstackrealign -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Isrc/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\"1.1.0_SVN940M\" -DNDEBUG  -march=prescott -mfpmath=sse -ffast-math -falign-loops=16 -MMD -o build/release-darwin-x86/ded/sv_client.o -c src/server/sv_client.c
cc1: error: invalid option 'stackrealign'
make[1]: *** [build/release-darwin-x86/ded/sv_client.o] Error 1
make: *** [build_release] Error 2
miles-computer:~/tremulous-svn miles$


Do your eyes hurt after reading that? Mine did =]


Please Help

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« Reply #3 on: June 03, 2007, 05:46:13 pm »
I am totally confused by this. It's not an error in the source (I don't think) and his version of gcc is the same as mine.
benmachine

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Downloading and compiling Tremulous source on a Mac
« Reply #4 on: June 03, 2007, 06:06:11 pm »
So...it should work, it just doesn't, right?

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Downloading and compiling Tremulous source on a Mac
« Reply #5 on: June 04, 2007, 12:35:36 am »
How do you make qvms on a ppc? :-?

twilight

  • Posts: 107
  • Turrets: +0/-0
Downloading and compiling Tremulous source on a Mac
« Reply #6 on: June 04, 2007, 08:31:34 am »
I'm getting same thing as Death on Ice.

I'll try compiling on my linux box

EDIT: yeah I also get a very similar error message on my linux box. Any ideas?


.........
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-linux-x86/rcc/trace.o src/trace.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-linux-x86/rcc/tree.o src/tree.c
gcc -O2 -Wall -fno-strict-aliasing -MMD -c -Isrc -o build-linux-x86/rcc/types.o src/types.c
gcc  -o build-linux-x86/q3rcc build-linux-x86/rcc/alloc.o build-linux-x86/rcc/bind.o build-linux-x86/rcc/bytecode.o build-linux-x86/rcc/dag.o build-linux-x86/rcc/dagcheck.o build-linux-x86/rcc/decl.o build-linux-x86/rcc/enode.o build-linux-x86/rcc/error.o build-linux-x86/rcc/event.o build-linux-x86/rcc/expr.o build-linux-x86/rcc/gen.o build-linux-x86/rcc/init.o build-linux-x86/rcc/inits.o build-linux-x86/rcc/input.o build-linux-x86/rcc/lex.o build-linux-x86/rcc/list.o build-linux-x86/rcc/main.o build-linux-x86/rcc/null.o build-linux-x86/rcc/output.o build-linux-x86/rcc/prof.o build-linux-x86/rcc/profio.o build-linux-x86/rcc/simp.o build-linux-x86/rcc/stmt.o build-linux-x86/rcc/string.o build-linux-x86/rcc/sym.o build-linux-x86/rcc/symbolic.o build-linux-x86/rcc/trace.o build-linux-x86/rcc/tree.o build-linux-x86/rcc/types.o
install -s -m 0755 build-linux-x86/q3lcc ../
install -s -m 0755 build-linux-x86/q3cpp ../
install -s -m 0755 build-linux-x86/q3rcc ../
make[1]: Leaving directory `/home/Twilight.Lair/Desktop/Tremulous Source + Patches/tremulous-svn/src/tools/lcc'
make -C src/tools/asm install
make[1]: Entering directory `/home/Twilight.Lair/Desktop/Tremulous Source + Patches/tremulous-svn/src/tools/asm'
install -s -m 0755 q3asm ../
strip: ../q3asm: File format not recognized
install: strip failed
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/Twilight.Lair/Desktop/Tremulous Source + Patches/tremulous-svn/src/tools/asm'
make: *** [tools] Error 2
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« Reply #7 on: June 04, 2007, 10:24:32 am »
>_<
You guys are all getting errors that I have neither seen before nor know how to deal with. All I can suggest is apple menu->software update, see if  anew version of xcode is available.
For what it's worth, twilight's error is actually not the same at all, although it may be the same cause.
Quote from: "doomagent13"
How do you make qvms on a ppc? :-?

Same method, hopefully.
benmachine

Ingar

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Downloading and compiling Tremulous source on a Mac
« Reply #8 on: June 04, 2007, 05:59:49 pm »
Quote from: "Death On Ice"
Hmm, well, I followed the instructions, however both of the times I tried to "make" the binaries, before and after applying the patch, I got errors:

......
 CFLAGS="  -Wall -Wimplicit -Wstrict-prototypes -mstackrealign -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Isrc/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\\\"1.1.0_SVN940M\\\" -DNDEBUG  -march=prescott -mfpmath=sse -ffast-math -falign-loops=16 -MMD"
gcc -mdynamic-no-pic -DDEDICATED -Wall -Wimplicit -Wstrict-prototypes -mstackrealign -fno-strict-aliasing -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -Isrc/SDL12/include -DUSE_LOCAL_HEADERS=1 -DSVN_VERSION=\"1.1.0_SVN940M\" -DNDEBUG  -march=prescott -mfpmath=sse -ffast-math -falign-loops=16 -MMD -o build/release-darwin-x86/ded/sv_client.o -c src/server/sv_client.c
cc1: error: invalid option 'stackrealign'
make[1]: *** [build/release-darwin-x86/ded/sv_client.o] Error 1
make: *** [build_release] Error 2
miles-computer:~/tremulous-svn miles$


I don't have a Mac or Darwin but I noticed:
-mstackrealign
c1: error: invalid option 'stackrealign'

try compiling without that option by editing the appropriate Makefiles.

Google has some interesting things to tell about this option, it seems it is an x86 specfic option that was introduced in gcc 4.2. Check your gcc version with
Code: [Select]
gcc --version

As far as twilight's problem is concerned: there is clearly a problem with src/tools/q3asm, or strip just does not like your binary. Try rebuilding it manually:

Code: [Select]
cd '/home/Twilight.Lair/Desktop/Tremulous Source + Patches/tremulous-svn/src/tools/asm'
make clean
make


Check your result:

Code: [Select]
file q3asm

You should see something like:
q3asm: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped

Try to strip it manually:
Code: [Select]
strip q3asm

Good luck!

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Downloading and compiling Tremulous source on a Mac
« Reply #9 on: June 04, 2007, 07:11:09 pm »
Quote from: "benmachine"
Quote from: "doomagent13"
How do you make qvms on a ppc? :-?
Same method, hopefully.
Whenever I do "make", it says "qvm tools not built when crosscompiling", so I went and manually installed them in "/usr/bin".  The only things "make" makes are tremded.ppc, tremulous.ppc, gameppc.dylib, cgameppc.dylib, and uippc.dylib, no qvms.

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Downloading and compiling Tremulous source on a Mac
« Reply #10 on: June 04, 2007, 11:48:02 pm »
How would I remove the 'stackrealign'?

When I ran the command 'gcc --version', it told me I have 4.0.1, which as you said is incompatible with my version. Would there be a way to update it?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Downloading and compiling Tremulous source on a Mac
« Reply #11 on: June 05, 2007, 02:46:48 am »
Quote from: "doomagent13"
Quote from: "benmachine"
Quote from: "doomagent13"
How do you make qvms on a ppc? :-?
Same method, hopefully.
Whenever I do "make", it says "qvm tools not built when crosscompiling", so I went and manually installed them in "/usr/bin".  The only things "make" makes are tremded.ppc, tremulous.ppc, gameppc.dylib, cgameppc.dylib, and uippc.dylib, no qvms.
why are you cross compiling?
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

twilight

  • Posts: 107
  • Turrets: +0/-0
Downloading and compiling Tremulous source on a Mac
« Reply #12 on: June 05, 2007, 04:59:06 am »
ok yeah the problem Death on Ice and I were having is fixed by updating gcc. I was able to successfully run the make command, although another problem has arised.

Many patches I am unable to apply. I've gotten some to work fine, but others of 'em just give me the following.

Twilight-Lair:~/Desktop/tremulous-svn twilight$ patch -p0 < backporting.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru tremulous/src/cgame/cg_public.h tremulous.temp/src/cgame/cg_public.h
|--- tremulous/src/cgame/cg_public.h    2007-02-28 18:28:08.000000000 +0100
|+++ tremulous.temp/src/cgame/cg_public.h       2007-02-28 18:31:09.000000000 +0100
--------------------------
File to patch:
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« Reply #13 on: June 05, 2007, 12:29:36 pm »
With some patches - like that one - you need to use patch -p1 instead. This is because of the way they were made - if you look closely at the sample it gives:
Quote
|--- tremulous/src/cgame/cg_public.h 2007-02-28 18:28:08.000000000 +0100
|+++ tremulous.temp/src/cgame/cg_public.h 2007-02-28 18:31:09.000000000 +0100

you can see it is looking for tremulous.temp/src/cgame/cg_public.h - the p1 options strips the tremulous.temp/ part and tells patch to look for src/cgame/cg_public.h, which you do indeed have.
edit:
Quote from: "Death On Ice"
How would I remove the 'stackrealign'?

When I ran the command 'gcc --version', it told me I have 4.0.1, which as you said is incompatible with my version. Would there be a way to update it?

If this is indeed what you need to do, have a look at line 358 of the Makefile in your tremulous source folder:
Code: [Select]
 ifeq ($(ARCH),x86)
    OPTIMIZE += -march=prescott -mfpmath=sse
    # x86 vm will crash without -mstackrealign since MMX instructions will be
    # used no matter what and they corrupt the frame pointer in VM calls
    BASE_CFLAGS += -mstackrealign
  endif

If you're feeling daring you can remove that BASE_CFLAGS += -mstackrealign altogether, but the comment seems to suggest that won't work well for you. It can't do any harm to try but if it doesn't work, you should probably change it back.
benmachine

PFB

  • Guest
Downloading and compiling Tremulous source on a Mac
« Reply #14 on: June 05, 2007, 02:07:00 pm »
if your arch is x86 yes
you need to get the right compiler if you have an intel mac

twilight

  • Posts: 107
  • Turrets: +0/-0
Downloading and compiling Tremulous source on a Mac
« Reply #15 on: June 06, 2007, 07:00:22 am »
ok so after a day or so I've finally compiled my qvm (on SVN 885), but the problem is that I cant spawn. It always gives me the error message similiar to "You can't carry this. Drop some items and try again." There is no error for the aliens. Any ideas? I've only copied over the tremded.x86 and the game.qvm from the compiling. is there anythign else I need to copy over?
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« Reply #16 on: June 06, 2007, 09:57:16 am »
Quote from: "twilight"
ok so after a day or so I've finally compiled my qvm (on SVN 885), but the problem is that I cant spawn. It always gives me the error message similiar to "You can't carry this. Drop some items and try again." There is no error for the aliens. Any ideas? I've only copied over the tremded.x86 and the game.qvm from the compiling. is there anythign else I need to copy over?

Did you backport? If so, which patch did you use? If not, try:
patching this in
before compiling.
benmachine

Kaleo

  • Posts: 2098
  • Turrets: +176/-220
    • KaleoDesign
Downloading and compiling Tremulous source on a Mac
« Reply #17 on: June 06, 2007, 10:01:34 am »
Can someone be really awsome a make an X-Code project file for it?
Quote from: Stannum
Thou canst not kill that which doth not live,
but you can blow it into chunky kibbles!
I has a cookie, and u can has a cookie, but i no givs u mai cookie...

twilight

  • Posts: 107
  • Turrets: +0/-0
Downloading and compiling Tremulous source on a Mac
« Reply #18 on: June 06, 2007, 10:55:00 pm »
Quote from: "benmachine"
Quote from: "twilight"
ok so after a day or so I've finally compiled my qvm (on SVN 885), but the problem is that I cant spawn. It always gives me the error message similiar to "You can't carry this. Drop some items and try again."
There is no error for the aliens. Any ideas? I've only copied over the tremded.x86 and the game.qvm from the compiling. is there anythign else I need to copy over?

Did you backport? If so, which patch did you use? If not, try:
patching this in
before compiling.


I compiled it with the full backport before. I took that out and copiled with this one, and now I get the following error on startup:

19164 files in pk3 files
Loading vm file vm/game.qvm...
...which has vmMagic VM_MAGIC_VER2
Loading 915 jump table targets
VM file game compiled to 1276648 bytes of code
game loaded in 34215392 bytes on the hunk
------- Game Initialization -------
gamename: base
gamedate: Jun  5 2007
------------------------------------------------------------
InitGame: \g_markDeconstruct\1\g_unlagged\1\sv_minRate\5000\g_suddenDeathTime\0\g_maxGameClients\0\
sv_maxclients\16\timelimit\0\sv_maxPing\0\sv_minPing\0\sv_maxRate\15000\
sv_hostname\Order of Resistance -- Test Server\sv_dlURL\http://www.mercenariesguild.net\version\tremulous 1.1.0 macosx-x86 Jun  6 2007\protocol\69\mapname\atcszalphab1\sv_privateClients\0\sv_allowDownload\1\g_needpass\0\gamename\base\ff\0
Received signal 11, exiting...
----- Server Shutdown (Signal caught) -----
Resolving master.tremulous.net
master.tremulous.net resolved to 208.116.49.110:30710
Sending heartbeat to master.tremulous.net
Sending heartbeat to master.tremulous.net
==== ShutdownGame ====
ShutdownGame:
------------------------------------------------------------
---------------------------
Shutdown tty console

Quote from: "Kaleo"
Can someone be really awsome a make an X-Code project file for it?


A project file for the entire souce code? hahaha...good luck with that =P
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Downloading and compiling Tremulous source on a Mac
« Reply #19 on: June 07, 2007, 12:15:00 am »
Quote from: "kevlarman"
Quote from: "doomagent13"
Quote from: "benmachine"
Quote from: "doomagent13"
How do you make qvms on a ppc? :-?
Same method, hopefully.
Whenever I do "make", it says "qvm tools not built when crosscompiling", so I went and manually installed them in "/usr/bin".  The only things "make" makes are tremded.ppc, tremulous.ppc, gameppc.dylib, cgameppc.dylib, and uippc.dylib, no qvms.
why are you cross compiling?
Tehcnically, I dont think that I am, but the way the makefile determines whether or not you are crosscompiling thinks I am.
Code: [Select]
ifeq ($(ARCH),powerpc)
  ARCH=ppc
endif
export ARCH
I think that this is what causes the problem.  First the platform you are on is compared to the platform you are compiling for, then it compares the architecture you are on to the architecture you are compiling for.  The fragment of the makefilechanges what it thinks your architecture is, but not what you are compiling for.  It compares "ppc" to "powerpc" and gets not equal.

NOTE:  I dont really know this programming language very well, so I could be wrong.

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« Reply #20 on: June 07, 2007, 12:17:53 am »
For what it's worth, signal 11 is a segmentation fault. See these two if you care about the technical details (which is unlikely tbh):
http://en.wikipedia.org/wiki/SIGSEGV
http://en.wikipedia.org/wiki/Segmentation_fault
Long story short, that certainly shouldn't happen from just svn + backport. Do this for me:
Code: [Select]
svn revert -R *
which should unpatch everything. Re-apply backport901.patch and compile that, make sure you get the same error. I'll see what I can do to fix it tomorrow.

edit: twilight please edit a line break into your serverstatus string above so it doesn't stretch the entire page.
benmachine

twilight

  • Posts: 107
  • Turrets: +0/-0
Downloading and compiling Tremulous source on a Mac
« Reply #21 on: June 07, 2007, 12:29:17 am »
the backport901 applied fine. It's just the backportlight which does that.
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Downloading and compiling Tremulous source on a Mac
« Reply #22 on: June 20, 2007, 07:09:07 pm »
Hey, It works for me now  :roll: I don't know why it didn't before, but it does now. My only question is where to put all the things that were spawned. There's a lot of files that were made..I don't know where to put them all.

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« Reply #23 on: June 21, 2007, 12:40:10 pm »
The only things that are important to you (in all likelihood) are tremulous.x86, tremded.x86, base/vm/game.qvm cgame.qvm and ui.qvm.
benmachine

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Downloading and compiling Tremulous source on a Mac
« Reply #24 on: June 21, 2007, 10:08:16 pm »
Quote from: "benmachine"
The only things that are important to you (in all likelihood) are tremulous.x86, tremded.x86, base/vm/game.qvm cgame.qvm and ui.qvm.
For me, it is gameppc.dylib, as I dont bother with the cgame or ui, I use TJW's server binary/executable from who-know's-when (I think last August or something), and I dont get qvms. :cry:

@benmachine:
What kind of computer do you have?

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Downloading and compiling Tremulous source on a Mac
« Reply #25 on: June 21, 2007, 10:13:47 pm »
The only one I ever compile Tremulous source on is an intel iMac (one of those ones that's just a screen). I play Tremulous and run local servers on a PPC iMac (one of the turny-lamp dome-stalk-screen ones) sometimes. Although I have xcode installed there and use it for some small C projects I have never tried compiling Tremulous there.
benmachine

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Downloading and compiling Tremulous source on a Mac
« Reply #26 on: June 21, 2007, 10:21:32 pm »
I guess I am the only one trying to make qvms on a ppc. :(

I will eventually see if I can make a modified makefile for ppc computers in particular, and maybe macs in general.

i3enedek

  • Posts: 18
  • Turrets: +0/-0
    • http://0xdeadbabe.com
Downloading and compiling Tremulous source on a Mac
« Reply #27 on: July 18, 2007, 11:45:03 pm »
I dont have a problem making a qvms on PPC.

Ohh and dont install Quicktime 7.2 if you are using 10.3.9 as they chenged something in the Qucktime framework, so you can only build the project with 10.4 after its installed.

Silly Apple.
color=red]l[/color]angsam

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Downloading and compiling Tremulous source on a Mac
« Reply #28 on: July 19, 2007, 02:57:14 pm »
Which svn did you use?  Which OS version do you have?  Which gcc version do you have?

I've tried something like svns 848, 865, 895?, 901-906, and 945.  I have OS 10.4.9.  I have gcc 4.0.1.

i3enedek

  • Posts: 18
  • Turrets: +0/-0
    • http://0xdeadbabe.com
Downloading and compiling Tremulous source on a Mac
« Reply #29 on: July 19, 2007, 03:20:10 pm »
Quote from: "doomagent13"
Which svn did you use?  Which OS version do you have?  Which gcc version do you have?

I've tried something like svns 848, 865, 895?, 901-906, and 945.  I have OS 10.4.9.  I have gcc 4.0.1.


10.3.9

Gcc 3.3

and 901 i think.
color=red]l[/color]angsam