anthropo

  • ***
  • 110
Error Librepilot Next
« on: August 02, 2016, 12:23:50 pm »
Hello,

after compiling librepilot next from scratch 20160724 i have the following error at startup :

/home/anthropo/librepilot/build/librepilot-gcs_release/lib/librepilot-gcs/plugins/LibrePilot/libPfdQml.so: Cannot load library /home/anthropo/librepilot/build/librepilot-gcs_release/lib/librepilot-gcs/plugins/LibrePilot/libPfdQml.so: (/home/anthropo/librepilot/build/librepilot-gcs_release/lib/librepilot-gcs/plugins/LibrePilot/../../libGCSOsgEarth.so.1: undefined symbol: _ZThn248_N9osgViewer14GraphicsWindow13requestRedrawEv)

On Ubuntu 16.04

Thank you

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Error Librepilot Next
« Reply #1 on: August 02, 2016, 12:40:51 pm »
Using Ubuntu 16.04 the prebuild binaries you download/install using 'make osg_install osearth_install' do not match your system.
You need to build your own osg/osgearth or at least osg.

From ./make/3rdparty/osgearth/README.TXT :

Code: [Select]
$ sudo apt-get install libzip-dev libpng-dev lipjpeg-dev libtiff5-dev libcurl4-openssl-dev
$ sudo apt-get install libgeos++-dev libgdal-dev

$ sudo apt-get build-dep openscenegraph

Next step take time for osg/osgearth compilation.
Code: [Select]
# Clone and build 3rdparty osg and osgearth
make all_osg

# Copy the built osg and osgearth into tools directory for future use
cp -R build/3rdparty/install/osg*[.0-9][0-9] tools/

# Create a config file that allows GCS to have osgearth PFD instead of simple PFD
echo "override GCS_EXTRA_CONF=osg osgearth copy_osg" > config

Remove 'osgearth' from config file created at root if you do not want terrain capabilities / Osgearth in PFD

Now you should be able to build your gcs like previously.

anthropo

  • ***
  • 110
Re: Error Librepilot Next
« Reply #2 on: August 02, 2016, 09:43:59 pm »
MERCI !

Just add sudo apt-get install cmake and Voila !