PDA

View Full Version : Question about creating a .app directory and Framework linking...




DUMBDOG
Mar 21, 2009, 01:28 AM
I am making a simple OpenGL/GLUT based FPS for my computer graphics class. I am using g++ and vim for all editing, compiling, and linking. My first question is how do I go about creating a clickable .app directory? Is there a certain structure that I have to maintain within the directory for it to work? or is just placing the executable file and resource files in the directory enough? I have not tried anything yet.

My more important question is about linking to the SDL library. For sound in the game I have chosen to used the SDL and SDL_mixer libraries. I had to manually copy the frameworks onto my computer to use them during development. My question is, is there a way to include the libraries with the executable so the user doesn't have to manually download and copy the frameworks onto their personal computers like I had to?

Are there any tutorials or blogs about these two questions somewhere on the web?

Thanks for the help.



Cromulent
Mar 21, 2009, 04:06 AM
I am making a simple OpenGL/GLUT based FPS for my computer graphics class. I am using g++ and vim for all editing, compiling, and linking. My first question is how do I go about creating a clickable .app directory? Is there a certain structure that I have to maintain within the directory for it to work? or is just placing the executable file and resource files in the directory enough? I have not tried anything yet.

My more important question is about linking to the SDL library. For sound in the game I have chosen to used the SDL and SDL_mixer libraries. I had to manually copy the frameworks onto my computer to use them during development. My question is, is there a way to include the libraries with the executable so the user doesn't have to manually download and copy the frameworks onto their personal computers like I had to?

Are there any tutorials or blogs about these two questions somewhere on the web?

Thanks for the help.

If you use Xcode it will do all of that for you automatically.

DUMBDOG
Mar 22, 2009, 08:30 PM
Yeah thats what kinda turns me off about Xcode (at least right now). Before I start to rely on Xcode (or any other sophisticated IDE for that matter) to do all of the grunt work for me, I want to learn how to do it myself. I googled around a bit and found some documentation on the .app structure on apple's developer website, so that should tell me everything I need to know. Thanks.