[SDL] OSX linking problem.

RodrigoCard cuecax at gmail.com
Mon Jul 25 12:16:19 PDT 2011

I figured out that it is trying to link to some old dylib, the same problem as here:
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=%28\bCategoryRender\b%29|%28CategoryStruct%29|%28CategoryEnum%29
> (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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110725/47f1916d/attachment-0008.htm>

More information about the SDL mailing list