SFML community forums
Help => General => Topic started by: aNewHobby on May 11, 2012, 12:18:44 am
-
I can not seam to find the templates.
I built SFML2 form the snapshot using cmake and everything seamed to go fine... but I can not seam to see the sfml templates.... I go "New Project" like in the tutorial but I do not see any SFML templates...
Is there a way I can simple add them to Xcode?
-
I went to this site....
https://github.com/mantognini/Xcode-4-Templates
Downloaded the zip and copied the Templates Folder as per instructions...
Install
In order to use these templates in Xcode 4 copy the Templates folder to /Library/Developer/Xcode. Create the destination folder if needed.
I copied the templates there and I also tried ~/Library/blahblahblagh
-
I made a adjustment to the cmake and they showed up.. turns out you need to enable "developer mode" inside xcode for cmake to fully complete.
-
https://github.com/mantognini/Xcode-4-Templates is not related to SFML. As the readme (https://github.com/mantognini/Xcode-4-Templates#templates) says it only contains new C++ class template.
-
yeah i realise this, but the instructions in the read me didn't work. as in placing them / creating that directory didn't make the templates show up in xcode. I still do not know why.
The solution was to use cmake to build he templates and install them from the snapshot itself. This worked fine.
-
(I know your problem is now solved but I'm writing for futur reader so they can understand what to do and where to find explanation.)
the instructions in the read me didn't work.
This readme (https://github.com/mantognini/Xcode-4-Templates) is really only for my own project and doesn't work for SFML. But it works! The templates are available when you create a new file. Not a new project.
The solution was to use cmake to build he templates and install them from the snapshot itself.
Yes, this is written in Compiling SFML with CMake (http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php) tutorial.
You can also read this other readme (https://github.com/SFML/SFML/blob/master/tools/xcode/templates/readme.txt) which is for SFML's templates.
Alternatively, you can use the installer as explained in the getting started tutorial for mac (http://www.sfml-dev.org/tutorials/2.0/start-osx.php).