Qt Creator and Harmattan "No such file or directory"
I have a problem with Qt Creator and Harmattan projects. I seem to get "No such file or directory" errors for all the libraries. If I create a new project using Qt Quick Components for Meego/Harmattan and choose Qt Simulator and Harmattan as targets and set it to run in Qt Simulator, everything is OK. If, however, I change the target to Harmattan it will underline the following with a green colour:
[CODE]#include <QtGui/QApplication>[/CODE]
When hovering over it, I get "No such file or directory". Basically it does this with all the libraries which are not included with the project itself. But running the project works just fine. Switching back to Qt Simulator removes those errors until I go back to Harmattan.
As I said, everything works, but it's still very annoying, since all the auto completes and such do not work when Harmattan is set as the target, which really slows down my coding.
I've tried this in tow different computers and I get exactly the same results. Both are running Windows 7 64 bit. I've had this problem for quite a while and upgrading the Qt SDK has not solved this, nor reinstalling it. I got now the latest version. Qt Creator is 2.3.1.
Has anyone else encountered this problem? How to fix this? Or is this a bug with Qt Creator/Harmattan?
Cheers :)
Re: Qt Creator and Harmattan "No such file or directory"
Yes, i am facing same problem.. :(
Re: Qt Creator and Harmattan "No such file or directory"
Anyone solved it? i am facing the same, found some threads stating that we need to add the include path by ourselves in the .pro file, but no use...
Re: Qt Creator and Harmattan "No such file or directory"
Resolved it. Need to manually specify the include path in the .pro file of the harmattan project. For e.g:
INCLUDEPATH += /usr/include/qt4
Can also include other paths as well, as per the needs...
Re: Qt Creator and Harmattan "No such file or directory"
[QUOTE=vineet.jain;867397]Resolved it. Need to manually specify the include path in the .pro file of the harmattan project. For e.g:
INCLUDEPATH += /usr/include/qt4
Can also include other paths as well, as per the needs...[/QUOTE]
Sorry, but this might be a silly question. Where should that INCLUDEPATH point to? I copied that into my .pro file and it still doesn't work.
Cheers :)
Re: Qt Creator and Harmattan "No such file or directory"
Already posted this:
INCLUDEPATH += /usr/include/qt4
this should work.You can similarly add more headers, like :
INCLUDEPATH += /usr/include/qt4/QtCore
depending upon the usage of Qt headers in your project.
To be specific, the above path in the SDK is: C:\QtSDK\Madde\sysroots\harmattan-nokia-meego-arm-sysroot-1122-slim\usr
Re: Qt Creator and Harmattan "No such file or directory"
Bug report was filed here and and solution is stated below : [url]https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6419[/url]
regards,
rahul
Re: Qt Creator and Harmattan "No such file or directory"
Thanks, now it works. I had add each library separately, but that did the trick. :)