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

Author Topic: How to build CSFML2?  (Read 5559 times)

0 Members and 1 Guest are viewing this topic.

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
How to build CSFML2?
« on: January 31, 2011, 12:57:23 am »
Exactly as the post says. I'm running on Windows 7 (64-bit), and I've pulled the latest sfml2 from the SVN, but building the DLLs is proving to be difficult. I tried configuration through CMake, and I get errors like:

Code: [Select]

LINK : fatal error LNK1104: cannot open file 'C:\Users\Me\Documents\devl\CSFML\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe' [C:\Users\Me\Documents\devl\CSFML\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]


Also a warning about -nologo being deprecated in MSVC. Can anybody shed some light on this?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How to build CSFML2?
« Reply #1 on: January 31, 2011, 07:30:59 am »
Did you follow the the tutorial for SFML? What did you do exactly?
Laurent Gomila - SFML developer

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
How to build CSFML2?
« Reply #2 on: January 31, 2011, 03:42:04 pm »
I checked out the sfml2 source from the SVN, then used the CMake GUI to open the CMakeLists.txt file in the root directory. Upon clicking "Configure", I got these errors.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How to build CSFML2?
« Reply #3 on: January 31, 2011, 04:16:32 pm »
What build system did you choose after clicking "configure" in cmake-gui?
Laurent Gomila - SFML developer

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
How to build CSFML2?
« Reply #4 on: January 31, 2011, 04:18:22 pm »
Ah, sorry, I chose Visual Studio 10 64-bit, using default compilers. Should I have used 32-bit?

Edit: Configures fine with 32-bit. My mistake!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How to build CSFML2?
« Reply #5 on: January 31, 2011, 04:31:42 pm »
So maybe your version of Visual Studio was not 64-bits?
Laurent Gomila - SFML developer

RobotGymnast

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
How to build CSFML2?
« Reply #6 on: January 31, 2011, 04:43:24 pm »
It is; I've done a 64-bit project before using CMake.

Update: For some reason, hitting "Configure" again solves the issue. Probably something weird about access in the Windows filesystem, or CMake's not creating the folder before it tries to compile into it.

 

anything