SFML community forums

Help => General => Topic started by: bastien on May 07, 2012, 11:22:28 pm

Title: Error when building SFML from Github with Visual Studio 2008
Post by: bastien on May 07, 2012, 11:22:28 pm
Hello,

I built SFML from Github a few months ago, without any problems IIRC. I'm trying to build it again with the same Cmake and Visual Studio versions, but with the latest SFML code from Github.
I get a link error about no argument specified for /machine. I can't copy-paste the exact message because it's in French. It may have to do with the fact that I'm using a 64 bits OS (by the way, how can I specify which platform I'm targetting?)

Does anyone have any idea? I'm not using the RC release because I'm using it to build a pySFML installer, and there seems to be a platform mismatch between the Python module and the SFML DLLs.
Title: Re: Error when building SFML from Github with Visual Studio 2008
Post by: Laurent on May 08, 2012, 08:51:44 am
Quote
by the way, how can I specify which platform I'm targetting?
CMake has two different generators: Visual Studio 2008 and Visual Studio 2008 (x64).
Title: Re: Error when building SFML from Github with Visual Studio 2008
Post by: bastien on May 09, 2012, 12:14:34 am
CMake has two different generators: Visual Studio 2008 and Visual Studio 2008 (x64).

I'm using the NMake generator instead. I don't really want to use solution files if that's not needed.
In the advanced options, there is indeed a /machine: linker option, without any argument. I guess that's not intentional, since if the goal is to let the user choose which platform to target, at least one compiler option should be set as well.
I still couldn't build it, apparently my configuration changes didn't apply and I couldn't understand why. I'll probably try again tomorrow.
Title: Re: Error when building SFML from Github with Visual Studio 2008
Post by: Laurent on May 09, 2012, 08:15:56 am
Quote
I'm using the NMake generator instead
There's a directory for x64 tools (nmake) in your installation of Visual Studio.
Title: Re: Error when building SFML from Github with Visual Studio 2008
Post by: bastien on May 13, 2012, 12:41:48 am
For some reason, Windows loaded the 64 bits opengl32.dll instead of the 32 bits one. As soon as I copied the 32 version in my directory, my binding worked. Luckily the problem doesn't happen when installing the module via the installer.