SFML community forums
Help => General => Topic started by: .teri on August 09, 2011, 08:04:45 pm
-
Any tip? Worth it the build? Thanks.
-
Could you be more precise?
Any tip for what?
Worth the build... for what?
-
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.
-
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.
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.
-
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.