Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Building 32-bit on 64-bit Ubuntu 16.04

This thread is locked; no one can reply to it. rss feed Print
Building 32-bit on 64-bit Ubuntu 16.04
roger levy
Member #2,513
July 2002

Turns out I need 32-bit binaries. Any tips are appreciated.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

SiegeLord
Member #7,827
October 2006
avatar

Internet suggests just adding -m32 to CMAKE_C_FLAGS/CMAKE_CXX_FLAGS and hoping for the best. I bet you'll need to fiddle with the dependency paths though.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

beoran
Member #12,636
March 2011

Yes, gcc -m32 will work, but you will also need to install tons of 32 bits libraries and development libraries to get it all to link. You'll see which libraries you need when the linker complains it can't find them. And also, don't link with ld directly, use gcc -m32 as your linker, it sets up ld in such a way it works better.

Go to: