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
are you trying to build against qt4 or qt5?
for qt5 I get this:
and qt4
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
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.
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.
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
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.