Jump to content
  • Advertisement
Sign in to follow this  
LilrooJoe

SDL with g++ on OSX Lion

This topic is 2480 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Dose anyone know how to set up SDL (simple direct media layer) on OSX Lion so I can compile my code with g++ ? I have read the "readme" that comes with the package and I have placed the frameworks folder in the relevant directory, however, this does not seem to be enough. Can anyone help me ? I have been stuck with this problem for a week now, and any suggestions would be great. (I do not want to use Xcode)

Share this post


Link to post
Share on other sites
Advertisement
I have not used the command line to compile SDL code, but there are two common problems people have compiling SDL code from the command line on Mac OS X. First, the Mac version of SDL is a framework, not a library, so you must use the -framework flag to link to SDL. Second, the Mac version of SDL uses Cocoa so you must link to the Cocoa framework.

If neither of these suggestions solve your problem, you will have to provide more information for anyone to be able to help you. You will have to explain how you are trying to compile your code and explain the errors you're getting.

Share this post


Link to post
Share on other sites
There used to be an Xcode template for SDL so you could avoid all this nitty gritty but I don't think it's been updated for latest Xcode not to mention you said you don't want to use Xcode anyways.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!