I tried to compile Librepilot "BlackRhino" on Debian Jessie using this howto: https://librepilot.atlassian.net/wiki/display/LPDOC/Linux+-+Building+and+Packaging

after "make gcs" runnig some time I got an error:

Code: [Select]
[...]
make[6]: Leaving directory '/home/niehaus/Copter/librepilot/BlackRhino/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/internals'
cd mapwidget/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/niehaus/Copter/librepilot/BlackRhino/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/niehaus/Copter/librepilot/BlackRhino/librepilot/build/librepilot-gcs_release/src/libs/opmapcontrol/src/mapwidget'
compiling /home/niehaus/Copter/librepilot/BlackRhino/librepilot/ground/gcs/src/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp
/home/niehaus/Copter/librepilot/BlackRhino/librepilot/ground/gcs/src/libs/opmapcontrol/src/mapwidget/opmapwidget.cpp:34:25: fatal error: QOpenGLWidget: No such file or directory
 #include <QOpenGLWidget>
                         ^
compilation terminated.
Makefile:1087: recipe for target '.obj/release-shared/opmapwidget.o' failed
make[6]: *** [.obj/release-shared/opmapwidget.o] Error 1


libqt5opengl5-dev is installed. Any hints what I might be doing wrong?


Thank you very much!

Crashtest

f5soh

  • *****
  • 4572
    • LibrePilot
Debian Jessie is not supported:
- old QT
- old Osg / OsgEarth

The only way that should works is install Qt locally using 'make qt_sdk_install' and compile all the osg stuff using the 'make all_osg'
https://forum.librepilot.org/index.php?topic=3185.msg22067#msg22067

This allow starting Gcs locally without make a deb package.
« Last Edit: April 03, 2017, 01:29:59 pm by f5soh »