Re: SDL framework not found
Re: SDL framework not found
- Subject: Re: SDL framework not found
- From: Eric Wing <email@hidden>
- Date: Tue, 03 Jun 2014 06:15:28 -0700
On 5/24/14, Livio Isaia <email@hidden> wrote:
> Hi all,
> I' trying to compile the OpenSceneGraph.xcodeproj previously created with
> CMake and I always get
>
> ld: framework not found SDL
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> Now, I have the SDL.framework in /System/Library/Frameworks, so I don't
> really understand why this happens.
> Tried to set framework search path explicitly to /System/Library/Frameworks,
> but nothing changes.
>
> Does anyone has an idea of what's going on?
>
> OSX 10.9.3
> xcode 5.1.1
>
> Thank you all in advance,
> best regards,
> livio.
Yikes, SDL, OpenSceneGraph, and CMake. It's almost as if this question
was calling me out.
This is actually a better question for the CMake list and future ones
like this probably should move there.
But to answer your question.
1) Never put anything in /System/Library/Frameworks. That belongs to
Apple/OS provided stuff.
2) A long time ago, your stuff used to go in ~/Library/Frameworks or
/Library/Frameworks (and rarely /Network/Library/Frameworks) and the
compiler used to automatically look in these directories. However, the
advent of target SDKs now constrains the search paths to only those in
the SDK so nothing else gets found.
3) The -F switch can add directories to your framework search path.
There is also a setting in Xcode to add directories to the frameworks
search path. (Which invokes -F for you.)
4) However, I've found that */Library/Frameworks gives me problems
with either CMake or Xcode...not sure which. But I think CMake ignores
-F switches for /Library/Frameworks paths because of an old legacy
problem. So putting your frameworks anywhere else but here might be
the workaround. (Somebody needs to document this specific behavior
issue with CMake and file a bug with them.)
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden