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

Author Topic: Error when building SFML from Github with Visual Studio 2008  (Read 3362 times)

0 Members and 1 Guest are viewing this topic.

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
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.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error when building SFML from Github with Visual Studio 2008
« Reply #1 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).
Laurent Gomila - SFML developer

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
Re: Error when building SFML from Github with Visual Studio 2008
« Reply #2 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.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error when building SFML from Github with Visual Studio 2008
« Reply #3 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.
Laurent Gomila - SFML developer

bastien

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • http://bastien-leonard.alwaysdata.net
Re: Error when building SFML from Github with Visual Studio 2008
« Reply #4 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.
Check out pysfml-cython, an up to date Python 2/3 binding for SFML 2: https://github.com/bastienleonard/pysfml-cython