#1161 closed defect (fixed)
qt qmake.conf
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | BOOK | Version: | SVN |
| Severity: | medium | Keywords: | VERIFIED |
| Cc: |
Description
The qt install modifies default lib & header file locations to conform to LFS standards, yet doesn't modify the /usr/share/qt/mkspecs/linux-g++/qmake.conf configuration file for qmake. This breaks packages which depend on qmake to compile (e.g. qscintilla). A simple postinstallation series of commands:
sed -i 's@$(QTDIR)/include@/usr/include/qt@' \
/usr/share/qt/mkspecs/linux-g++/qmake.conf
sed -i 's@$(QTDIR)/lib@/usr/lib@' \
/usr/share/qt/mkspecs/linux-g++/qmake.conf
sed -i 's@$(QTDIR)/bin/moc@/usr/bin/moc@' \
/usr/share/qt/mkspecs/linux-g++/qmake.conf
sed -i 's@$(QTDIR)/bin/uic@/usr/bin/uic@' \
/usr/share/qt/mkspecs/linux-g++/qmake.conf
would correct things.
Change History (7)
comment:1 by , 22 years ago
comment:2 by , 22 years ago
| Version: | ~5.1 → SVN |
|---|
comment:3 by , 22 years ago
I should have clarified. The qmake.conf file still has QMAKE_INCDIR_QT = $(QTDIR)/include QMAKE_LIBDIR_QT = $(QTDIR)/lib QMAKE_MOC = $(QTDIR)/bin/moc QMAKE_UIC = $(QTDIR)/bin/uic
whereas BLFS installs headers in /usr/include/qt and libs in /usr/lib/qt. Obviously no setting of $QTDIR will allow /usr/bin/qmake to build qt apps properly. The suggestion was to patch .../mkspecs/default/qmake.conf to fix the above environment variables to match the install locations BLFS uses for qt libs and qt headers.
comment:4 by , 21 years ago
| Milestone: | future → 6.1 |
|---|---|
| Owner: | changed from to |
comment:5 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Added two sed expressions in the Method 1 instructions to match qmake.conf's directories to those used.
comment:6 by , 21 years ago
| Keywords: | VERIFIED added |
|---|

This bug could very well be similar issues as in bug #1013
Also the sed could be accomplished easier like this:
sed -i -e 's@$(QTDIR)/include@/usr/include/qt@' \