Tremulous Forum
Mods => Modding Center => Topic started by: the3rror 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.
-
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.
-
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.
-
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
-
That sounds like the best problem. Thank you I will now explore this.
-
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.
-
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.