Compile for 32 bit on 64 Bit Linux
-
Hello All,
I have a 64-Bit machine and have installed Qt 5.4 on it. The Operating system is Fedora 21. I need to compile my code for a 32 bit machine. I have installed the 32 bit libraries, but my program still will not make cleanly. One of the errors I get is the following:
:-1: error: skipping incompatible /home/kbrooks/Qt/5.4/gcc_64/lib/libQt5Gui.so when searching for -lQt5GuiI am assuming there is a way to install these Qt Libraries for 32 bit. What would be the quickest way to do this?
Thanks in advance,
Kevin -
Hi and welcome to devnet,
The quickest would be to grab the 32bit installer for Qt 5.4.0
-
SGaist,
Thanks for the reply, when I attempt to install the 32 bit version of Qt 5.4, I get "error while loading shared librarys: libSM.so.6: cannot open shared object file: No such file or directory.
I attempted to use yum to installed it, but it said it was up to date.
Kevin
-
Did you install the 32bit bit dependencies on your system ?
-
AFAIK you can install the same you have currently but for the i686 architecture
-
The -lGL error question has been asked many time on the forum (search for "lGL error").
You are missing the OpenGL dev libraries.