OSX linking problem

Hi

I got the latest sdl from mercurial and built it as a fat static library for mac (x64, x86, ppc). without any modifications, except for folder paths.

then I just paste a very simple test app from here:
http://wiki.libsdl.org/moin.cgi/SDL_RenderClear?highlight=(\bCategoryRender\b)|(CategoryStruct)|(CategoryEnum)
(I’m using the SDL cocoa application template as base)

I can only build and run the x64 binary (with Build Active Archtecture Only checked) , when I try to run x86 and ppc versions it gives me these Warnings and a bunch of linker errors:

ld: warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libSDL.dylib, file was built for unsupported file format which is not the architecture being linked (i386 (or ppc) )

looks like xcode is trying to mess with the dylibs, even without the SDL.framework included, for some reason.

I didn’t do any architecture-specific configurations, what can i do to fix this?

thanks.

I figured out that it is trying to link to some old dylib, the same problem as here:
http://forums.libsdl.org/viewtopic.php?t=7361&sid=f6289330319936b86e594001515c9fdc
and I messed a lot in the project… and now the x64 also doesnt build… [Laughing]

I still got linker errors and have no idea why, I already included all paths needed.
Maybe the best thing to do is just stop trying to link it staticaly and use the framework instead… this is driving me crazy =/

RodrigoCard wrote:> Hi

I got the latest sdl from mercurial and built it as a fat static library for mac (x64, x86, ppc). without any modifications, except for folder paths.

then I just paste a very simple test app from here:
http://wiki.libsdl.org/moin.cgi/SDL_RenderClear?highlight=(\bCategoryRender\b)|(CategoryStruct)|(CategoryEnum)
(I’m using the SDL cocoa application template as base)

I can only build and run the x64 binary (with Build Active Archtecture Only checked) , when I try to run x86 and ppc versions it gives me these Warnings and a bunch of linker errors:

ld: warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libSDL.dylib, file was built for unsupported file format which is not the architecture being linked (i386 (or ppc) )

looks like xcode is trying to mess with the dylibs, even without the SDL.framework included, for some reason.

I didn’t do any architecture-specific configurations, what can i do to fix this?

thanks.