SFML community forums

Help => General => Topic started by: Morgaza on February 04, 2014, 06:40:56 pm

Title: Trouble with compiling SFML 2.1 static from source
Post by: Morgaza on February 04, 2014, 06:40:56 pm
Hello,

I am having trouble compiling SFML 2.1 as static for my project.

I have my CMake (version 2.8.12.2) setup as following:

(http://img.4o2.nl/i/25nu3fr.png)


When I open the project with my Visual Studio (2013) to compile, it shows that the projects are broken:

(http://img.4o2.nl/i/26o3jhaj.png)


I opened one of the project files (sfml-network.vcxproj in this case) to see if I could find out why, and it was highlighting the following lines:

(http://img.4o2.nl/i/27grmo4s.png)


I presume that something went wrong with CMake? I am not that familiar with using it, and I just follow the tutorial on SFML's website, but I can't find anything in there that could cause this to happen.


Kind regards,
Morgaza
Title: Re: Trouble with compiling SFML 2.1 static from source
Post by: eXpl0it3r on February 05, 2014, 05:18:30 pm
We've seen reports of this issue in the past few month. I'd have to do some research to figure out if it's a CMake issue or something in SFML's CMake files. So you're left with two options:

Keep in mind, when you're building SFML static from the latest source, you'll need to link against all the dependencies (see here (https://github.com/SFML/SFML/wiki/FAQ#wiki-build-link-static)).