QT install has wrong internal environment variables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qt4-x11 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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
>QT_INSTALL_
Could not find mkspecs for your QMAKESPEC(
/usr/bin/mkspecs
> qmake -query QT_INSTALL_PREFIX
/usr/bin
> qmake -query QT_INSTALL_BINS
/usr/bin/bin
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/
This works fine for me:
$ qmake -query QT_INSTALL_PREFIX
/usr
$ qmake -query QT_INSTALL_BINS
/usr/bin
qt4-qmake 4.5.0-0ubuntu4