Qt Creator - QApplication: No such file or directory
-
@Ratzz I changed the #include but the include is still underlined and I get no hints in the editor :-( It seems the the Qt Creator has problem finding the file, whilst make works.
Please note, that the project compiles correctly with both <QApplication> and <QtGui/QApplication>
Edit: It works if I clear the sysroot path in the Kit. So obviously the Qt Creator uses the sysroot path to scan for header files. If I leave it empty, the Qt Creator however uses the header files of host and not target, which is wrong. I tried to put the header files to <sysroot>/usr/include/qt4, but it still does not work.
-
Which version of Qt Creator are we talking about ?
-
You should consider updating Qt Creator. Current version is 3.5.1
-
I know. Only this version is provided for Ubuntu 14.04. Maybe I could install Qt 5.5 next to current installation in order not to corrupt current Qt, which is used by Ubuntu itself. Btw, do you think the 3.5 solves it or it is just to try? Better than trying different versions I would like to know, where the Qt Creator is looking for the header files.
-
That you can check in the Kit and Qt Versions for that information
-
I know, but I need to know, where exactly. For example in the kit I have sysroot /<some path>. So in what directories the Qt Creator is looking? Is it /<some path>/usr/include/qt or /<some path>/usr/include/qt4 or different one. Btw I tried to put the Qt headers in these both directories and it didn't work. So where to put the Qt header files in the sysroot folder in order the Qt Creator finds them?
-
AFAIK, it should use the prefix set at compilation time to search that