Menu

#11 Build Error on Linux Mint 17.2

1.0
open
nobody
None
2015-12-07
2015-12-06
No

I am trying to build DFileManager on Linux Mint 17.2, and continue to get the error listed.

Tried following http://dfilemanager.sourceforge.net/Docs

fatal error: QGLWidget: No such file or directory
#include <qglwidget>
^
compilation terminated.
make[2]: *** [dfm/CMakeFiles/dfm.dir/flow.cpp.o] Error 1
make[1]: *** [dfm/CMakeFiles/dfm.dir/all] Error 2
make: *** [all] Error 2</qglwidget>

I have installed all the different packages i thought i would need, tried QT 4 and 5, installed qt-sdk.

http://stackoverflow.com/questions/4245807/qt-opengl-qglwidget-cannot-be-found - This says i need to use special flags in a .pro file. But i didn't see anything like that.

Do you know what would need to be done here?

Thanks

Discussion

  • Robert

    Robert - 2015-12-06

    are you trying to build against qt4 or qt5?
    for qt5 I get this:

    $ pacman -Qo /usr/include/qt/QtOpenGL/QGLWidget
    /usr/include/qt/QtOpenGL/QGLWidget is owned by qt5-base 5.5.1-3
    

    and qt4

    pacman -Qo /usr/include/qt4/QtOpenGL/QGLWidget
    /usr/include/qt4/QtOpenGL/QGLWidget is owned by qt4 4.8.7-3
    

    Not sure what those packages are called in your distro, but I can say
    this much: if youre on a debian based distro, you always need the
    dev packages to get the headers etc.

    And no, this project doesnt use qmake, so no pro file, it uses cmake.
    However, if you got that far there is something wrong w/ my cmake code
    and Ill have to take a looksee. Cmake shouldve told you that you need
    that qt opengl in order to compile.

     

    Last edit: Robert 2015-12-06
  • Clover Hill Software

    I have been able to build against qt4, i was using the qt5 build flag when i got the build error. For my brief searching i get the feeling the header isn't in 5's packages. Thanks again.

     
    • Robert

      Robert - 2015-12-06

      probably qt5-base-dev if the package is called qt5-base. Well I'll check the cmake code at some point anyways and call back.

       
  • Clover Hill Software

    libqt5opengl5-dev did it for the header, but once that was installed i get

    /usr/bin/ld: cannot find -lQt5X11Extras
    collect2: error: ld returned 1 exit status
    make[2]: *** [dfm/dfm] Error 1
    make[1]: *** [dfm/CMakeFiles/dfm.dir/all] Error 2
    make: *** [all] Error 2

     
    • Robert

      Robert - 2015-12-07

      that should be fixed, and the x11extras should be called something similar in any distro, however, you dont need it anymore, just pushed a fix.

       

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.