SFML community forums

Help => General => Topic started by: .teri on August 09, 2011, 08:04:45 pm

Title: Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
Post by: .teri on August 09, 2011, 08:04:45 pm
Any tip? Worth it the build? Thanks.
Title: Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
Post by: Laurent on August 09, 2011, 08:39:07 pm
Could you be more precise?

Any tip for what?

Worth the build... for what?
Title: Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
Post by: OniLinkPlus 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.
Title: Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
Post by: .teri 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.
Title: Build a 32 bit SFML 2 library in a 64 bit GNU/Linux
Post by: Laurent 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.