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

Author Topic: SFML 2 confused as confused can be  (Read 2588 times)

0 Members and 1 Guest are viewing this topic.

meissner61

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
SFML 2 confused as confused can be
« on: April 09, 2011, 06:49:01 pm »
Okay so i am trying to follow the cmake tutorial which i am not even sure if is the one i should be following. Here are my steps so far.

1. it sais to find the "vcvars32.bat" file, i cant find that but i found one called "vcvarsall.bat" So i clicked that instead. and got a CMD window telling me its setting up environments which disappears after 2 seconds.

2. I Downloaded the SFML 2 snapshot and tried to put it through cmake only to get a

Quote
http://msdn.microsoft.com/en-us/windows/bb980924.aspx


error. I dont understand anything so far. the error is a link to the windows 7 SDK apparentlly.. I know im asking for basically the whole tutorial re-explained here but if someone could take the time to help me out i would really appreciate it. Thank you in advance.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6276
  • Thor Developer
    • View Profile
    • Bromeon
SFML 2 confused as confused can be
« Reply #1 on: April 10, 2011, 01:29:09 pm »
How can you get the Windows SDK as an error? :?

What error do you really get? Can you post a screenshot?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

meissner61

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
SFML 2 confused as confused can be
« Reply #2 on: April 10, 2011, 05:03:50 pm »


Here it is, but i have a feeling im just doing something basic wrong.

My steps of doing stuff was

1. download SFML 2 snapshot

2.Run that snapshot through cmake


I think im missing that stuff where he talks about vars bat file but i didnt understand the steps in the tutorial

meissner61

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
SFML 2 confused as confused can be
« Reply #3 on: April 10, 2011, 05:18:23 pm »
Oh wait a second. okay so i just selected visual studio 10 instead of x64, and it seems to have worked. So did i just get the basic SFML files i need and do i continue to use them like 1.6? (Like linking and and adding headers and libraries)?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6276
  • Thor Developer
    • View Profile
    • Bromeon
SFML 2 confused as confused can be
« Reply #4 on: April 10, 2011, 06:29:32 pm »
CMake generates the project files for Visual Studio. You can open them and compile the INSTALL project, which copies the include, bin and lib directories to the install directory chosen in CMake. Maybe you need admin privileges for VS.

After the installation, you can use the include files and libraries as always.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

meissner61

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
SFML 2 confused as confused can be
« Reply #5 on: April 10, 2011, 06:32:08 pm »
Wait, sorry i didnt understand. So after i pressed the generate button. I still need to do more? What do i need to install

EDIT: because after the generate thing seemingly worked, the folder which i told it to generate in is still empty..

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6276
  • Thor Developer
    • View Profile
    • Bromeon
SFML 2 confused as confused can be
« Reply #6 on: April 10, 2011, 06:40:29 pm »
Yes. You should start the whole process again, after deleting the generated directory and choosing "File -> Delete cache" in CMake.

1. Enter SFML directory ("Where is the source code"), let's say the path is X
2. Enter build directory ("Where to build the binaries"), I would choose X/build
3. Click "Configure" and select the compiler/IDE (probably VS 2010)
4. Some red options appear, like the install directory or static/shared build type. Choose them according to your needs. The install directory is where your include, src and lib folders are finally placed.
5. Click "Configure" again
6. Click "Generate"
7. Open the Visual Studio Solution in X/build with admin rights and compile the INSTALL project
8. Done
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

meissner61

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
SFML 2 confused as confused can be
« Reply #7 on: April 10, 2011, 06:52:37 pm »
Oh thank you very much. That worked well. the button pressing was very confusing. thanks again!

 

anything