SDL Mac OS X 10.6 Build Error

Hello everybody. I’m quite new to this forum, but have had an annoying problem with installing and running SDL on my mac (Intel Snow Leopard) to use with Xcode.
After having installed it, I have received this problem:

http://img689.imageshack.us/img689/4...91109at401.png

And these are the steps I took to install and run SDL prior to the above picture:

-latest version of Xcode installed after uninstalling previous version.
-downloaded SDL-1.2.14.dmg and SDL-devel-1.2.14-extras.dmg
-placed the SDL.frameworks into MacHD>Library>Frameworks
-from the dev extras, placed the SnowLeopard templates into MacHD>Library>Application Support>Developer>Shared>Xcode>Project Templates>Application
-I also put the documents into the specified Xcode doc section.
-once completed, I started xcode, opened new project, and selected SDL Application. Then (this was necessary for me) I switched the debug mode to 10.6, otherwise it would tell me I was lacking the 10.4 SDK (which I obviously dont have).
-I then built the program without making ANY changes to ANY of the files.
-All I got was the error in the above picture.

Well, I hope my installation/running explanation helped pinpoint the error.
I have had no other odd errors from xcode before.

Oh, the highlighted line in the picture was not on purpose. The whole picture is the problem…

I get a 404 trying to view this picture… ?On Thu, Nov 12, 2009 at 3:30 PM, jesseoffy wrote:

Hello everybody. I’m quite new to this forum, but have had an annoying
problem with installing and running SDL on my mac (Intel Snow Leopard) to
use with Xcode.
After having installed it, I have received this problem:

http://img689.imageshack.us/img689/4...91109at401.png

And these are the steps I took to install and run SDL prior to the above
picture:

-latest version of Xcode installed after uninstalling previous version.
-downloaded SDL-1.2.14.dmg and SDL-devel-1.2.14-extras.dmg
-placed the SDL.frameworks into MacHD>Library>Frameworks
-from the dev extras, placed the SnowLeopard templates into
MacHD>Library>Application Support>Developer>Shared>Xcode>Project
Templates>Application
-I also put the documents into the specified Xcode doc section.
-once completed, I started xcode, opened new project, and selected SDL
Application. Then (this was necessary for me) I switched the debug mode to
10.6, otherwise it would tell me I was lacking the 10.4 SDK (which I
obviously dont have).
-I then built the program without making ANY changes to ANY of the files.
-All I got was the error in the above picture.

Well, I hope my installation/running explanation helped pinpoint the error.
I have had no other odd errors from xcode before.

Oh, the highlighted line in the picture was not on purpose. The whole
picture is the problem…


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Ok, that was odd. Here is the picture again:
http://img27.imageshack.us/img27/3091/screenshot20091117at252.png

Oh, and for the debugger, I switched it to 10.6 using i386, so I don’t know why it’s still looking for the x86_64 thing.

The error makes me think you are trying to build 64-bit, but SDL is
missing the x86_64 arch. But this shouldn’t be the case unless you
have a stale SDL framework somewhere.

Verify this for me. On the command line, run the following command:

lipo -info /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/SDL.framework/SDL

You should see:
Architectures in the fat file:
/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/SDL.framework/SDL
are: x86_64 i386 ppc

Make sure the x86_64 arch is listed with the other two.

Also, to change the 64-bit and 10.4 SDK settings, you should bring up
the Info panel on the project (double click on the top-level project
in the Groups & Files panel) and select the Build tab. To see things
easily, pick “Show settings defined at this level” for Show: and “All
Configurations” for Configurations:

Look for the architecture and SDK settings here and change them to
something sensible for your needs.

Also, if you want the 10.4 SDK, if you still have the Xcode installer,
re-run it and make sure to check the 10.4 SDK option.

-EricOn 11/17/09, jesseoffy wrote:

Ok, that was odd. Here is the picture again:
http://img27.imageshack.us/img27/3091/screenshot20091117at252.png

Oh, and for the debugger, I switched it to 10.6 using i386, so I don’t know
why it’s still looking for the x86_64 thing.

Ok, interesting. I ran the terminal command that you posted and all I got was i386 and ppc. There was no x86_64 mentioned. What does this mean?

I haven’t done the second thing you told me to do. I’ll post the results for that.

Have you installed SDL in the past? I think you might be using the old
version and didn’t overwrite it with the new version. Also, as a
sanity check make sure the Library/Frameworks in the 10.6 SDK are just
a symlink to /Library/Frameworks. From the command line run:

ls -l /Developer/SDKs/MacOSX10.6.sdk/Library/

You should see:
total 8
lrwxr-xr-x 1 root wheel 19 Oct 17 16:34 Frameworks@ -> /Library/Frameworks

I would say, delete the SDL.framework in /Library/Frameworks.
Re-download the SDL-1.2.14.dmg
Re-copy the SDL.framework in the dmg to /Library/Frameworks.
(As a sanity check, re-run lipo.)

Hopefully it should just work.

-EricOn 11/17/09, jesseoffy wrote:

Ok, interesting. I ran the terminal command that you posted and all I got
was i386 and ppc. There was no x86_64 mentioned. What does this mean?

Ok, I did that check, and it said what you said it should say. (kind of repetitive there).

Ok, just to make sure, I am going to replace it in Macintosh HD>Library>Frameworks, correct?

what’s the lipo thing you mentioned? (“re-run lipo”)

Ok, just to make sure, I am going to replace it in Macintosh
HD>Library>Frameworks, correct?

Yes.

what’s the lipo thing you mentioned? (“re-run lipo”)

lipo -info /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/SDL.framework/SDL

-Eric

The lipo thing now shows x86_64 also. Thanks for the help!