Author Topic: Universal mac compiling  (Read 4533 times)

the3rror

  • Posts: 18
  • Turrets: +0/-0
    • http://cursed3.com
Universal mac compiling
« on: June 05, 2008, 06:41:44 pm »
Each time I have it compile the x86 version it gives me this error.
/usr/bin/ld: Undefined symbols:
_SDL_main
___eprintf
collect2: ld returned 1 exit status
make[1]: *** [build/release-darwin-x86/tremulous.x86] Error 1
make: *** [build_release] Error 2


This is with svn775 and it has the Mac patch on it. I've already successfully made the ppc version so I don't understand why its doing this now.
blowFish~

I just realised that for the past 9months Ive been waisting my life on tremulous. <- aug. 19th ; 10:15pm

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Universal mac compiling
« Reply #1 on: June 05, 2008, 10:18:08 pm »
What you need is a much newer SVN revision. I recommend r1053 or later but that's just my opinion.

Also make sure that when you patch the source code, the patch is designed for that SVN revision. Otherwise weird things could happen, like the patched code referencing nonexistent system calls.
« Last Edit: June 05, 2008, 10:20:10 pm 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.

the3rror

  • Posts: 18
  • Turrets: +0/-0
    • http://cursed3.com
Re: Universal mac compiling
« Reply #2 on: June 06, 2008, 04:03:45 am »
It's already been patched with backport (i think that's what its called) one that came with the original Mac dmg download.

Is there a way, and would it be useful, to patch it to a newer revision. Like patch it against the difference of a newer revision like 1053.
blowFish~

I just realised that for the past 9months Ive been waisting my life on tremulous. <- aug. 19th ; 10:15pm

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Universal mac compiling
« Reply #3 on: June 06, 2008, 06:04:21 am »
1) ignore le compilateur, he's wrong in every way imaginable.
2) you need a fat version of libsdl and its development files, you have the ppc only version
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| #
|.@.-##
-----

the3rror

  • Posts: 18
  • Turrets: +0/-0
    • http://cursed3.com
Re: Universal mac compiling
« Reply #4 on: June 06, 2008, 04:31:29 pm »
That sounds like the best problem. Thank you I will now explore this.
blowFish~

I just realised that for the past 9months Ive been waisting my life on tremulous. <- aug. 19th ; 10:15pm

Le Compilateur

  • Posts: 315
  • Turrets: +14/-19
Re: Universal mac compiling
« Reply #5 on: June 07, 2008, 04:48:56 am »
Ouch kevlarman. :(

And no, I am not "wrong in every way imaginable", this is actually a solution to a problem with exactly the same errors. If you patch code with a backport that's not designed for that revision, you WILL get errors if they're more than a few revisions apart. I had this problem when I used a backport for r901 on a totally different revision (something in the 1000's).

Errrr... Were you joking? It's rather hard to tell.
« Last Edit: June 07, 2008, 04:53:14 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.

the3rror

  • Posts: 18
  • Turrets: +0/-0
    • http://cursed3.com
Re: Universal mac compiling
« Reply #6 on: June 08, 2008, 02:23:41 am »
It's alright I think I found the fix.

btw, I was using backport for 755 (specialty Mac one) and SDL dev SDK comes as a universal binary.
blowFish~

I just realised that for the past 9months Ive been waisting my life on tremulous. <- aug. 19th ; 10:15pm