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

Author Topic: Compiling sfml 2 [solved]  (Read 1127 times)

0 Members and 1 Guest are viewing this topic.

StepO

  • Newbie
  • *
  • Posts: 2
    • View Profile
Compiling sfml 2 [solved]
« on: July 21, 2012, 04:10:13 pm »
Hey!

I am trying to compile sfml 2 like shown in this tutorial

I get stuck here:
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.
« Last Edit: July 21, 2012, 07:28:17 pm by StepO »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Compiling sfml 2
« Reply #1 on: July 21, 2012, 04:43:37 pm »
sfml/src/sfml is supposed to contain a CMakeLists.txt file too. If not, your source tree is incomplete.
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Re: Compiling sfml 2
« Reply #2 on: July 21, 2012, 04:46:27 pm »
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!
SFML 2.1

StepO

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Compiling sfml 2
« Reply #3 on: July 21, 2012, 07:27:55 pm »
Thanks! The file really was missing...

Let's try to make this work with eclipse...


 

anything