PDA

View Full Version : SDL, Nibs and GCC


psyba
2006.08.02, 07:40 PM
Is it possible to include a nib files with gcc, command line style? I'm trying to link to the SDL framework but all of my searching is just showing up stuff for -lsdlmain from 2005. It seems they have replaced the dynamic library with a nib but I can't figure out how to link against it.

OneSadCookie
2006.08.02, 07:45 PM
you don't link against a nib; it's just a normal resource file.

To use SDL from the command-line, you'll need to use -F/path/to/folder/containing/SDL.framework -framework SDL in your linker flags. You'll also need SDLMain, but that generally comes as a source file (SDLMain.m) on Mac OS X.

Here's a build script for building a bundled, universal Mac application. It may or may not be helpful to you :) http://onesadcookie.com/svn/repos/Astro/SConstruct

psyba
2006.08.02, 08:22 PM
I haven't been able to connect to your site for the past couple of hours (was working earlier).

But I did get it working, so thank you. I thought SDLMain.m was part of the original source and including it was a hackish way of getting it to work. I wanted to do it the correct way so I over looked it as the method I wanted to do. Now looking in the devel-lite folder of the dmg it seems I was wrong. :\