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

Author Topic: Compiling SFML  (Read 1311 times)

0 Members and 1 Guest are viewing this topic.

Bengel

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Compiling SFML
« 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



I configured without any errors and choosed "use static libs" and deselected "build shared libs"



After this I started the project from the build folder where cmake generated the vs2013 project and built it successfully



and the result is not the same as I expected



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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Compiling SFML
« Reply #1 on: January 14, 2014, 08:02:15 pm »
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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Bengel

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Compiling SFML
« Reply #2 on: January 14, 2014, 08:48:25 pm »
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

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Compiling SFML
« Reply #3 on: January 14, 2014, 09:16:04 pm »
Stupid question: are you sure you regenerated the visual studio project after making the changes in cmake?
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Bengel

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Compiling SFML
« Reply #4 on: January 14, 2014, 09:24:53 pm »
Hi, i deleted all files and did it from beginning, i guess it's ok.