Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Trouble with compiling SFML 2.1 static from source  (Read 1136 times)

0 Members and 1 Guest are viewing this topic.

Morgaza

  • Newbie
  • *
  • Posts: 3
    • View Profile
Trouble with compiling SFML 2.1 static from source
« 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:




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




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:




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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Trouble with compiling SFML 2.1 static from source
« Reply #1 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:
  • Use NMake Makefiles and build SFML from the console (recommended).
  • Edit the project files and remove the unnecessary quotes and HTML entities (not sure what the proper format should be.

Keep in mind, when you're building SFML static from the latest source, you'll need to link against all the dependencies (see here).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything