Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


SDL with g++ on OSX Lion


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 lilroo   Members   -  Reputation: 100

Like
0Likes
Like

Posted 29 February 2012 - 06:18 AM

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)

Sponsor:

#2 szymczyk   Members   -  Reputation: 182

Like
0Likes
Like

Posted 01 March 2012 - 02:18 PM

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.
Mark Szymczyk
Author of Mac Game Programming and Xcode Tools Sensei
http://www.meandmark.com

#3 daviangel   Members   -  Reputation: 600

Like
0Likes
Like

Posted 01 March 2012 - 07:57 PM

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.
Don't talk about writing games, don't write design docs, don't spend your time on web boards. Sit in your house write 20 games when you complete them you will either want to do it the rest of your life or not * Andre Lamothe




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS