TomorrowPlusX
2004.10.13, 01:14 PM
I recently started to use FTGL to display nice truetype for a HUD for my game.
FTGL itself works great. It looks good, performance is excellent, no problem.
The trouble is getting Xcode to statically link against the libs, so that the app is self-contained, and doesn't require users to install freetype!
I doscovered recently that Xcode was dynamically linking against libfreetype.dylib even though I had provided it with libfreetype.a
So, to fix this, my process was this: I built freetype on the command line but didn't install it -- so no headers or libs in /usr/local; and then rebuilt FTGL using the Xcode project, linking against the libfreetype.a in the freetype build folder.
libftgl built and linked, fine.
So then I built my app using it, and got this linker error:
ld: lib//libfreetype.a(ftgzip.o) illegal reference to symbol: _inflateEnd defined in indirectly referenced dynamic library /usr/lib/libz.1.dylib
Any ideas? What can I do?
FTGL itself works great. It looks good, performance is excellent, no problem.
The trouble is getting Xcode to statically link against the libs, so that the app is self-contained, and doesn't require users to install freetype!
I doscovered recently that Xcode was dynamically linking against libfreetype.dylib even though I had provided it with libfreetype.a
So, to fix this, my process was this: I built freetype on the command line but didn't install it -- so no headers or libs in /usr/local; and then rebuilt FTGL using the Xcode project, linking against the libfreetype.a in the freetype build folder.
libftgl built and linked, fine.
So then I built my app using it, and got this linker error:
ld: lib//libfreetype.a(ftgzip.o) illegal reference to symbol: _inflateEnd defined in indirectly referenced dynamic library /usr/lib/libz.1.dylib
Any ideas? What can I do?