Alan Spark
Alan Spark

Reputation: 8312

How to build 32-bit Qt5 application on 64-bit Ubuntu

I have currently got the 64-bit version of Qt5 installed on a 64-bit Ubuntu machine but I'd also like to be able to do 32-bit builds on the same machine. On Windows I can simply select additional kits in the MaintenanceTool but on Linux this doesn't seem to be possible. Or am I missing something?

Upvotes: 7

Views: 3495

Answers (1)

ferrix
ferrix

Reputation: 761

Three steps:

  1. Get the 32 bit version from Qt or build from source with ./configure -platform linux-g++-32.
  2. Make sure it gets installed to a different path than the 64-bit version. Can be achieved with something like ./configure -platform linux-g++-32 -prefix /opt/qt32 or the path that feels comfortable to you.
  3. Fix compiler settings along these lines for building the application

Upvotes: 1

Related Questions