QtGui: No such file or directory



  • Hi, I'm a beginner of Qt. I have installed Qt5.10.1 in Ubuntu16.04. After that I compile a software("GLE graphics") step by step. However, when I type make in the terminal, it occurs error. I paste the errors in the following, can someone tell me how should I fix this problem?

    make[1]: Entering directory '/opt/gle-graphics-4.2.5/src/gui'
    /usr/bin/qmake-qt4 
    make
    make[2]: Entering directory '/opt/gle-graphics-4.2.5/src/gui'
    g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I. -I/usr/X11R6/include -Imoc -o objects/about.o about.cpp
    about.cpp:26:17: fatal error: QtGui: No such file or directory   # Here is the error!!!!!
    compilation terminated.
    Makefile:849: recipe for target 'objects/about.o' failed
    make[2]: *** [objects/about.o] Error 1
    make[2]: Leaving directory '/opt/gle-graphics-4.2.5/src/gui'
    MakefileAC:86: recipe for target 'domake' failed
    make[1]: *** [domake] Error 2
    make[1]: Leaving directory '/opt/gle-graphics-4.2.5/src/gui'
    Makefile:153: recipe for target 'make_all' failed
    make: *** [make_all] Error 2
    

    Thanks in advance!
    Xiaodi



  • @Xiaodi
    You "have installed Qt5.10.1", but the whole qmake is for Qt 4? That does not look good....



  • @JonB
    This software "GLE graphics" uses qmake-qt4 automatically for compiling. So, does it mean, I should install a Qt4?


  • Moderators

    @Xiaodi said in QtGui: No such file or directory:

    This software "GLE graphics" uses qmake-qt4 automatically for compiling. So, does it mean, I should install a Qt4?

    Yes.

    Qt 5 is not compatible with Qt 4.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.