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

Author Topic: SFML2 Build 32-bit libraries on 64-bit system  (Read 1693 times)

0 Members and 1 Guest are viewing this topic.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
SFML2 Build 32-bit libraries on 64-bit system
« on: March 09, 2011, 06:11:32 am »
I need to be able to compile SFML for both 32-bit and 64-bit Linux from a 64-bit desktop so that I can distribute games for both 32-bit and 64-bit. However, I do not know the steps needed to compile 32-bit on Linux with cmake. I have the multilib GCC installed, so that isn't a problem.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
SFML2 Build 32-bit libraries on 64-bit system
« Reply #1 on: March 09, 2011, 08:04:59 am »
Apparently all you need is the -m32 compiler flag. You can probably add it externally using the CMAKE_CXX_FLAGS option or something.
Laurent Gomila - SFML developer

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
SFML2 Build 32-bit libraries on 64-bit system
« Reply #2 on: March 10, 2011, 02:00:25 am »
Thanks, I figured it was something like that.
I use the latest build of SFML2