Qt Creator 2.0.1 Multi Qt Versions Support Issue?
I have installed QT 4.7.0 with QT Creator 2.0.1 on Ubuntu 10 machine, and compile/install a standalone QT for Embedded Linux X86. Therefore I have 2 QT versions. Both version are enlisted manually in QT Creator's Option/QT4 dialog.
In my project I found if targeted to QTSDK 4.7, everything works fine. But if targeted to QT 4.7 Embedded Linux X86, then each stock include<>, such as include <QApplication> and include <QString>, will has a wavy underline displayed...that means the header file cannot be found. But the build of the project will success, looks like the code editor and qmake use different way to find the header files.
I have checked the generated Makefile, the INCPATH variable looks correct.
The same configuration works fine on another machine which runs QT 4.6.2 and QT Creator 1.3.
Can anyone give me some hint?
kalle last edited by
Did you run make install when building Qt Embedded?
I do make install when building Qt Embedded. It seems that all the files sit in the right place. The environment variables are pointed to the right folder. Building and running the project from within Qt Creator are success...
Why the editor cannot found the header files?
Where are your headers installed to?
What do the include paths in the generated makefiles look like (the non-working one)?
The header files of Qt/Embedded installed to /usr/local/Trolltech/Qt-4.7.0/include,
The INCPATH in Makefile looks like:
INCPATH = -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/qws/linux-x86-g++ -I. -I/usr/local/Trolltech/Qt-4.7.0/include/QtCore -I/usr/local/Trolltech/Qt-4.7.0/include/QtNetwork -I/usr/local/Trolltech/Qt-4.7.0/include/QtGui -I/usr/local/Trolltech/Qt-4.7.0/include -I. -Iinclude -I. -I.
The makefiles are all generated by qmake.