| Problems with linking the static satellite libs on OS X |
|
Dominus
|
Interestingly when I compile for PPC the error isn't happening and all links fine.
|
|||||||||||
|
|
||||||||||||
|
Dominus
|
now I'm a bit closer to the mystery:
seems the static libs I built are not really static for some reason. otool -L ./.libs/libsdl_ttf.a Archive : ./.libs/libsdl_ttf.a ./.libs/libsdl_ttf.a(libSDLmain.a): is not an object file ./.libs/libsdl_ttf.a(libSDL.a): is not an object file ./.libs/libsdl_ttf.a(SDL_ttf.o): I have no idea why this happens as I somehow managed to make the correct static builds before. |
|||||||||||
|
|
||||||||||||
|
Dominus
|
Since I'm talking to myself...
Solved it... I needed to point pkg_config at nothing (export PKG_CONFIG_PATH=) somehow pkgconfig screwed everything up. Now I need to rebuild all my libs... |
|||||||||||
|
|
||||||||||||
| Problems with linking the static satellite libs on OS X |
|
Eric Wing
Guest
|
On 1/26/12, Dominus wrote:
My casual glance at the error message makes me think you don't have the architecture you need in your libraries. (e.g. You need i386, but you only have ppc.) You can run lipo -info on the library to see what architectures are inside. -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
|
||||||||||||||
| Re: Problems with linking the static satellite libs on OS X |
|
Dominus
|
Thanks but that wasn't it. The problem was that I had "export PKG_CONFIG_PATH=pathtomyarchspecificprefix"" This caused the makefiles to contain
instead of the correct:
So that is obviously doing bad stuff and for some reason building with the static SDL libs into the SDL_ttf libs as well as linking dynamicly to it. This confuses the linker when you link the static SDL_ttf libs to an app. I checked all it's linking and everything had the correct arch but all the double/tripple linking confuses the linker... |
|||||||||||||||||||
|
|
||||||||||||||||||||

