SFML community forums

Bindings - other languages => C => Topic started by: RobotGymnast on January 31, 2011, 12:57:23 am

Title: How to build CSFML2?
Post by: RobotGymnast 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?
Title: How to build CSFML2?
Post by: Laurent on January 31, 2011, 07:30:59 am
Did you follow the the tutorial for SFML? What did you do exactly?
Title: How to build CSFML2?
Post by: RobotGymnast 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.
Title: How to build CSFML2?
Post by: Laurent on January 31, 2011, 04:16:32 pm
What build system did you choose after clicking "configure" in cmake-gui?
Title: How to build CSFML2?
Post by: RobotGymnast 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!
Title: How to build CSFML2?
Post by: Laurent on January 31, 2011, 04:31:42 pm
So maybe your version of Visual Studio was not 64-bits?
Title: How to build CSFML2?
Post by: RobotGymnast 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.