OpenGL ES on Raspberry PI compilation fails
Open
Nobody has claimed this yet.
area: buildsystem
improvement
lang: c++
- Dominant language
- Python
- Stars
- 14.4k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp: In function ‘qtsdl::gl_debug_parameters qtsdl::get_current_opengl_debug_parameters(const QOpenGLContext&)’:
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:21:46: error: ‘QOpenGLFunctions_4_4_Core’ was not declared in this scope
if (current_source_context.versionFunctions<QOpenGLFunctions_4_4_Core>())
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:21:46: note: suggested alternative: ‘QOpenGLFunctionsPrivate’
if (current_source_context.versionFunctions<QOpenGLFunctions_4_4_Core>())
^~~~~~~~~~~~~~~~~~~~~~~~~
QOpenGLFunctionsPrivate
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:21:73: error: no matching function for call to ‘QOpenGLContext::versionFunctions<<expression error> >() const’
if (current_source_context.versionFunctions<QOpenGLFunctions_4_4_Core>())
^
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:55,
from /usr/include/arm-linux-gnueabihf/qt5/QtGui/QOpenGLFunctions:1,
from /home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.h:5,
from /home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:3:
/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglcontext.h:194:11: note: candidate: ‘template<class TYPE> TYPE* QOpenGLContext::versionFunctions() const’
TYPE *versionFunctions() const
^~~~~~~~~~~~~~~~
/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglcontext.h:194:11: note: template argument deduction/substitution failed:
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:21:73: error: template argument 1 is invalid
if (current_source_context.versionFunctions<QOpenGLFunctions_4_4_Core>())
^
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp: In function ‘void qtsdl::apply_opengl_debug_parameters(qtsdl::gl_debug_parameters, QOpenGLContext&)’:
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:32:62: error: ‘QOpenGLFunctions_4_4_Core’ was not declared in this scope
if (auto functions = current_dest_context.versionFunctions<QOpenGLFunctions_4_4_Core>()) {
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:32:62: note: suggested alternative: ‘QOpenGLFunctionsPrivate’
if (auto functions = current_dest_context.versionFunctions<QOpenGLFunctions_4_4_Core>()) {
^~~~~~~~~~~~~~~~~~~~~~~~~
QOpenGLFunctionsPrivate
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:32:89: error: no matching function for call to ‘QOpenGLContext::versionFunctions<<expression error> >()’
if (auto functions = current_dest_context.versionFunctions<QOpenGLFunctions_4_4_Core>()) {
^
In file included from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions.h:55,
from /usr/include/arm-linux-gnueabihf/qt5/QtGui/QOpenGLFunctions:1,
from /home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.h:5,
from /home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:3:
/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglcontext.h:194:11: note: candidate: ‘template<class TYPE> TYPE* QOpenGLContext::versionFunctions() const’
TYPE *versionFunctions() const
^~~~~~~~~~~~~~~~
/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglcontext.h:194:11: note: template argument deduction/substitution failed:
/home/pi/openage/libopenage/gui/guisys/private/opengl_debug_logger.cpp:32:89: error: template argument 1 is invalid
if (auto functions = current_dest_context.versionFunctions<QOpenGLFunctions_4_4_Core>()) {
^
make[2]: *** [libopenage/CMakeFiles/libopenage.dir/build.make:1441: libopenage/CMakeFiles/libopenage.dir/gui/guisys/private/opengl_debug_logger.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1540: libopenage/CMakeFiles/libopenage.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with libopenage/gui/guisys/private/opengl_debug_logger.cpp and its included header, then reproduce the build on Raspberry Pi to inspect the unavailable QOpenGLFunctions_4_4_Core type. Compare the available Qt OpenGL interfaces with the code's requirements. Done means the project compiles successfully on Raspberry Pi.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, raspberry-pi
- Domain
- build-system, computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100