[Bug 358088] [NEW] QT install has wrong internal environment variables

budge brian.budge at gmail.com
Wed Apr 8 23:30:24 UTC 2009

Public bug reported:

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

I initially get errors regarding QMAKESPEC, and when I try to set the
QMAKESPEC and build, I get something like

>QT_INSTALL_PREFIX=/usr qmake -spec linux-g++
Could not find mkspecs for your QMAKESPEC(linux-g++) after trying:

> 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/qt4/mkspecs.  Although I've noted qt4-qmake as
the problem, I'm not at all sure that this will not extend to other qt4

** Affects: qt4-x11 (Ubuntu)
     Importance: Undecided
         Status: New

QT install has wrong internal environment variables
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to qt4-x11 in ubuntu.

More information about the kubuntu-bugs mailing list