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

Author Topic: [Windows-x64] Building SFML?  (Read 6749 times)

0 Members and 1 Guest are viewing this topic.

Andy

  • Newbie
  • *
  • Posts: 18
    • View Profile
[Windows-x64] Building SFML?
« on: March 20, 2010, 01:19:03 am »
Hi, New guy here!

First off I want to extend my personal thanks to Laurent for making this library.  I'm developing an open-source (BSD-modified) game engine to act as a way for me to learn C++ and to make something on a "metal-level" that would run and lightly.

As the title states, is there a way to compile the library for windows-x64?

Btw, I'm using MSVC 2008 (acquired form MSDNAA) so I can build 64-bit binaries with it.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[Windows-x64] Building SFML?
« Reply #1 on: March 20, 2010, 11:25:15 am »
Quote
First off I want to extend my personal thanks to Laurent for making this library

Thank you :)

Quote
As the title states, is there a way to compile the library for windows-x64?

Like any other project: open the solution, select the configuration and click "build".
There's even a batch build if you want to compile every configuration in one click without opening the IDE.
Laurent Gomila - SFML developer

Andy

  • Newbie
  • *
  • Posts: 18
    • View Profile
[Windows-x64] Building SFML?
« Reply #2 on: March 20, 2010, 09:18:49 pm »
:shock: There doesn't appear to be a x64 configuration only win32.

I could try and make x64 build configuration and try to compile it.  I'm not sure things will go with it's dependencies (try to find the right version).  I will also try to compile them.  I'm not an experienced programmer.

Then again I had the same problem with SDL, I couldn't find any 64-bit version of the library for windows.

Antidote

  • Newbie
  • *
  • Posts: 35
    • View Profile
[Windows-x64] Building SFML?
« Reply #3 on: March 21, 2010, 05:05:20 am »
From what I've seen of the source, some of the libraries included aren't thread safe, that would make getting an x64 bit version compiling difficult though it is possible.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[Windows-x64] Building SFML?
« Reply #4 on: March 21, 2010, 11:33:31 am »
Quote
There doesn't appear to be a x64 configuration only win32

But it should build fine for 64 bits platforms. I never tried (I don't have a 64 bits Windows on my comp), but SFML builds just fine for Linux 64 without any modification.

Quote
I'm not sure things will go with it's dependencies (try to find the right version)

That could be a problem, indeed.

Quote
From what I've seen of the source, some of the libraries included aren't thread safe, that would make getting an x64 bit version compiling difficult though it is possible.

What's the relation between thread-safety and 64 bits??
Laurent Gomila - SFML developer

Mr. X

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
[Windows-x64] Building SFML?
« Reply #5 on: March 21, 2010, 04:15:04 pm »
It does work, i compiled SFML for x64.

T.T.H.

  • Full Member
  • ***
  • Posts: 112
    • View Profile
[Windows-x64] Building SFML?
« Reply #6 on: March 23, 2010, 10:09:55 am »
I'm compiling the windows and graphics related parts of SFML2 with their default settings in VC++2008 Express on Windows Vista 64 bit and all seems fine. I assume this creates 32 bit executables and I have never tried to create 64 bit executables.

Andy

  • Newbie
  • *
  • Posts: 18
    • View Profile
[Windows-x64] Building SFML?
« Reply #7 on: March 24, 2010, 12:10:34 am »
Wow...
I just now found that I was able to compile 9/17.

2 of the failures where from the lack of wxWidgets (I'll fix that later).

Some unresolved externals, but that looks like it could be fixed with compiling a x64 version of the FreeType Library.

As I've mentioned I'm not an experienced programmer.  What did you do to compile a x64 version?  Please, be nice... I'm not trying to push anyone's patience.

model76

  • Full Member
  • ***
  • Posts: 231
    • View Profile
[Windows-x64] Building SFML?
« Reply #8 on: March 24, 2010, 03:41:56 am »
People here are almost always nice, and when they are not, they are politely told to be. This is a nice place, so don't worry about it! :)