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

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
the patch messes everything up
« Reply #60 on: May 15, 2008, 01:23:42 am »
Slight problem...

I did everything in the guide and then ran make without patching. There were a few errors, most of them similar to

Code: [Select]
src/game/g_admin.c:2427: warning: format ‘%i’ expects type ‘int’, but argument 4 has type ‘long unsigned int’

but other than that, it seemed to work fine. The only problem was, it didn't make any binaries... The only user-usable files, as far as I could tell, were tremded.x86, tremulous-smp.x86, and tremulous.x86.

Then I tried patching it with backport901.patch. That worked fine; then I ran make and it failed spectacularly with errors similar to

Code: [Select]
src/qcommon/../client/../cgame/cg_public.h:145: error: previous definition of ‘CG_PARSE_SOURCE_FILE_AND_LINE’ was here

There were also a number of errors in the patch output.

Code: [Select]
Hunk #1 FAILED at 64.
1 out of 1 hunk FAILED -- saving rejects to file src/cgame/cg_syscalls.asm.rej
:dretch: What'd you expect from a creature the size of a foot?

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
Re: Downloading and compiling Tremulous source on a Mac
« Reply #61 on: May 15, 2008, 08:04:46 pm »
Ah... Perhaps it's because the code and patch are out-of-date?

Duh...
:dretch: What'd you expect from a creature the size of a foot?

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Downloading and compiling Tremulous source on a Mac
« Reply #62 on: May 16, 2008, 03:06:34 am »
Those "errors" are merely warnings, and harmless at that. (I think... Someone should silence them, though)  "tremulous.<arch>", "tremulous-smp.<arch>", and "tremded.<arch>" ARE the binaries, or at least the executable ones.  There should be some "*.dylib"s in the "base" folder next to the binaries, and possibly some qvms in the "vm" folder in the "base" folder.

What svn revision did you use?  If you didnt use the "-r <number/identifier>" option, you got the current revision, for which there is almost certainly no backport patch.  You need to get the latest backport patch, then get the svn revision it is against, then patch THAT copy of the code, and then "make" the result.

BTW, go ahead and post the whole output, but only if you do it in [codebox] tags.

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: Downloading and compiling Tremulous source on a Mac
« Reply #63 on: May 16, 2008, 03:26:50 am »
Erm, yes and no.  The "warning: format" error is probably okay to ignore, the "error: previous definition" is fatal (and means the patch you applied didn't do something right - or, you didn't apply it in a clean build tree, meaning uncompress or download the source to a clean location before trying to patch).

But the "Hunk #1 FAILED" messages mean the patch you tried to apply isn't going to apply cleanly to the source you have.  Most common cause is not using the same source input that the patch author used to generate the patch (for example, using svn 1036 instead of 966, though it could even be a single revision depending on what's changed).

And the tags are [code] and [/code] which you can easily get with the '#' button in the editor.
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
Re: Downloading and compiling Tremulous source on a Mac
« Reply #64 on: May 16, 2008, 10:52:04 pm »
Ah... Yes, I think it was because I used an out-of-date patch. Death On Ice pointed me to one and it worked so far. It did spawn three executables called tremded.x86, tremulous-smp.x86, and tremulous.x86. These aren't what I'm accustomed to on Mac, so I don't know what to do with them.

Here's a link to the thread where I asked this question before seeing your replies...
http://tremulous.net/forum/index.php?topic=8135.0
:dretch: What'd you expect from a creature the size of a foot?

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
Re: Downloading and compiling Tremulous source on a Mac
« Reply #65 on: May 16, 2008, 11:04:51 pm »
Never mind. I figured out how to run them. Since I hate it when people solve a question themselves and then don't tell you how they did it, I'll explain...

To run the client (tremulous.x86), copy it into the same folder as your "stock" client. Then open Terminal, drag tremulous.x86 onto the window, and hit return. It'll take a moment to start up. Then you're in business!

I don't know about tremded.x86 and tremulous-smp.x86 but I assume the process is the same.
:dretch: What'd you expect from a creature the size of a foot?

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Downloading and compiling Tremulous source on a Mac
« Reply #66 on: May 18, 2008, 03:48:33 am »
"tremulous-smp.*" is the multi-core enabled version.  "tremded.*" is the dedicated server.

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
Re: Downloading and compiling Tremulous source on a Mac
« Reply #67 on: May 19, 2008, 03:04:47 am »
Thanks.
:dretch: What'd you expect from a creature the size of a foot?

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Downloading and compiling Tremulous source on a Mac
« Reply #68 on: May 29, 2008, 10:13:20 pm »
Why doesn't Leopard compile QVMs?
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Downloading and compiling Tremulous source on a Mac
« Reply #69 on: May 29, 2008, 11:59:37 pm »
Because something is broken and none of the devs have a mac to fix it.
AFAIK benmachine is the only dev-like-person with a mac, and he has done a lot of work on such things.  No idea how far he got.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Downloading and compiling Tremulous source on a Mac
« Reply #70 on: May 30, 2008, 12:17:13 am »
Because something is broken and none of the devs have a mac to fix it.
AFAIK benmachine is the only dev-like-person with a mac, and he has done a lot of work on such things.  No idea how far he got.
you forgot tjw >.>
qvm compiling on leopard has been fixed upstream (thanks to benmachine), but timbo hasn't gotten around to merging it to trem yet.
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| #
|.@.-##
-----

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Downloading and compiling Tremulous source on a Mac
« Reply #71 on: May 30, 2008, 12:27:56 am »
Great! Can't wait till I can make my own QVM.
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

Jalaco

  • Posts: 58
  • Turrets: +4/-1
Re: Downloading and compiling Tremulous source on a Mac
« Reply #72 on: May 31, 2008, 04:10:08 am »
OK. I have a problem, when I try add the "/usr/local/bin" to the "$PATH" it doesn't do anything heres what I get:

Code: [Select]
Family:~ Jalaco$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin
Family:~ Jalaco$ PATH=$PATH: /usr/local/bin
-bash: /usr/local/bin: is a directory
Family:~ Jalaco$ export PATH
Family:~ Jalaco$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin

So can anyone help?

\\^// Jalaco \\^//

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: Downloading and compiling Tremulous source on a Mac
« Reply #73 on: May 31, 2008, 04:55:22 am »
Don't add the space. export PATH=$PATH:/usr/local/bin will do the trick all on one line.

Your $PATH is searched in order, so if you want stuff in /usr/local/bin to be run before anything that might be elsewhere, put that first: export PATH=/usr/local/bin:$PATH

If you're looking to do stuff like this all the time, you'll want to edit your shell startup files.  Let me know if that's the case, I've got plenty of tricks for making clean startup files that do all kinds of nifty things.  Yes, I said nifty.  It goes along with the UNIX background, the long hair and the scruffy beard.  Here's a nickel, kid, go buy yourself a real operating system.  (Extra points if you can find the image of the cartoon with that line in it, especially since I misplaced mine.)
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

Jalaco

  • Posts: 58
  • Turrets: +4/-1
Re: Downloading and compiling Tremulous source on a Mac
« Reply #74 on: May 31, 2008, 05:24:15 am »
Thanks to Rocinante I have gotten this far to encounter another of the errors that seem to plague me...

Code: [Select]
Family:~/tremulous-svn Jalaco$ patch -p0 < backport1044.patch
patching file src/game/g_syscalls.asm
patching file src/game/bg_misc.c
Hunk #1 FAILED at 5126.
1 out of 1 hunk FAILED -- saving rejects to file src/game/bg_misc.c.rej
patching file src/game/g_active.c
Hunk #2 succeeded at 663 (offset -1 lines).
Hunk #3 succeeded at 694 (offset -1 lines).
Hunk #4 FAILED at 839.
1 out of 4 hunks FAILED -- saving rejects to file src/game/g_active.c.rej
patching file src/game/g_public.h
patching file src/game/bg_pmove.c
Hunk #1 succeeded at 2695 (offset 36 lines).
Hunk #2 FAILED at 2793.
Hunk #3 FAILED at 2813.
Hunk #4 succeeded at 2832 (offset 37 lines).
Hunk #5 succeeded at 2952 with fuzz 1 (offset 38 lines).
Hunk #6 succeeded at 3107 with fuzz 2 (offset 74 lines).
Hunk #7 succeeded at 3327 (offset 74 lines).
Hunk #8 FAILED at 3359.
Hunk #9 FAILED at 3367.
Hunk #10 FAILED at 3375.
5 out of 10 hunks FAILED -- saving rejects to file src/game/bg_pmove.c.rej
patching file src/game/g_weapon.c
Hunk #1 succeeded at 93 with fuzz 2.
Hunk #2 succeeded at 106 (offset 1 line).
patching file src/game/g_trigger.c
Hunk #2 FAILED at 1099.
1 out of 2 hunks FAILED -- saving rejects to file src/game/g_trigger.c.rej
patching file src/game/g_client.c
Hunk #1 succeeded at 1472 with fuzz 2 (offset -6 lines).
patching file src/game/bg_public.h
Hunk #1 succeeded at 412 with fuzz 2 (offset -21 lines).
Hunk #2 succeeded at 1059 with fuzz 1 (offset -24 lines).
patching file src/game/g_cmds.c
Hunk #1 succeeded at 385 (offset 4 lines).
Hunk #2 succeeded at 2152 (offset 99 lines).
Hunk #3 succeeded at 2401 with fuzz 2 (offset 104 lines).
patching file src/qcommon/q_shared.h
Hunk #2 succeeded at 1087 (offset 2 lines).
Hunk #3 succeeded at 1278 (offset 3 lines).
patching file src/qcommon/qcommon.h
patching file src/qcommon/msg.c
Hunk #1 succeeded at 828 (offset 1 line).
Hunk #2 succeeded at 1145 (offset 2 lines).
Hunk #3 succeeded at 1173 (offset 2 lines).
Hunk #4 succeeded at 1254 (offset 2 lines).
Hunk #5 succeeded at 1267 (offset 2 lines).
Hunk #6 succeeded at 1296 (offset 2 lines).
Hunk #7 succeeded at 1426 (offset 2 lines).
patching file src/qcommon/common.c
patching file src/cgame/cg_predict.c
patching file src/cgame/cg_syscalls.asm
patching file src/cgame/cg_draw.c
Hunk #5 FAILED at 1915.
Hunk #6 FAILED at 1934.
2 out of 6 hunks FAILED -- saving rejects to file src/cgame/cg_draw.c.rej
patching file src/cgame/cg_tutorial.c
Hunk #2 FAILED at 429.
1 out of 2 hunks FAILED -- saving rejects to file src/cgame/cg_tutorial.c.rej
patching file src/cgame/cg_weapons.c
Hunk #1 FAILED at 1196.
1 out of 1 hunk FAILED -- saving rejects to file src/cgame/cg_weapons.c.rej
patching file src/cgame/cg_public.h
Hunk #3 succeeded at 233 (offset 2 lines).
patching file src/cgame/cg_main.c
Hunk #1 succeeded at 66 (offset -2 lines).
patching file src/ui/ui_public.h
patching file src/ui/ui_main.c
patching file src/ui/ui_syscalls.asm
patching file src/client/cl_console.c
patching file src/client/cl_keys.c
Family:~/tremulous-svn Jalaco$ make

Building Tremulous in build/release-darwin-x86:
  PLATFORM: darwin
  ARCH: x86
  COMPILE_PLATFORM: darwin
  COMPILE_ARCH: x86
  CC: cc

  CFLAGS:
    -MMD
    -Wall
    -Wimplicit
    -Wstrict-prototypes
    -mstackrealign
    -fno-strict-aliasing
    -DMACOS_X
    -fno-common
    -pipe
    -DUSE_OPENAL
    -DUSE_CURL
    -DUSE_CURL_DLOPEN
    -D_THREAD_SAFE=1
    -Isrc/SDL12/include
    -DUSE_LOCAL_HEADERS
    -DSVN_VERSION="1.1.0_SVN1088M"
    -DNDEBUG
    -march=prescott
    -mfpmath=sse
    -ffast-math
    -falign-loops=16

  LDFLAGS:

  Output:
    build/release-darwin-x86/tremded.x86
    build/release-darwin-x86/tremulous.x86
    build/release-darwin-x86/tremulous-smp.x86
    build/release-darwin-x86/base/cgamex86.dylib
    build/release-darwin-x86/base/gamex86.dylib
    build/release-darwin-x86/base/uix86.dylib

DED_CC src/server/sv_client.c
DED_CC src/server/sv_ccmds.c
DED_CC src/server/sv_game.c
DED_CC src/server/sv_init.c
DED_CC src/server/sv_main.c
DED_CC src/server/sv_net_chan.c
DED_CC src/server/sv_snapshot.c
DED_CC src/server/sv_world.c
DED_CC src/qcommon/cm_load.c
DED_CC src/qcommon/cm_patch.c
DED_CC src/qcommon/cm_polylib.c
DED_CC src/qcommon/cm_test.c
DED_CC src/qcommon/cm_trace.c
DED_CC src/qcommon/cmd.c
DED_CC src/qcommon/common.c
DED_CC src/qcommon/cvar.c
DED_CC src/qcommon/files.c
DED_CC src/qcommon/md4.c
DED_CC src/qcommon/msg.c
DED_CC src/qcommon/net_chan.c
DED_CC src/qcommon/net_ip.c
DED_CC src/qcommon/huffman.c
DED_CC src/qcommon/parse.c
DED_CC src/qcommon/q_math.c
DED_CC src/qcommon/q_shared.c
DED_CC src/qcommon/unzip.c
DED_CC src/qcommon/vm.c
DED_CC src/qcommon/vm_interpreted.c
DED_CC src/null/null_client.c
DED_CC src/null/null_input.c
DED_CC src/null/null_snddma.c
DED_CC src/sys/con_log.c
DED_CC src/sys/sys_main.c
DED_CC src/qcommon/vm_x86.c
DED_CC src/sys/sys_unix.c
DED_CC src/sys/con_tty.c
LD build/release-darwin-x86/tremded.x86
CC src/client/cl_cgame.c
CC src/client/cl_cin.c
CC src/client/cl_console.c
CC src/client/cl_input.c
CC src/client/cl_keys.c
CC src/client/cl_main.c
CC src/client/cl_net_chan.c
CC src/client/cl_parse.c
CC src/client/cl_scrn.c
CC src/client/cl_ui.c
CC src/client/cl_avi.c
CC src/qcommon/cm_load.c
CC src/qcommon/cm_patch.c
CC src/qcommon/cm_polylib.c
CC src/qcommon/cm_test.c
CC src/qcommon/cm_trace.c
CC src/qcommon/cmd.c
CC src/qcommon/common.c
CC src/qcommon/cvar.c
CC src/qcommon/files.c
CC src/qcommon/md4.c
CC src/qcommon/md5.c
CC src/qcommon/msg.c
CC src/qcommon/net_chan.c
CC src/qcommon/net_ip.c
CC src/qcommon/huffman.c
CC src/qcommon/parse.c
CC src/client/snd_adpcm.c
CC src/client/snd_dma.c
CC src/client/snd_mem.c
CC src/client/snd_mix.c
CC src/client/snd_wavelet.c
CC src/client/snd_main.c
CC src/client/snd_codec.c
CC src/client/snd_codec_wav.c
CC src/client/qal.c
CC src/client/snd_openal.c
CC src/client/cl_curl.c
CC src/server/sv_ccmds.c
CC src/server/sv_client.c
CC src/server/sv_game.c
CC src/server/sv_init.c
CC src/server/sv_main.c
CC src/server/sv_net_chan.c
CC src/server/sv_snapshot.c
CC src/server/sv_world.c
CC src/qcommon/q_math.c
CC src/qcommon/q_shared.c
CC src/qcommon/unzip.c
CC src/qcommon/puff.c
CC src/qcommon/vm.c
CC src/qcommon/vm_interpreted.c
CC src/jpeg-6/jerror.c
CC src/jpeg-6/jmemnobs.c
CC src/renderer/tr_animation.c
CC src/renderer/tr_backend.c
CC src/renderer/tr_bsp.c
CC src/renderer/tr_cmds.c
CC src/renderer/tr_curve.c
CC src/renderer/tr_flares.c
CC src/renderer/tr_font.c
CC src/renderer/tr_image.c
CC src/renderer/tr_image_png.c
CC src/renderer/tr_image_jpg.c
CC src/renderer/tr_image_bmp.c
CC src/renderer/tr_image_tga.c
CC src/renderer/tr_image_pcx.c
CC src/renderer/tr_init.c
CC src/renderer/tr_light.c
CC src/renderer/tr_main.c
CC src/renderer/tr_marks.c
CC src/renderer/tr_mesh.c
CC src/renderer/tr_model.c
CC src/renderer/tr_noise.c
CC src/renderer/tr_scene.c
CC src/renderer/tr_shade.c
CC src/renderer/tr_shade_calc.c
CC src/renderer/tr_shader.c
CC src/renderer/tr_shadows.c
CC src/renderer/tr_sky.c
CC src/renderer/tr_surface.c
CC src/renderer/tr_world.c
CC src/sdl/sdl_gamma.c
CC src/sdl/sdl_input.c
src/sdl/sdl_input.c:222: warning: function declaration isn't a prototype
CC src/sdl/sdl_snd.c
CC src/sys/con_passive.c
CC src/sys/con_log.c
CC src/sys/sys_main.c
CC src/qcommon/vm_x86.c
CC src/sys/sys_unix.c
CC src/sdl/sdl_glimp.c
LD build/release-darwin-x86/tremulous.x86
SMP_CC src/sdl/sdl_glimp.c
LD build/release-darwin-x86/tremulous-smp.x86
CGAME_CC src/cgame/cg_main.c
CGAME_CC src/game/bg_misc.c
src/game/bg_misc.c:3071: error: conflicting types for 'BG_WeaponIsFull'
src/game/bg_public.h:1064: error: previous declaration of 'BG_WeaponIsFull' was here
{standard input}:1915:non-relocatable subtraction expression, "_bg_classConfigList" minus "L00000000009$pb"
{standard input}:1915:symbol: "_bg_classConfigList" can't be undefined in a subtraction expression
{standard input}:850:non-relocatable subtraction expression, "_bg_buildableConfigList" minus "L00000000004$pb"
{standard input}:850:symbol: "_bg_buildableConfigList" can't be undefined in a subtraction expression
make[2]: *** [build/release-darwin-x86/base/cgame/bg_misc.o] Error 1
make[1]: *** [targets] Error 2
make: *** [release] Error 2

So again thanks Rocinante! And can anyone help fix my latest problem?

\\^// Jalaco \\^//

Divmax

  • Posts: 197
  • Turrets: +3/-8
Re: Downloading and compiling Tremulous source on a Mac
« Reply #75 on: May 31, 2008, 05:59:03 am »
The patch didn't apply cleanly. So you have to manually apply the patch or fix the .reg.
I'm a developer for the following projects(now I'm inactive) :
TremWars's QVMNot updated anymore
TremWars's Client and Server Executable
TremWars's QVM 2

Jalaco

  • Posts: 58
  • Turrets: +4/-1
Re: Downloading and compiling Tremulous source on a Mac
« Reply #76 on: May 31, 2008, 06:23:10 am »
Hmmmm.... How would I do either of those? =P

\\^// Jalaco \\^//

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Downloading and compiling Tremulous source on a Mac
« Reply #77 on: May 31, 2008, 06:49:29 am »
Just so you guys know, I am a Mac using semi-active-coder...  And a PPC user at that!!!

To start off, delete it all and get the correct svn revision to go with the patch.  Meaning you should do "svn co <repository_address> <destination> -r 1044".  The "-r 1044" will tell it to get revision 1044, which is the one the patch is based off.  Doing this should get the patch to apply cleanly.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: Downloading and compiling Tremulous source on a Mac
« Reply #79 on: May 31, 2008, 01:10:02 pm »
Yep, that one :>

Jalaco: If you see those "hunk FAILED" messages, unless you're comfortable with writing the code in the first place your best bet is to give up and try again with another patch and/or source tree.  doomagent13's suggestion of making sure to grab the exact version mentioned in the patch's filename is the best bet to use that patch.

The 'patch' program works by looking through the source file a certain number of lines, usually using a few lines around that line number to compare and make sure it's in the right location, then inserting or removing lines stated in the patch file.  If a hunk fails, it's because when it went X lines into the file, the lines that it found there didn't match what the patch said should be there.  Similar to if I gave you directions and said turn left at the gas station, and when you got to that corner there was no gas station to be found (or it's impossible to make a left there).
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Downloading and compiling Tremulous source on a Mac
« Reply #80 on: June 03, 2008, 02:04:35 am »
qvm compiling on leopard has been fixed upstream (thanks to benmachine), but timbo hasn't gotten around to merging it to trem yet.
Where might I find this fix?
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

Vape

  • Posts: 254
  • Turrets: +30/-87
Re: Downloading and compiling Tremulous source on a Mac
« Reply #81 on: June 10, 2008, 04:29:42 am »
Hmm after forum searching my error I can't seem to find anything, I updated subversion to 1.4.4, and installed Xcode, but keep getting this reoccurring error everytime I try to install
Code: [Select]
DED_CC src/server/sv_client.c
cc1: error: invalid option 'stackrealign'
make[2]: *** [build/release-darwin-x86/ded/sv_client.o] Error 1
make[1]: *** [targets] Error 2
make: *** [release] Error 2
Any help would be much appreciated.
-If you think its a joke, it's like thinking that kicking a dog/shooting someone innocent in the leg is funny.
Meisseli is a dump face ... Telling that gpp have no cheat is like tell that Meisseli mother dont suck cock !!!!

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Downloading and compiling Tremulous source on a Mac
« Reply #82 on: June 10, 2008, 12:26:27 pm »
If you're on Leopard, you might have to download the patch that fixes Leopard QVMs, I dunno. It's in my sig.
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

Vape

  • Posts: 254
  • Turrets: +30/-87
Re: Downloading and compiling Tremulous source on a Mac
« Reply #83 on: June 13, 2008, 02:28:20 am »
On a Tiger, again if anyone can help would be great
-If you think its a joke, it's like thinking that kicking a dog/shooting someone innocent in the leg is funny.
Meisseli is a dump face ... Telling that gpp have no cheat is like tell that Meisseli mother dont suck cock !!!!

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Downloading and compiling Tremulous source on a Mac
« Reply #84 on: June 13, 2008, 02:43:16 am »
If your computer has a PowerPC processor, try this (might not work) or this (might work).
« Last Edit: June 13, 2008, 02:45:16 am by Le Compilateur »
I'm a developer! If you'd like to contribute to the Equilibrium QVM project or download the latest version, please visit this thread.

QVMs now compile under Leopard; get the patch here. Requires SVN r1053 or later.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Downloading and compiling Tremulous source on a Mac
« Reply #85 on: June 13, 2008, 03:48:57 am »
do you have gcc installed?
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| #
|.@.-##
-----

Vape

  • Posts: 254
  • Turrets: +30/-87
Re: Downloading and compiling Tremulous source on a Mac
« Reply #86 on: June 13, 2008, 08:57:44 pm »
Yes
-If you think its a joke, it's like thinking that kicking a dog/shooting someone innocent in the leg is funny.
Meisseli is a dump face ... Telling that gpp have no cheat is like tell that Meisseli mother dont suck cock !!!!

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Downloading and compiling Tremulous source on a Mac
« Reply #87 on: June 14, 2008, 06:39:06 pm »
try running CC=gcc make
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| #
|.@.-##
-----

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Downloading and compiling Tremulous source on a Mac
« Reply #88 on: June 15, 2008, 12:01:18 am »
Which version of XCode do you have?  Cause you have an incomplete/broken/whatever version of gcc for it to not support "-mstackrealign".

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Re: Downloading and compiling Tremulous source on a Mac
« Reply #89 on: June 15, 2008, 08:44:54 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:
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$
Please Help
I had this problem quite a while ago. I think I just updated my software + xcode.