Opened 19 years ago

Closed 19 years ago

Last modified 16 years ago

#1161 closed defect (fixed)

qt qmake.conf

Reported by: grv575@… Owned by: bdubbs@…
Priority: high Milestone:
Component: BOOK Version: SVN
Severity: normal Keywords: VERIFIED


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@' \


sed -i 's@$(QTDIR)/lib@/usr/lib@' \


sed -i 's@$(QTDIR)/bin/moc@/usr/bin/moc@' \


sed -i 's@$(QTDIR)/bin/uic@/usr/bin/uic@' \


would correct things.

Change History (7)

comment:1 by Randy McMurchy, 19 years ago

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@' \

-e 's@$(QTDIR)/lib@/usr/lib@' \ -e 's@$(QTDIR)/bin/moc@/usr/bin/moc@' \ -e 's@$(QTDIR)/bin/uic@/usr/bin/uic@' \


comment:2 by bdubbs@…, 19 years ago

Version: ~5.1SVN

comment:3 by grv575@…, 19 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 bdubbs@…, 19 years ago

Milestone: future6.1
Owner: changed from blfs-book@… to bdubbs@…

comment:5 by bdubbs@…, 19 years ago

Resolution: fixed
Status: newclosed

Added two sed expressions in the Method 1 instructions to match qmake.conf's directories to those used.

comment:6 by tushar@…, 19 years ago

Keywords: VERIFIED added

comment:7 by (none), 16 years ago

Milestone: 6.1

Milestone 6.1 deleted

Note: See TracTickets for help on using tickets.