SFML community forums

Help => General => Topic started by: OniLinkPlus on March 09, 2011, 06:11:32 am

Title: SFML2 Build 32-bit libraries on 64-bit system
Post by: OniLinkPlus 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.
Title: SFML2 Build 32-bit libraries on 64-bit system
Post by: Laurent 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.
Title: SFML2 Build 32-bit libraries on 64-bit system
Post by: OniLinkPlus on March 10, 2011, 02:00:25 am
Thanks, I figured it was something like that.