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

Author Topic: Please how to do to run my poor SFML game on a 64 bit system?  (Read 2071 times)

0 Members and 1 Guest are viewing this topic.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Please how to do to run my poor SFML game on a 64 bit system?
« on: November 11, 2017, 09:47:17 pm »
Hello everyone!

I'm now at a friend of mine's place who has a more powerful CPU, and want to make a gameplay video of my poor Super Mario game, but the system is 64 bit. I have already tried running my x86 app with the 64 bit DLLs and the x64 app with the 64 bit DLLs and both fail. It is Windows 10.

Can anyone tell me how to do? Thanks

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Please how to do to run my poor SFML game on a 64 bit system?
« Reply #1 on: November 11, 2017, 09:53:43 pm »
32-bits applications run fine on 64-bits systems.
If you want a 64-bits binary, you need to compile it as a 64-bits binary with 64-bits SFML version.

So what's the issue?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Please how to do to run my poor SFML game on a 64 bit system?
« Reply #2 on: November 11, 2017, 10:01:27 pm »
I tried to run the x86 app with the 64 bit DLLs (except sfml-xxxx) and it failed, then I tried again to run the game with ALL 64 bit DLLs (including the sfml-xxxx.DLL) and it failed too

I also tried to run the app that I built for x64, with all the 64 bit DLLs and it failed too

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Please how to do to run my poor SFML game on a 64 bit system?
« Reply #3 on: November 11, 2017, 11:09:36 pm »
May it be that x86 apps run on x64 systems with x86 DLLs?

Sorry for my ignorance

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: Please how to do to run my poor SFML game on a 64 bit system?
« Reply #4 on: November 11, 2017, 11:24:35 pm »
Yes, be sure to build as x86, not Any CPU.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Please how to do to run my poor SFML game on a 64 bit system?
« Reply #5 on: November 12, 2017, 12:53:23 am »
Yes, I was told to build the .exe as x86 with the 32 bit sfml-xxxx.dll s, but my doubt is the dll s that have to be in the .exe's folder: the csfml-xxxxx.dll s, the sfml-xxxx.dll s, and others (that I don't even know if are necessary), do they have to be 32 bit as well?

I had to install VS in my friend's PC and the game ran fine (all x86 and 32 bit dll s), so supposedly the answer above would be yes? I'm confused, cos I remember having read that one member who has a 64 bit system (was it you, dabbertorres?) had to change the dll s after I change the build to x86 with another game I posted ...  ???

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: Please how to do to run my poor SFML game on a 64 bit system?
« Reply #6 on: November 12, 2017, 08:01:28 am »
You are correct, the executable, along with any required DLLs, must be the same architecture.

On your space shooter game, I ran a corflags.exe (included in a .NET SDK) command to force your executable (which was built as Any CPU) to run as a 32-bit/x86 process on my 64-bit/x64 machine.