QT install has wrong internal environment variables
Binary package hint: qt4-qmake
I can't build QT4 project Makefiles with qmake due to internal weirdness. I use the default install locations, and install via synaptic. Here are some examples of the kind of brokenness I'm encountering:
I initially get errors regarding QMAKESPEC, and when I try to set the QMAKESPEC and build, I get something like
Could not find mkspecs for your QMAKESPEC(
> qmake -query QT_INSTALL_PREFIX
> qmake -query QT_INSTALL_BINS
some Qt variables can be set via qmake -set VARIABLE, but these two (at least) appear to be hard-coded. It looks like the install directory on the original system was /usr/bin, whose value is hard coded into the binary. Then the package is distributed such that the files live in the correct places, but the hard-coded variables now can't find them. Just a guess as I'm no Qt expert.
I'm running the Ubuntu Jaunty 9.04 Beta release. The Qt version is 4.5.0 and qmake is 2.01a.
I believe that the value for QT_INSTALL_PREFIX should be /usr for this Qt distribution, and I believe that QMAKESPEC should point to one of the directories in /usr/share/