[Bug 932] Incorrect GCC flags for Qt applications

blfs-bugs at linuxfromscratch.org blfs-bugs at linuxfromscratch.org
Thu Sep 9 09:40:51 PDT 2004


------- Additional Comments From denis_trofimenko at ukr.net  2004-09-09 10:40 -------
Thank you Igor, for posting it here. I hope you don't mind I will post some 
info from dublicated bug, I opened, here and close my bug as dublication of 
this bug to keep blfs bugzilla clean? 
So here some additional comments(some changes/additions to my email): 
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  
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}  
sed -i -e 's:${QTDIR}/include:&/qt:' \  
        -e 's:${QTDIR}/lib:&/qt:' mkspecs/$i/qmake.conf  
Also, QTDIR variable should be set to QTDIR=/usr. 

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.

More information about the blfs-book mailing list