Gentoo downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=562846
Basically, qmmp-1.0.0 fails to build when projectm support is enabled
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp: In member function ‘virtual void ProjectMWidget::initializeGL()’:
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:65:18: error: ‘GL_SMOOTH’ was not declared in this scope
glShadeModel(GL_SMOOTH);
^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:65:27: error: ‘glShadeModel’ was not declared in this scope
glShadeModel(GL_SMOOTH);
^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:70:28: error: ‘glMatrixMode’ was not declared in this scope
glMatrixMode(GL_TEXTURE);
I am not sure if a dependency is missing, but if it did, then the configure phase should have probed for that dependency and failed if it couldn't find it.
Please, attach file /usr/lib/qt5/mkspecs/qconfig.pri from your system.
Hmm i think this is a missing 'glew' dependency on that particular system. Should the CMakeLists look for that package as well?
glew is required by libprojectM and should be installed. Another possible problem is that QtGui is compiled with OpenGL ES 2.0. qconfig.pri contains information about OpenGL version.
Ok I will request from the user more info about this system and reply back here asap
The user attached his qconfig.pri on the Gentoo bug.
https://562846.bugs.gentoo.org/attachment.cgi?id=414700
Does that help?
Yes, it is. QtGui is compiled with OpenGL ES 2.0. I'll try to write cmake test for this case.
Are we supposed to disable ES 2.0 for QtGui or is qmmp+projectm supposed to work either way?
I guesse, we should disable projectM if Qt is compiled with OpenGL ES(2) implementation. I have just added appropriate patch to svn: http://sourceforge.net/p/qmmp-dev/code/5694/
Ok then fair enough. Thanks!
Thank you.