Menu

#820 qmmp-1.0.0 with projectm fails to build: GL_SMOOTH’ was not declared in this scope

Fixed
nobody
None
High
Defect
2015-10-18
2015-10-13
Markos
No

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.

Discussion

  • trialuser02

    trialuser02 - 2015-10-13
    • status: New --> Accepted
    • Type: Review --> Defect
     
  • trialuser02

    trialuser02 - 2015-10-15

    Please, attach file /usr/lib/qt5/mkspecs/qconfig.pri from your system.

     
  • Markos

    Markos - 2015-10-15

    Hmm i think this is a missing 'glew' dependency on that particular system. Should the CMakeLists look for that package as well?

     
  • trialuser02

    trialuser02 - 2015-10-15

    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.

     
  • Markos

    Markos - 2015-10-15

    Ok I will request from the user more info about this system and reply back here asap

     
  • Markos

    Markos - 2015-10-16

    The user attached his qconfig.pri on the Gentoo bug.

    https://562846.bugs.gentoo.org/attachment.cgi?id=414700

    Does that help?

     
  • trialuser02

    trialuser02 - 2015-10-16

    Yes, it is. QtGui is compiled with OpenGL ES 2.0. I'll try to write cmake test for this case.

     
  • Markos

    Markos - 2015-10-16

    Are we supposed to disable ES 2.0 for QtGui or is qmmp+projectm supposed to work either way?

     
  • trialuser02

    trialuser02 - 2015-10-17

    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/

     
  • Markos

    Markos - 2015-10-18

    Ok then fair enough. Thanks!

     
  • trialuser02

    trialuser02 - 2015-10-18

    Thank you.

     
  • trialuser02

    trialuser02 - 2015-10-18
    • status: Accepted --> Fixed
     

Log in to post a comment.

MongoDB Logo MongoDB