SFML community forums
Help => General => Topic started by: StepO on July 21, 2012, 04:10:13 pm
-
Hey!
I am trying to compile sfml 2 like shown in this tutorial (http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php)
I get stuck here:
http://imgur.com/ZN4Hj (http://imgur.com/ZN4Hj)
cmake seems to be expecting the cmakelists to be in /sfml/src/sfml instead of /sfml where it is.
Help would be appreciated! Thank you.
-
sfml/src/sfml is supposed to contain a CMakeLists.txt file too. If not, your source tree is incomplete.
-
Personally, I get cmake to output in the same place as the source code. It really should be very simple. I extract the SFML code to something like C:\SFML_210712, so under this you have the cmake, doc, example directories, and so on.
Then just have the same paths in the cmake for source code and binaries, hit Configure, set the options you want (hover over the text, e.g. BUILD_SHARED_LIBS, to see what it means). When you have made your selections, hit Configure again, then Generate - and you are done.
Oh just make sure your compiler is the right one - Visual Studio 10 is VC++ 2010. Choose anything other than the compiler you will use in your game/project when using SFML....and Laurent (SFML god ;)) only knows what will happen!
-
Thanks! The file really was missing...
Let's try to make this work with eclipse...