Important: Please read the Qt Code of Conduct -

Errors from QT5 configure

  • In order to install QT5 on my Linaro-Ubuntu running on IMX6, i run this command on 5.6 and 5.7..
    ./configure -opengl es2 -device linux-imx6-g++ -device-option CROSS_COMPILE=/opt/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot ~/rootfs -prefix /usr/local/qt5 -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5 -v

    but, I always face so many errors. it is one of them but all errors are related with includes

    /opt/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard --sysroot=/home/smart/rootfs -O2 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-imx6-g++ -o opengles2.o opengles2.cpp
    opengles2.cpp:37:25: fatal error: GLES2/gl2.h: No such file or directory
    #include <GLES2/gl2.h>
    compilation terminated.
    make: *** [opengles2.o] Error 1
    OpenGL ES 2.0 disabled.
    The OpenGL ES 2.0 functionality test failed!
    You might need to modify the include and library search paths by editing

    I don't understand why QT5 is so stupid as he doesn't find inc files what are already in his own Src tree..

  • Lifetime Qt Champion

    @hjpark Qt is not stupid.
    The configure script tries to find out what is available. For example it checks whether GLES is there. To do so it tries to compile basic test programs. In your example this test program tries to include GLES2/gl2.h header file which your system has to provide if it supports GLES (this header file is NOT part of QT!). If you need GLES you have to make sure the header files AND libraries for GLES are installed (Qt cannot do it for you).

  • Lifetime Qt Champion

    @hjpark One note: actually your example is not an error: it is a warning (as "OpenGL ES 2.0 disabled" says). You can continue without GLES.

Log in to reply