Computer Science Canada

Using Mac frameworks without xcode

Author:  Insectoid [ Tue Dec 27, 2011 11:48 pm ]
Post subject:  Using Mac frameworks without xcode

I want to keep exploring different libraries such as SDL and Allegro, however OS X utilizes frameworks to bundle these things, and I have no idea how to use frameworks without xcode. I don't really like xcode all that much. I'm quite happy to keep using TextWrangler for the time being. All of the tutorials for installing and using various frameworks do so through xcode, with the result being that I have no idea how to link to frameworks manually (in xcode, you pick your frameworks from a list and add them, or open a template project with the necessary frameworks pre-linked).

Google has been of no help. Do any mac users know how to link these things manually?

Author:  Tony [ Wed Dec 28, 2011 12:11 am ]
Post subject:  RE:Using Mac frameworks without xcode

those appear to be cross-platform C/C++ libraries, so (after the library is installed on your system) the standard linking options should work just fine.

Probably something like
code:

-l libraryname

in your Makefile. http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

Try referring to the "Linux" version of instructions, sometimes those are relevant enough to be helpful.


: