Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt5 cannot find header files - OpenSuse

$
0
0
This may be a regular question but so far I couldn’t find an answer. The following error appears when trying to compile: g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../qtbase/mkspecs/linux-g++-64 -I. -I. -I../qtbase/include -I../qtbase/include/QtGui -I../qtbase/include/QtCore -I. -o a.o a.cpp a.cpp:1:24: fatal error: QApplication: No such file or directory This happens when I run with qmake -project —> qmake —> make. As well as from c++ directly: fatal error: QApplication: No such file or directory It cannot find any header, although they are all there in ../qtbase/include/ . It seems something with the configure, i.e., before the compilation, which by the way ran without errors. The code I ran is the first in http://doc.qt.digia.com/4.7/gettingstartedqt.html#creating-a-pro-file I appreciate any help.

Viewing all articles
Browse latest Browse all 2113

Trending Articles