[sorry, long read do to long error messages]
I tried to build librepilot on my Debian Jessie amd64 as written in
https://librepilot.atlassian.net/wiki/display/LPDOC/Linux+-+Building+and+Packaging but i cannot cmplete the build due to errors I do not understand.
I installed what is needed for bulding and libc6-i386 as well.
"make all_sdk_install"
After downloading QT it had some error message:
CLEAN tools/osg-3.5.1-linux-x64-qt-5.6.0
VERIFY downloads/osg-3.5.1-linux-x64-qt-5.6.0.tar.gz
EXTRACT tools/osg-3.5.1-linux-x64-qt-5.6.0
CLEAN tools/gtest-1.7.0
VERIFY downloads/gtest-1.7.0.zip
EXTRACT tools/gtest-1.7.0
replace tools/__MACOSX/gtest-1.7.0/build-aux/._.keep? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
replace tools/__MACOSX/gtest-1.7.0/._build-aux? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
replace tools/__MACOSX/gtest-1.7.0/._CHANGES? [y]es, [n]o, [A]ll, [N]one, [r]ename: yI selected "A" since I do not know what it means and as I do not run MacOSX i supposed it may not be that important .... then it started to compile.
Next error:
Created addon/doxyapp/doxyapp.pro from addon/doxyapp/doxyapp.pro.in...
Created addon/doxysearch/doxysearch.pro from addon/doxysearch/doxysearch.pro.in...
Created addon/doxysearch/doxyindexer.pro from addon/doxysearch/doxyindexer.pro.in...
Generating src/lang_cfg.h...
BUILD build/doxygen-1.8.3.1
vhdldocgen.cpp:3416:3: warning: anonymous type with no linkage used to declare variable ‘<anonymous struct> flowCol’ with linkage
} flowCol =
^
vhdldocgen.cpp: In static member function ‘static void FlowChart::alignFuncProc(QCString&, const ArgumentList*, bool)’:
vhdldocgen.cpp:4062:8: warning: variable ‘first’ set but not used [-Wunused-but-set-variable]
bool first=TRUE;
^
^
INSTALL tools/doxygen-1.8.3.1
CLEAN build/doxygen-1.8.3.1
No idea what it means ... it that is a significant error.
Next "make osg_install":
niehaus@ceramic:~/code/librepilot$ make osg_install
NOTE Use 'make all_sdk_distclean' to remove installation files
NOTE Use 'make all_sdk_version' to check toolchain versions
NOTE Add 'V=1' to make command line to diagnose make problems
NOTE Add 'BATCH=1' to make command line to disable progress reporting during downloads
CLEAN tools/osg-3.5.1-linux-x64-qt-5.6.0
VERIFY downloads/osg-3.5.1-linux-x64-qt-5.6.0.tar.gz
EXTRACT tools/osg-3.5.1-linux-x64-qt-5.6.0
niehaus@ceramic:~/code/librepilot$ looks not bad.
"make osgearth_install"
niehaus@ceramic:~/code/librepilot$ make osgearth_install
CLEAN tools/osgearth-2.7-linux-x64-qt-5.6.0
VERIFY downloads/osgearth-2.7-linux-x64-qt-5.6.0.tar.gz
EXTRACT tools/osgearth-2.7-linux-x64-qt-5.6.0
niehaus@ceramic:~/code/librepilot$
Looks okay for me as well.
"make -j3 V=1 package"
[...]
cp -a --no-preserve=ownership -T /home/niehaus/code/librepilot/ground/gcs/src/plugins/coreplugin/images/librepilot_logo_128.png \
/home/niehaus/code/librepilot/debian/librepilot/usr/share/pixmaps/librepilot.png
sed -i -e 's/gcs/librepilot-gcs/g;s/GCS/LibrePilot GCS/g;s/org/librepilot/g;s/ORG/LibrePilot/g' \
/home/niehaus/code/librepilot/debian/librepilot/usr/share/applications/librepilot.desktop
make[3]: Leaving directory '/home/niehaus/code/librepilot'
make[2]: Leaving directory '/home/niehaus/code/librepilot'
dh_installdocs
dh_installchangelogs
dh_installudev
dh_perl
dh_link
dh_compress
dh_fixperms
dh_strip
dh_makeshlibs
dh_shlibdeps
dpkg-shlibdeps: Fehler: Bibliothek libosgDB.so.141 konnte nicht gefunden werden, benötigt von debian/librepilot/usr/lib/librepilot-gcs/osg/libosgShadow.so.3.5.1 (ELF-Format: »elf64-x86-64«; RPATH: »«)
dpkg-shlibdeps: Fehler: Bibliothek libosgUtil.so.141 konnte nicht gefunden werden, benötigt von debian/librepilot/usr/lib/librepilot-gcs/osg/libosgShadow.so.3.5.1 (ELF-Format: »elf64-x86-64«; RPATH: »«)
dpkg-shlibdeps: Fehler: Bibliothek libosg.so.141 konnte nicht gefunden werden, benötigt von debian/librepilot/usr/lib/librepilot-gcs/osg/libosgShadow.so.3.5.1 (ELF-Format: »elf64-x86-64«; RPATH: »«)
dpkg-shlibdeps: Fehler: Bibliothek libOpenThreads.so.20 konnte nicht gefunden werden, benötigt von debian/librepilot/usr/lib/librepilot-gcs/osg/libosgShadow.so.3.5.1 (ELF-Format: »elf64-x86-64«; RPATH: »«)
Hm ...
this translates to "dpkg-shlibdeps: Error: Library libosgDB.so.141 not found, needed by debian/librepilot/usr/lib/librepilot-gcs/osg/libosgShadow.so.3.5.1 (ELF-Format: »elf64-x86-64«; RPATH: »«)"
The file exists:
niehaus@ceramic:~/code/librepilot$ locate libosgDB.so.141
/home/niehaus/code/librepilot/build/librepilot-gcs_release/lib/librepilot-gcs/osg/libosgDB.so.141
/home/niehaus/code/librepilot/debian/librepilot/usr/lib/librepilot-gcs/osg/libosgDB.so.141
/home/niehaus/code/librepilot/tools/osg-3.5.1-linux-x64-qt-5.6.0/lib64/libosgDB.so.141Similar errors repeat quite a lot - I stopped counting. Then:
[continued in next post]