Qt 5.6 qopengl library missing



  • Hi,

    I'm facing a problem on qopengl.h library when compiling a Qt project. I have searched but didn't found any similiar question :s

    ze@ze-MacBookPro:~/carlonluca$ make
    cd piomxtextures_lib/ && ( test -e Makefile || /home/ze/raspi/qt5/bin/qmake /home/ze/carlonluca/piomxtextures_lib/piomxtextures_lib.pro -o Makefile ) && make -f Makefile
    make[1]: Entering directory '/home/ze/carlonluca/piomxtextures_lib'
    /home/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/ze/raspi/sysroot -std=c++11 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-ignored-qualifiers -Wno-psabi -Wno-unused-parameter -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DCONFIG_INCLUDE_FFMPEG -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -DHAVE_OMXLIB -DENABLE_IMPROVED_BUFFERING -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../piomxtextures_src -I../piomxtextures_src/omx_wrapper -I../piomxtextures_src/omxplayer_lib -I../piomxtextures_src/omxplayer_lib/utils -I../piomxtextures_src/omxplayer_lib/linux -I../piomxtextures_src/ilclient -I../3rdparty/LightLogger -I../3rdparty/LightLogger -I/home/ze/carlonluca/piomxtextures_src/../3rdparty/LightSmartPtr -I../3rdparty/ffmpeg/ffmpeg_pi1/include -I../../raspi/sysroot/usr/include/freetype2 -I../../raspi/qt5pi/include/QtGui/5.6.0 -I../../raspi/qt5pi/include/QtGui/5.6.0/QtGui -I../../raspi/qt5pi/include -I../../raspi/qt5pi/include/QtOpenGL -I../../raspi/qt5pi/include/QtWidgets -I../../raspi/qt5pi/include/QtQuick/5.6.0 -I../../raspi/qt5pi/include/QtQuick/5.6.0/QtQuick -I../../raspi/qt5pi/include/QtQuick -I../../raspi/qt5pi/include/QtGui -I../../raspi/qt5pi/include/QtCore/5.6.0 -I../../raspi/qt5pi/include/QtCore/5.6.0/QtCore -I../../raspi/qt5pi/include/QtQml -I../../raspi/qt5pi/include/QtNetwork -I../../raspi/qt5pi/include/QtCore -I. -I../../raspi/sysroot/opt/vc/include -I../../raspi/sysroot/opt/vc/include/interface/vcos/pthreads -I../../raspi/sysroot/opt/vc/include/interface/vmcs_host/linux -I../../raspi/qt5/mkspecs/devices/linux-rasp-pi-g++ -o openmaxiltextureloader.o ../piomxtextures_src/openmaxiltextureloader.cpp
    In file included from ../../raspi/qt5pi/include/QtGui/qopengl.h:95:0,
                     from ../../raspi/qt5pi/include/QtGui/qopenglcontext.h:54,
                     from ../../raspi/qt5pi/include/QtGui/QOpenGLContext:1,
                     from ../piomxtextures_src/openmaxiltextureloader.cpp:33:
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:899:12: error: ‘GLsync’ does not name a type
     GL_APICALL GLsync GL_APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
                ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:900:44: error: ‘GLsync’ was not declared in this scope
     GL_APICALL GLboolean GL_APIENTRY glIsSync (GLsync sync);
                                                ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:901:43: error: variable or field ‘glDeleteSync’ declared void
     GL_APICALL void GL_APIENTRY glDeleteSync (GLsync sync);
                                               ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:901:43: error: ‘GLsync’ was not declared in this scope
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:902:49: error: ‘GLsync’ was not declared in this scope
     GL_APICALL GLenum GL_APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
                                                     ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:902:73: error: expected primary-expression before ‘flags’
     GL_APICALL GLenum GL_APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
                                                                             ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:902:80: error: ‘GLuint64’ was not declared in this scope
     GL_APICALL GLenum GL_APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
                                                                                    ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:902:96: error: expression list treated as compound expression in initializer [-fpermissive]
     GL_APICALL GLenum GL_APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
                                                                                                    ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:903:41: error: variable or field ‘glWaitSync’ declared void
     GL_APICALL void GL_APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
                                             ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:903:41: error: ‘GLsync’ was not declared in this scope
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:903:65: error: expected primary-expression before ‘flags’
     GL_APICALL void GL_APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
                                                                     ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:903:72: error: ‘GLuint64’ was not declared in this scope
     GL_APICALL void GL_APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
                                                                            ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:904:60: error: ‘GLint64’ has not been declared
     GL_APICALL void GL_APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
                                                                ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:42: error: variable or field ‘glGetSynciv’ declared void
     GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
                                              ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:42: error: ‘GLsync’ was not declared in this scope
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:62: error: expected primary-expression before ‘pname’
     GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
                                                                  ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:77: error: expected primary-expression before ‘bufSize’
     GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
                                                                                 ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:94: error: expected primary-expression before ‘*’ token
     GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
                                                                                                  ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:95: error: ‘length’ was not declared in this scope
     GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
                                                                                                   ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:109: error: expected primary-expression before ‘*’ token
     GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
                                                                                                                 ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:905:110: error: ‘values’ was not declared in this scope
     GL_APICALL void GL_APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
                                                                                                                  ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:906:77: error: ‘GLint64’ has not been declared
     GL_APICALL void GL_APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
                                                                                 ^
    /home/ze/raspi/sysroot/usr/include/GLES3/gl3.h:907:84: error: ‘GLint64’ has not been declared
     GL_APICALL void GL_APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
                                                                                        ^
    Makefile:2617: recipe for target 'openmaxiltextureloader.o' failed
    make[1]: *** [openmaxiltextureloader.o] Error 1
    make[1]: Leaving directory '/home/ze/carlonluca/piomxtextures_lib'
    Makefile:46: recipe for target 'sub-piomxtextures_lib-make_first' failed
    make: *** [sub-piomxtextures_lib-make_first] Error 2
    ze@ze-MacBookPro:~/carlonluca$
    

Log in to reply
 

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