Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Compile for 32 bit on 64 Bit Linux
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 -lQt5Gui
I 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,
Hi and welcome to devnet,
The quickest would be to grab the 32bit installer for Qt 5.4.0
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.
Did you install the 32bit bit dependencies on your system ?
What dependencies do I need to install. I am sure they are not.
AFAIK you can install the same you have currently but for the i686 architecture
This got so painful, I decided to install Fedora 32 bit on my machine. Now when I try to compile just a basic program, I get an error "cannot find -lGL." For the life of me, I cannot find where this libraries lives, or how to fix this error.
The -lGL error question has been asked many time on the forum (search for "lGL error").
You are missing the OpenGL dev libraries.
Thank you. I now have it working.