[SDL] Getting the system resolution

Peter Mulholland darkmatter at freeuk.com
Tue Dec 5 02:08:23 PST 2006


Hello Nuno,

Tuesday, December 5, 2006, 9:20:19 AM, you wrote:

> Hi Artem,

> I have found it on my sources as well.

> I also discovered that what was being linked was the framework.

> Well, but its kind of useless now since i cant make it work on OSX.

> With this story of the framework linking, i deleted all the  
> frameworks (SDL and SDL ttf) to link against the built sources.

> I have SDL ttf installed just like SDL and Xcode is not finding SDL  
> ttf lib file.

> Its says that its referenced by a certain file that doesnt not exist,
> but the file exists! :S

> Does any one has a tip for this problem?

First off, the versions of SDL etc you installed, did you build your
own frameworks, or did you build them from Terminal using ./configure
and make ?

If you are using frameworks, make sure you have SDL.framework etc in
ONE PLACE ONLY and make sure this is the copy you want to use. I
normally use my Home folders Library/Frameworks/ for this.

Finally, if you use frameworks, they expect all headers to be referred
to by #include <FrameworkName/header.h>, so for SDL this would be
#include <SDL/SDL.h>. The problem with this, is the standard headers
don't adhere to that. The fix is either a) manually adding the path to
the frameworks Headers folder, or b) correcting the headers in the
Framework to follow this.

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com





More information about the SDL mailing list