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

Author Topic: Build a 32 bit SFML 2 library in a 64 bit GNU/Linux  (Read 4845 times)

0 Members and 1 Guest are viewing this topic.

.teri

  • Newbie
  • *
  • Posts: 28
    • View Profile
Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
« on: August 09, 2011, 08:04:45 pm »
Any tip? Worth it the build? Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
« Reply #1 on: August 09, 2011, 08:39:07 pm »
Could you be more precise?

Any tip for what?

Worth the build... for what?
Laurent Gomila - SFML developer

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
« Reply #2 on: August 09, 2011, 10:37:20 pm »
I'm going to try and gather what you're asking from the title.
Yes, you can build SFML2 for 32-bit Linux from 64-bit Linux. I actually just did this. I don't know how to do this from the command line, but if you edit the CMakeLists.txt in the SFML root directory, add in set(CMAKE_CXX_FLAGS "-m32") and cmake will compile it in 32-bit.
I use the latest build of SFML2

.teri

  • Newbie
  • *
  • Posts: 28
    • View Profile
Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
« Reply #3 on: August 10, 2011, 12:33:50 am »
Oh, sorry for don't be precise. I was investigating for my own and i was tired when i wrote this post. Ok, no more excuses.

Quote

I don't know how to do this from the command line, but if you edit the CMakeLists.txt in the SFML root directory, add in set(CMAKE_CXX_FLAGS "-m32") and cmake will compile it in 32-bit.


I see. In command line is gcc -m32 and in make files add the CCFLAGS "-m32". I was searching a option or something available in cmake files to build SFML2 for 32 bit OS.
Sorry and thanks by the answers.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
« Reply #4 on: August 10, 2011, 07:55:31 am »
Quote
if you edit the CMakeLists.txt in the SFML root directory, add in set(CMAKE_CXX_FLAGS "-m32")

All options can be changed without editing the CMake files themselves (you should never ever modify them). Either with the GUI, or passing "-DCMAKE_CXX_FLAGS=-m32" to the command line.
Laurent Gomila - SFML developer