Error message when running qmake -spec linux-g++-32
-
You need x86 compiler (how to install depends on your Linux distribution, on Ubuntu 14.04 it is g++-4.8:i386) and x86 Qt (http://download.qt.io/official_releases/qt/5.5/5.5.1/qt-opensource-linux-x86-5.5.1.run) and probably some other libraries as x86.
As alternative you can set up an x86 Linux either directly on a PC or in a virtual machine, then install Qt there. -
If you installed it try to build your application and see what happens.
I don't know which other libraries may be needed. You will see it if you build/run your application. -
One tip: if you're using Ubuntu then you should install build-essential:i386 package.
-
Before asking such questions you actually could just try to install the package:
apt-get install build-essential:i386 -
You can use -s parameter to see what is going to happen if you install the package without installing it:
apt-get install -s build-essential:i386 -
@jsulm To be honest, I've never tried to install it, but it is not installed, which I can only notification. The following notification that I can:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
build-essential:i386 : Depends: libc6-dev:i386 but it is not going to be installed or
libc-dev:i386
Depends: gcc:i386 (>= 4:4.4.3) but it is not going to be installed
Depends: g++:i386 (>= 4:4.4.3) but it is not going to be installed
Depends: make:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages. -
OK. Forget it.
I'm not sure why but if you try to install it (or g++ for x86) then the package manager wants to remove x86_64 version!
This is really bad, it should be possible to install both version in parallel but it isn't.
So, probably it will be easier to install a x86 Ubuntu (for example in a virtual machine). -
What do you mean by "compile the first virtual course"?
-
Well, you don't have to use a virtual machine, but then you have to set up x86 development environment on your x86_64 machine.
-
The point?
The point is: either you use a x86 Linux to build your application for x86 or you have to set up x86 compiler and x86 Qt on your x86_64 machine.