1
General discussions / SFML 2.0 Mac OSX in App Bundle
« on: March 02, 2011, 07:24:14 am »
Hello,
I realize that the instructions say to create a new C++ command line project and include the dynamic/static libraries from cmake. I got everything to work doing it that way. However, is it possible to build a bundle with 2.0?
I tried to create a new Cocoa project, modify it to include all the SFML libraries. So far so good. Everything works except for my working directory... I have to reference: "TestSFML.app/Contents/Resources/testimage.png" instead of just "testimage.png". It seems that the working directory is where the bundle is located. Anyways, I could be doing it all wrong....
I'm really just wondering if it is possible to build a bundle with 2.0 or do I just need to do a chdir() system call.
Thanks!
I realize that the instructions say to create a new C++ command line project and include the dynamic/static libraries from cmake. I got everything to work doing it that way. However, is it possible to build a bundle with 2.0?
I tried to create a new Cocoa project, modify it to include all the SFML libraries. So far so good. Everything works except for my working directory... I have to reference: "TestSFML.app/Contents/Resources/testimage.png" instead of just "testimage.png". It seems that the working directory is where the bundle is located. Anyways, I could be doing it all wrong....
I'm really just wondering if it is possible to build a bundle with 2.0 or do I just need to do a chdir() system call.
Thanks!