Home » Community » Coffee corner » Compile to 32 bit on Linux 64 bit
Re: Compile to 32 bit on Linux 64 bit [message #49247 is a reply to message #49223] |
Wed, 10 January 2018 15:18   |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Zbych wrote on Mon, 08 January 2018 21:23
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
I confirm that this works even on lubuntu 17.10 for CONSOLE appliccation.
However for GUI program it is not enough. Other libraries in :i386 version need to be installed.
At moment I was not able to install everything. The Xft lib in 32 bit mode cannot stay with the one in 64 bit (apt-get want to remove one to accomodate the other). So I preferred to not spoil the 64 bit system. Maybe exist some way to install what is necessery.
Luigi
edit: today I have installed libxft-dev:i386 . The installation removed the libxft-dev at 64 bit. However I was able to compile a 32 bit application.
Then I tried to compile the 64 bit application. Obviously the compiler complained the missing libxft-dev. I tried to install it but it removed the 32 bit version! A nightmare.
It seems libxft-dev cannot coexist in the same machine in 32 and 64 bit mode. This prevent to compile easily a program in 32 and 64 bit... at least on lubuntu
[Updated on: Thu, 11 January 2018 20:10] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jun 08 15:58:00 CEST 2025
Total time taken to generate the page: 0.03131 seconds
|