Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Errors from QT5 configure
Forum Updated to NodeBB v4.3 + New Features

Errors from QT5 configure

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 871 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hjparkH Offline
    hjparkH Offline
    hjpark
    wrote on last edited by hjpark
    #1

    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
    QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
    /home/smart/Qt/5.6/Src/qtbase/mkspecs/devices/linux-imx6-g++.

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

    jsulmJ 2 Replies Last reply
    0
    • hjparkH hjpark

      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
      QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
      /home/smart/Qt/5.6/Src/qtbase/mkspecs/devices/linux-imx6-g++.

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • hjparkH hjpark

        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
        QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
        /home/smart/Qt/5.6/Src/qtbase/mkspecs/devices/linux-imx6-g++.

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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved