I found this ( <a href="http://www.ipodlinux.org/forums/viewtopic.php?t=216&amp;view=previous&amp;sid=bde0a3071e484f13eea61ffa33c122e8">http://www.ipodlinux.org/forums/viewtopic.php?t=216&amp;view=previous&amp;sid=bde0a3071e484f13eea61ffa33c122e8
</a> ) which looks like I need zlib for freetype, but I built freetype and it seemed to have compiled perfectly (freetype, I mean). By the way, I didn&#39;t do the &quot;run configure using &nbsp;--enable-static --disable-shared&quot;, because I found the .a files in the lib folder anyways, is this okay? If not then I&#39;ll rebuild the things. I also tried with USE_CURL_DLOPEN and USE_OPENAL_DLOPEN set to 0, no go.
<br><br>Okay, I made it so it looks in /usr/local/lib and /usr/local/include now instead of my /libs/macosx directory. I configured all the paths and they should be working now, but now I&#39;m getting mismatching architecture reports, having to do with the dylib, so I&#39;m recompiling the libraries with --enable-shared=no and --enable-static=yes, hopefully that does it.
<br><br>Thanks un dead, but now I know that it&#39;s from zlib :D<br><br><div><span class="gmail_quote">On 3/31/07, <b class="gmail_sendername">Jorge Peņa</b> &lt;<a href="mailto:jorgepblank@gmail.com">jorgepblank@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hey sorry to keep bothering, but here are the things I added (The relevant stuff at least):
<br><br>For PPC:<span class="q"><br><br>&nbsp;&nbsp;&nbsp; BASE_CFLAGS += -arch ppc -DSMP \<br></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I$(PWD)/code \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I$(PWD)/code/vorbis/include \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I$(PWD)/code/freetype \
<span class="q"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -nostdinc \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -F/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks \<br></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -I/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3 \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -isystem /Developer/SDKs/MacOSX10.2.8.sdk/usr/include
<br><br>&nbsp;&nbsp;&nbsp; LDFLAGS += -arch ppc \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L$(PWD)/code/libs/macosx \<span class="q"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/Developer/SDKs/MacOSX10.2.8.sdk/usr/lib/gcc/darwin/3.3 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -F/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks \
<br></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk,-m 
<br>&nbsp;&nbsp;&nbsp; ARCH=ppc<br><br>I did the same for i386, I didn&#39;t show it though because I&#39;m actually building on PPC at the moment. Anyways, I also commented out the line:<span class="q"><br><br>&nbsp; # Always include debug symbols...you can strip the binary later...
<br>&nbsp; #BASE_CFLAGS += -gfull<br><br></span>It gets a lot further into the build process now, and then it spits out the following:<br><br>ld: Undefined symbols:<br>_fprintf$LDBLStub<br>_sprintf$LDBLStub<br>_inflate<br>_inflateEnd
<br>_inflateInit2_<br>_inflateReset<br>make[1]: *** [build/release-darwin-ppc/tip.ppc] Error 1<br>make: *** [build_release] Error 2<br><br>I google&#39;d this and I found out it&#39;s a linker error (ld, duh). I google&#39;d for the symbols, and I can&#39;t find what library they correspond to, I 
<span style="font-style: italic;">think<span style="font-style: italic;"></span></span> it&#39;s zlib. Does anything make use of zlib from the following: libogg, libvorbis, libfreetype, libcurl? I&#39;m just wondering, because before this, the engine built perfectly. But come to think of it, it probably IS a zlib dependency, I&#39;ll go and get the library. Actually, they said the library should already be in there, it wasn&#39;t there so I downloaded the tarball and built it myself. I then put the resulting static library (
libz.a) in the macosx libs directory which has already been -L&#39;d by the makefile, I ran the bash make script and it still gave me the error. So I edited the Makefile and added a -lz to a random part (To a part where it does -lvorbisfile as well), since I&#39;m building with OGG I figured It&#39;d pick it up, but it&#39;s still giving me the error.
<br><br>Anyways, I&#39;m just curious because I didn&#39;t find any reference to zlib in the Makefile and I only found a reference in the README, but it only includes header files and source files of it, in other platforms like Windows, I don&#39;t have to go and download it and build it along with the game.
<br><br>I&#39;m just wondering if you guys know anything about this, I&#39;ve been investigating since yesterday I was up till 12 haha, I think I&#39;m getting closer to finally being able to build though, I think it&#39;s just this that&#39;s left.
<div><span class="e" id="q_111a97ebcf86ec5a_9"><br><br><div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">Jorge Peņa</b> &lt;<a href="mailto:jorgepblank@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jorgepblank@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks I really really appreciate it! I definitely worked hard on it haha, I was at it for about two hours, all trial and error as I personally have no exposure/experience at all to Macs. One question though, in the -L and -I switches, you put absolute paths, is this necessary? Sorry, I didn&#39;t find any information on this in the manual page, and I was wondering because, seeing how it was already hard enough for me, having other people build it might be difficult, so I was thinking about including these things in my subversion repository, for which I&#39;d need relevant paths, no? Or maybe there&#39;s a variable such as:
<br><br>-I/Users/$(USER)/libogg-1.1.3/include<br><br>Just double checked, looks like there is. No wait, better yet:<br><br>-I/$(PWD)/code/whatever<br><br>Seems right. I think this will definitely help, next time my friend is available I&#39;ll SSH and keep trying, but it all makes sense now, thanks I really, honestly appreciate your help!
<div><span><br><br><div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">Thilo Schulz</b> &lt;<a href="mailto:arny@ats.s.bawue.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
arny@ats.s.bawue.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Friday 30 March 2007 06:16, Jorge Peņa wrote:<br>&gt; Thanks guys, sorry for the long message, but I&#39;d really appreciate it. And<br>&gt; yes, I AM using the mac build script (Always have been). Thanks again, I<br>

&gt; really appreciate it.
<br><br>No problem mate, I think you have made very clear that you have gone to some<br>trouble already. You don&#39;t strike me as the casual dork wanting to get free<br>tech support without doing work and learning on his own, so I am glad to
<br>help :)<br><br>First of all, your approach was already a step in the right direction.<br>I think curl is present on MacOSX already so I don&#39;t think you&#39;ll need to<br>build it yourself.<br>Now on the topic of ogg I can advise you on the steps that I took to get a
<br>working MacOSX build.<br><br>Get the source to the libraries libogg, libvorbis and libvorbisfile<br>(libvorbisfile is built with libvorbis). run configure<br>using&nbsp;&nbsp;--enable-static --disable-shared and build all three of them this
<br>way .. if you redistribute these builds you really want static ogg libraries<br>as users most likely won&#39;t have them installed. If you want to make a<br>universal binary, you must cross compile these three libraries at least for
<br>the other platform you want to support.<br>After the build process is finished, you&#39;ll find the .a files for the static<br>libraries somewhere in the lib/.libs/ directory. I suggest you copy them out<br>of there and put them into some collective directory as you indicated you
<br>already did.<br>Then you have to edit the Makefile to indicate the include directories + where<br>to find these libraries in the build process.<br><br>This is what the relevant sections of my Makefile look like in the macosx
<br>section:<br>for ppc:<br>&nbsp;&nbsp;&nbsp;&nbsp;BASE_CFLAGS += -arch ppc -DSMP \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-I/Users/thilo/libogg-1.1.3/include \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-I/Users/thilo/libvorbis-1.1.2/include \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -nostdinc \<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-F/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks \<br>...<br><br>&nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS += -arch ppc \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-L/Users/thilo/libmerge/ppc \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-L/Developer/SDKs/MacOSX10.2.8.sdk/usr/lib/gcc/darwin/3.3 \<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-F/Developer/SDKs/MacOSX10.2.8.sdk/System/Library/Frameworks \<br><br>as you can see, I added a few lines. libmerge/ppc happens to be the place<br>where I put the ppc ogg and vorbis lib stuff into.<br><br>Similarly, for i386:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BASE_CFLAGS += -arch i386 -DSMP \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-mmacosx-version-min=10.4 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-I/Users/thilo/libogg-1.1.3/include \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-I/Users/thilo/libvorbis-1.1.2/include \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 -nostdinc \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/include<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include
<br>&nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS = -arch i386 -mmacosx-version-min=10.4 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-L/Users/thilo/libmerge/i386 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk,-m<br><br>These are only meant as examples, you will have to give the directories<br>depending on your setup of course. Notice, that I added a &quot;,-m&quot; in the very
<br>last block compared to the original, where no -m can be found after:<br>MacOSX10.4u.sdk<br>This may be required if building fails and the linker complains about some<br>double defined OpenAL symbols if I remember correctly.
<br><br>You will also want to defuse this line:<br># Always include debug symbols...you can strip the binary later...<br>&nbsp;&nbsp;BASE_CFLAGS += -gfull<br><br>by commenting it. You don&#39;t want debugging if you&#39;re not a developer or trying
<br>to hunt a bug. It will only bloat your binary and hurt speed.<br><br>I hope these instructions were sufficient. Good luck!<br><br>--<br>Thilo Schulz<br><br></blockquote></div><br>
</span></div></blockquote></div><br>
</span></div></blockquote></div><br>