funkz

  • *
  • 2
"QOpenGLWidget: No such file or directory"
« on: October 17, 2016, 07:46:44 pm »
Hello all, first post here.
I'm trying to compile from git source LibrePilot under debian jessie but got stuck on this error and will appreciate any header as I can't find QOpenGLWidget anywhere on the system and had installed all the dependencies listed.

Code: [Select]
~/Documents/librepilot/librepilot$ make gcs
make[1]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release'
cd src/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/src.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[2]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src'
cd libs/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/libs.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[3]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs'
cd version_info/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/version_info/version_info.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[4]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/version_info'
mkdir -p /home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/../gcs-synthetics
"python" "/home/ad/Documents/librepilot/librepilot/ground/gcs/../../make/scripts/version-info.py" --path="/home/ad/Documents/librepilot/librepilot/ground/gcs/../.." --template="/home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/version_info/version_info.cpp.template" --uavodir="/home/ad/Documents/librepilot/librepilot/ground/gcs/../../shared/uavobjectdefinition" --outfile="/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/../gcs-synthetics/version_info.cpp"
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/version_info'
cd qscispinbox/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/qscispinbox/qscispinbox.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[4]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/qscispinbox'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/qscispinbox'
cd qtconcurrent/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/qtconcurrent/qtconcurrent.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[4]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/qtconcurrent'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/qtconcurrent'
cd aggregation/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/aggregation/aggregation.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[4]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/aggregation'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/aggregation'
cd extensionsystem/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/extensionsystem/extensionsystem.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[4]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/extensionsystem'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/extensionsystem'
cd utils/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/utils/utils.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[4]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/utils'
make[4]: Nothing to be done for 'first'.
make[4]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/utils'
cd opmapcontrol/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/opmapcontrol/opmapcontrol.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[4]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol'
cd src/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/opmapcontrol/src/src.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[5]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src'
cd core/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/opmapcontrol/src/core/core.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[6]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/core'
make[6]: Nothing to be done for 'first'.
make[6]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/core'
cd internals/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/opmapcontrol/src/internals/internals.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[6]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/internals'
make[6]: Nothing to be done for 'first'.
make[6]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/internals'
cd mapwidget/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/opmapcontrol/src/mapwidget/mapwidget.pro CONFIG+=release\ osg\ osgearth\ silent GCS_BIG_NAME=LibrePilot\ GCS GCS_SMALL_NAME=librepilot-gcs ORG_BIG_NAME=LibrePilot ORG_SMALL_NAME=librepilot WIKI_URL_ROOT=https://librepilot.atlassian.net/wiki/display/LPDOC/ USAGETRACKER_URL=https://usagetracker.librepilot.org/ GCS_LIBRARY_BASENAME=lib -o Makefile ) && make -f Makefile
make[6]: Entering directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/mapwidget'
compiling /home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp
/home/ad/Documents/librepilot/librepilot/ground/gcs/src/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp:33:25: fatal error: QOpenGLWidget: No such file or directory
 #include <QOpenGLWidget>
                         ^
compilation terminated.
Makefile:1021: recipe for target '.obj/release-shared/opmapwidget.o' failed
make[6]: *** [.obj/release-shared/opmapwidget.o] Error 1
make[6]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/mapwidget'
Makefile:126: recipe for target 'sub-mapwidget-make_first-ordered' failed
make[5]: *** [sub-mapwidget-make_first-ordered] Error 2
make[5]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src'
Makefile:38: recipe for target 'sub-src-make_first' failed
make[4]: *** [sub-src-make_first] Error 2
make[4]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol'
Makefile:305: recipe for target 'sub-opmapcontrol-make_first-ordered' failed
make[3]: *** [sub-opmapcontrol-make_first-ordered] Error 2
make[3]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src/libs'
Makefile:41: recipe for target 'sub-libs-make_first-ordered' failed
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release/src'
Makefile:38: recipe for target 'sub-src-make_first-ordered' failed
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory '/home/ad/Documents/librepilot/librepilot/build/librepilot-gcs_release'
Makefile:278: recipe for target 'gcs' failed
make: *** [gcs] Error 2


I had also tried to compile:

Code: [Select]
~/Documents/librepilot/librepilot$ make opfw_resource
make: *** No rule to make target 'opfw_resource'.  Stop.

Code: [Select]
librepilot$ uname -a
Linux 3.16.0-4-686-pae #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) i686 GNU/Linux

Needless to say QT5-default appears as installed.

Again, thanks a a lot for any help and let me know if I can provide more information.

o/







f5soh

  • *****
  • 4007
    • LibrePilot
Re: "QOpenGLWidget: No such file or directory"
« Reply #1 on: October 17, 2016, 07:54:08 pm »

funkz

  • *
  • 2
Re: "QOpenGLWidget: No such file or directory"
« Reply #2 on: October 22, 2016, 08:23:41 pm »
Code: [Select]
~$ sudo apt-get install build-essential ccache debhelper git-core git-doc flex graphviz bison libudev-dev libusb-1.0-0-dev libsdl1.2-dev python libopenscenegraph-dev qt5-default qttools5-dev-tools libqt5svg5-dev qtdeclarative5-dev qml-module-qtquick-controls libqt5serialport5-dev qtmultimedia5-dev qtscript5-dev libqt5opengl5-dev qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-xmllistmodel qml-module-qtquick-localstorage qml-module-qtquick-particles2 qml-module-qtquick-window2 qml-module-qtquick2 libosgearth-dev openscenegraph-plugin-osgearth
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bison is already the newest version.
build-essential is already the newest version.
ccache is already the newest version.
debhelper is already the newest version.
flex is already the newest version.
git-core is already the newest version.
git-doc is already the newest version.
graphviz is already the newest version.
libsdl1.2-dev is already the newest version.
libusb-1.0-0-dev is already the newest version.
libopenscenegraph-dev is already the newest version.
libosgearth-dev is already the newest version.
openscenegraph-plugin-osgearth is already the newest version.
python is already the newest version.
libqt5opengl5-dev is already the newest version.
qt5-default is already the newest version.
qml-module-qtquick-localstorage is already the newest version.
qml-module-qtquick-particles2 is already the newest version.
qml-module-qtquick-window2 is already the newest version.
qml-module-qtquick-xmllistmodel is already the newest version.
qml-module-qtquick2 is already the newest version.
qtdeclarative5-dev is already the newest version.
qtmultimedia5-dev is already the newest version.
qml-module-qtquick-controls is already the newest version.
qml-module-qtquick-dialogs is already the newest version.
qtscript5-dev is already the newest version.
libqt5serialport5-dev is already the newest version.
libqt5svg5-dev is already the newest version.
qttools5-dev-tools is already the newest version.
libudev-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

f5soh

  • *****
  • 4007
    • LibrePilot
Re: "QOpenGLWidget: No such file or directory"
« Reply #3 on: October 23, 2016, 12:41:41 am »
Just tried compiling under a debian Stretch from scratch, no issue here.
QOpenGLWidget comes from /usr/include/i386-linux-gnu/qt5/QtWidgets/qopenglwidget.h

If using next branch the 'make opfw_resource' changed to 'make fw_resource'

Re: "QOpenGLWidget: No such file or directory"
« Reply #4 on: January 25, 2017, 08:44:55 am »
Hello, I am also in the process of building LibrePilot from git on Debian Jessie. It turns out Debian Jessie only has Qt version 5.3.2 available and LibrePilot requires 5.4. Same story with libopenscenegraph and csgearth. I also had to do some slight source modifications to get it to compile. I am almost done, hopefully I can post a complete guide in a few days time.

Re: "QOpenGLWidget: No such file or directory"
« Reply #5 on: March 03, 2017, 09:58:13 am »
Hi! I same problem here... Can you tell me how did you get trough?

Thanks