SFML community forums
Help => General => Topic started by: Bengel on January 14, 2014, 07:53:36 pm
-
Hello,
I want first to apologize for my bad English.
I have trouble with compiling SFML. I read and successfully completed the tutorial how to recompile SFML with visual studio 2013. My issue is that I don't get the static .lib files. Here we go my proceed with pictures.
First i downloaded the version SFML 2.1 the all folder with sources.
I started cmakeGUI and choosed the visual studio 2012 as a compiler
(http://images.devs-on.net/Image/gwAOmBCjJoR3NZfX-Bereich.png)
I configured without any errors and choosed "use static libs" and deselected "build shared libs"
(http://images.devs-on.net/Image/2iLMzdYzzHkvvswU-Bereich.png)
After this I started the project from the build folder where cmake generated the vs2013 project and built it successfully
(http://images.devs-on.net/Image/lbcG61eNxt4yNrmR-GanzenBildschir.png)
and the result is not the same as I expected
(http://images.devs-on.net/Image/MqQo5klYwD4Xpbww-Bereich.png)
There are no files like in the tutorial for linking SFML statically like sfml-window-s-d.lib
What have I done wrong?
thanks alot for your answers.
-
You should build the INSTALL project, not ALL_BUILD. But first, set the CMAKE_INSTALL_PREFIX accordingly, to the folder where you want the installed files to be.
Nevertheless, if you uncheck the option "BUILD_SHARED_LIBS", there should be static libraries. Does it work if you uncheck "SFML_USE_STATIC_STD_LIBS"? I wouldn't recommend that option unless you know exactly what you're doing. Static C++ runtime libraries can easily cause problems if you're not very careful.
-
Hi,
I changed the CMAKE_INSTALL_PREFIX and built the INSTALL project successfully. The result is the same, I don't get the sfml-xxx-s-d.lib files. Maybe the files are correct only that the files were renamed in the tutorial. I am not sure about that.
Here the same files I get
(http://images.devs-on.net/Image/7vcTyTwpy9Q30TVo-Bereich.png)
-
Stupid question: are you sure you regenerated the visual studio project after making the changes in cmake?
-
Hi, i deleted all files and did it from beginning, i guess it's ok.