jedas

  • *
  • 2
GCS Linux build passes ok, unable to run
« on: August 17, 2016, 03:25:10 pm »
Hi,
I was trying to build "Next" revision, on Linux x64 LTS 14.05. Everything went fine, except when I try to launch binary I get few errors:

Quote
./build/librepilot-gcs_release/bin/librepilot-gcsCommand line ("./build/librepilot-gcs_release/bin/librepilot-gcs")
Loading system settings from "/home/jedas/libre/librepilot/build/librepilot-gcs_release/share/librepilot-gcs/"
Loading user settings from "/home/jedas/.config/LibrePilot/LibrePilot GCS.xml"
main - system locale: "en_US"
main - GCS locale: "en_US"
main - language: "en_US"
OsgEarth::registerQmlTypes - registering Qml types...
SerialPluginConfiguration::restoresettings - speed "57600"
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
./build/librepilot-gcs_release/bin/librepilot-gcs: symbol lookup error: /home/jedas/libre/librepilot/build/librepilot-gcs_release/lib/librepilot-gcs/qt5/plugins/mediaservice/libgstmediaplayer.so: undefined symbol: gst_video_connector_get_type

I've checked up, qt56multimedia is present and up to date. Any ideas?

regards,
Gedas

m_thread

  • *****
  • 87
  • GCS is my home
    • LibrePilot
Re: GCS Linux build passes ok, unable to run
« Reply #1 on: August 17, 2016, 03:43:51 pm »
Hi
Without looking very closely on this it looks like a version mismatch of some Qt libs.
Im afraid its hard for me to give any more help right now. I will try to build it on my Linux VM and see if I can repro it.
/Fredrik

f5soh

  • *****
  • 4572
    • LibrePilot
Re: GCS Linux build passes ok, unable to run
« Reply #2 on: August 17, 2016, 04:20:31 pm »
If you want to use the Qt5.6 from host you should remove or move the tools/qt-xxx to another dir, same for osg/osgearth

Looks how Travis do the build:
https://travis-ci.org/librepilot/LibrePilot

Code: [Select]
sudo add-apt-repository ppa:librepilot/tools -y
sudo apt-get update -q
sudo apt-get install -y libc6-i386 libudev-dev libusb-1.0-0-dev libsdl1.2-dev python libopenscenegraph-dev libosgearth-dev qt56-meta-minimal qt56svg qt56script qt56serialport qt56multimedia qt56translations qt56tools
make arm_sdk_install
make config_new CCACHE=ccache GCS_EXTRA_CONF='osg osgearth'

make all_flight
make opfw_resource
make gcs


« Last Edit: August 17, 2016, 04:26:53 pm by f5soh »

jedas

  • *
  • 2
Re: GCS Linux build passes ok, unable to run
« Reply #3 on: August 17, 2016, 04:59:59 pm »
Thanks for the answers! Actually those commands has helped. It seems something was missed by initial apt-get sequence which I've took from wiki.