Home » Community » Coffee corner » Compile to 32 bit on Linux 64 bit
Re: Compile to 32 bit on Linux 64 bit [message #49223 is a reply to message #49204] |
Mon, 08 January 2018 21:23   |
Zbych
Messages: 327 Registered: July 2009
|
Senior Member |
|
|
forlano wrote on Sun, 07 January 2018 14:20Can you post the .bm file you have used to compile the U++ package?
I have installed multilib and used -m32 option but still getting complain from the compiler.
Perhaps even the .h and lib used should be addressed properly.
I just made a copy of GCC.bm and added -m32 to both compile and link options. My GCC32.bm:
BUILDER = "GCC";
COMPILER = "g++";
COMMON_OPTIONS = "-m32";
COMMON_CPP_OPTIONS = "-std=c++14";
COMMON_C_OPTIONS = "";
COMMON_LINK = "-m32";
COMMON_FLAGS = "";
DEBUG_INFO = "2";
DEBUG_BLITZ = "1";
DEBUG_LINKMODE = "1";
DEBUG_OPTIONS = "-O0";
DEBUG_FLAGS = "";
DEBUG_LINK = "";
RELEASE_BLITZ = "0";
RELEASE_LINKMODE = "1";
RELEASE_OPTIONS = "-O3 -ffunction-sections -fdata-sections";
RELEASE_FLAGS = "";
RELEASE_LINK = "-Wl,--gc-sections";
DEBUGGER = "gdb";
ALLOW_PRECOMPILED_HEADERS = "0";
DISABLE_BLITZ = "0";
PATH = "";
INCLUDE = "/usr/include/freetype2;/usr/include/gtk-2.0;/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/lib/gtk-2.0/include;/usr/include/cairo;/usr/include/pango-1.0;/usr/include/atk-1.0;/usr/include/gdk-pixbuf-2.0;/usr/lib/i386-linux-gnu/glib-2.0/include;/usr/lib/x86_64-linux-gnu/glib-2.0/include;/usr/lib/i386-linux-gnu/gtk-2.0/include;/usr/lib/x86_64-linux-gnu/gtk-2.0/include;/usr/include/gtk-3.0/gdk";
LIB = "/usr/X11R6/lib";
LINKMODE_LOCK = "0";
And I made the test on ubuntu 16.04 this time. All I had to install was:
sudo apt-get install gcc-multilib g++-multilib
sudo apt-get install lib32z1-dev
[Updated on: Mon, 08 January 2018 21:26] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jun 08 19:36:38 CEST 2025
Total time taken to generate the page: 0.04698 seconds
|