﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
934	Incorrect GCC flags for Qt applications	denis_trofimenko@…	blfs-book@…	"Confirmation: 
To confirm the bug just look in mkspecs/linux-g++/qmake.conf for the value of 
QMAKE_INCDIR_QT and you will understand easie what I'm talking about. 
 
Problem description: 
If QT compiled using instructions of 1st method of the BOOK, after QT will be 
compiled successfully, you will get errors compiling QT applications against 
QT using qmake. Also qmake will be unable to find uic and some other binaries. 
Symptoms, for example /bin/uic: No such file or directory. qmake will pass 
-I/include flag to gcc instead of -I/usr/include/qt 
 
 
 
Solution: 
To fix the problem the one should use this sed script (you can change only in 
linux-g++ dir, but it doesn't hurt if you will fix for other compilers): 
 
for i in linux-{cxx,ecc-64,g++,g++-64,icc,kcc,kylix,pgcc} 
do 
sed -i -e 's:${QTDIR}/include:&/qt:' \ 
        -e 's:${QTDIR}/lib:&/qt:' mkspecs/$i/qmake.conf 
done 
 
Also, QTDIR variable should be set to QTDIR=/usr."	defect	closed	high		BOOK	~CVS	high	duplicate		
