Missing qmake when installing both 32bit and 64bit Qt 5

Hello,

I have installed (or at least I think so, maybe I did something wrong?) both the 32bit and 64bit versions of Qt 5 from the OpenSUSE repos, on a 64bit system. However, only the 64bit version provides qmake (specifically, qmake-qt5, I think the qmake I see is from Qt 4, which I still have installed because some apps I use depend on it). So when adding new kits to Qt Creator, I can’t add a 32bit kit because that relies on finding a 32bit qmake, and the only one it finds is the 64bit, so it tells me that it’s the incorrect one for building 32bit binaries.

Anyone knows where I might obtain a Qt 5 32bit qmake, preferably from OpenSUSE repos? Or is my only option building Qt 5 from source for 32bit? Thanks in advance.

Hi
I would imagine (just like gcc) there are switches etc to build for 32bit on 64bit hardware…

Maybe this helps?
http://www.qtcentre.org/threads/4781-qmake-to-build-both-32-bit-and-64-bit

Yes, there are switches. That is not the issue, however. I can already build 32 bit and 64 bit binaries. Manually, though, since not being able to add a proper 32bit kit means I can only build 64bit binaries from Qt Creator (trying to build 32bit binaries gives errors saying the architecture is not compatible, most likely due to it using the only available kit, which is 64 bit). What I would like to do is not have to do it manually, and I thought if the issue with adding a 32bit kit is not having a 32bit qmake, that there might be a way to obtain it.

A quick Google search suggests that something happened upstream in 2013.
At that time many people on a variety of distros started reporting missing 32-bit QT5 qmake and many who tried to build qmake manually had varying results (missing dependencies).

I don’t kinow if this might be helpful, but this guy has been building qt binaries relatively recently(last release Oct 2015) for anyone to use
http://www.npcglib.org/~stathis/blog/precompiled-qt4-qt5/

TSU

Hmmm… But that’s the whole Qt for both architectures, and I already have them installed, I’m just missing 32bit qmake. I suppose I could download one of those releases and just keep the relevant qmake executable, but it says there that the guy builds on Windows using Visual Studio. I’d assume that produces Windows binaries?

the qt5 qmake is called “qmake-qt5”
the qt4 qmake is called “qmake-qt4”

with a link made to /usr/bin/qmake for the default ( or the one you set )


/usr/bin> ls -l qmake*
lrwxrwxrwx 1 root root       x xxx xx  qmake -> qmake-qt4
-rwxr-xr-x 1 root root 3341824 xxx xx   qmake-qt4
-rwxr-xr-x 1 root root 3071112 xxx xx   qmake-qt5

Yeah, “MSVC” didn’t register in my mind immediately.
Those would be Windows builds.

TSU