Renmusxd
Renmusxd

Reputation: 33

SDL missing x86_64 architecture

I'm trying to get the SDL example code for XCode working on my Snow Leopard machine, however every time I attempt to build I receive this error: "ld: warning: in /Users/me/Dropbox/Programming/Obj C/Space/SDL.framework/SDL, missing required architecture x86_64 in file" Originally it was to "/Library/Frameworks/..." but I have copied the entire SDL.framework into my project and linked to it, however the error persists.

Upvotes: 2

Views: 1419

Answers (2)

ComicSansMS
ComicSansMS

Reputation: 54589

This is a known problem with the pre-built binaries from the SDL homepage. You need to compile SDL yourself to get it to work.

The simplest way to do this is to use Homebrew. You can install Homebrew with a single command from the Terminal. After that, run

brew install sdl

and you should be good to go.

Upvotes: 2

James Zaghini
James Zaghini

Reputation: 4001

Download the latest SDL.Framework from here:

It has a folder called SDL.framework inside, replace your existing framework with the one from the download.

You will likely need to do a clean, then build to get it to work.

Not related to your question exactly, but I also needed to replace these frameworks for the same reason:

Upvotes: 1

Related Questions