ferdna

  • *
  • 2
osg/NodeVisitor: No such file or directory.
« on: February 06, 2017, 12:08:30 am »
I am having trouble compiling librepilot anything with #include osg/******** doesnt compile... because the osg folder is not there...

1) do i need to set additional paths?
2) is osg folder in another location? ground/gcs/src/libs/osgearth/osgQtQuick/?
2) can i compile without osg, osgearth? maybe another way to compile?

this is what i run:
Code: [Select]
bash-4.4$ make qt_sdk_install
bash-4.4$ make gcs

Code: [Select]
rm -f libQwt.so.1.0.0 libQwt.so libQwt.so.1 libQwt.so.1.0
linking ../../../../lib/librepilot-gcs/libQwt.so.1.0.0
ln -s libQwt.so.1.0.0 libQwt.so
ln -s libQwt.so.1.0.0 libQwt.so.1
ln -s libQwt.so.1.0.0 libQwt.so.1.0
rm -f ../../../../lib/librepilot-gcs/libQwt.so.1.0.0
mv -f libQwt.so.1.0.0  ../../../../lib/librepilot-gcs/
rm -f ../../../../lib/librepilot-gcs/libQwt.so
rm -f ../../../../lib/librepilot-gcs/libQwt.so.1
rm -f ../../../../lib/librepilot-gcs/libQwt.so.1.0
mv -f libQwt.so ../../../../lib/librepilot-gcs/
mv -f libQwt.so.1 ../../../../lib/librepilot-gcs/
mv -f libQwt.so.1.0 ../../../../lib/librepilot-gcs/
make[5]: Leaving directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs/qwt/src'
make[4]: Leaving directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs/qwt'
cd sdlgamepad/ && ( test -e Makefile || /opt/qt/Qt5.8.0/5.8/gcc_64/bin/qmake -o Makefile /home/linuxusr001/librepilot/rel-16.09_mod/ground/gcs/src/libs/sdlgamepad/sdlgamepad.pro 'CONFIG+=release osg 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 ) && make -f Makefile
make[4]: Entering directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs/sdlgamepad'
compiling /home/linuxusr001/librepilot/rel-16.09_mod/ground/gcs/src/libs/sdlgamepad/sdlgamepad.cpp
generating /home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs/sdlgamepad/.moc/release-shared/moc_predefs.h
moc /home/linuxusr001/librepilot/rel-16.09_mod/ground/gcs/src/libs/sdlgamepad/sdlgamepad.h
compiling .moc/release-shared/moc_sdlgamepad.cpp
rm -f libsdlgamepad.so.1.0.0 libsdlgamepad.so libsdlgamepad.so.1 libsdlgamepad.so.1.0
linking ../../../lib/librepilot-gcs/libsdlgamepad.so.1.0.0
ln -s libsdlgamepad.so.1.0.0 libsdlgamepad.so
ln -s libsdlgamepad.so.1.0.0 libsdlgamepad.so.1
ln -s libsdlgamepad.so.1.0.0 libsdlgamepad.so.1.0
rm -f ../../../lib/librepilot-gcs/libsdlgamepad.so.1.0.0
mv -f libsdlgamepad.so.1.0.0  ../../../lib/librepilot-gcs/
rm -f ../../../lib/librepilot-gcs/libsdlgamepad.so
rm -f ../../../lib/librepilot-gcs/libsdlgamepad.so.1
rm -f ../../../lib/librepilot-gcs/libsdlgamepad.so.1.0
mv -f libsdlgamepad.so ../../../lib/librepilot-gcs/
mv -f libsdlgamepad.so.1 ../../../lib/librepilot-gcs/
mv -f libsdlgamepad.so.1.0 ../../../lib/librepilot-gcs/
make[4]: Leaving directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs/sdlgamepad'
cd osgearth/ && ( test -e Makefile || /opt/qt/Qt5.8.0/5.8/gcc_64/bin/qmake -o Makefile /home/linuxusr001/librepilot/rel-16.09_mod/ground/gcs/src/libs/osgearth/osgearth.pro 'CONFIG+=release osg 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 ) && make -f Makefile
make[4]: Entering directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs/osgearth'
compiling /home/linuxusr001/librepilot/rel-16.09_mod/ground/gcs/src/libs/osgearth/osgearth.cpp
In file included from /home/linuxusr001/librepilot/rel-16.09_mod/ground/gcs/src/libs/osgearth/osgearth.cpp:30:0:
/home/linuxusr001/librepilot/rel-16.09_mod/ground/gcs/src/libs/osgearth/utils/utility.h:33:27: fatal error: osg/NodeVisitor: No such file or directory
 #include <osg/NodeVisitor>
                           ^
compilation terminated.
Makefile:2792: recipe for target '.obj/release-shared/osgearth.o' failed
make[4]: *** [.obj/release-shared/osgearth.o] Error 1
make[4]: Leaving directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs/osgearth'
Makefile:438: recipe for target 'sub-osgearth-make_first-ordered' failed
make[3]: *** [sub-osgearth-make_first-ordered] Error 2
make[3]: Leaving directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src/libs'
Makefile:45: recipe for target 'sub-libs-make_first-ordered' failed
make[2]: *** [sub-libs-make_first-ordered] Error 2
make[2]: Leaving directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release/src'
Makefile:42: recipe for target 'sub-src-make_first-ordered' failed
make[1]: *** [sub-src-make_first-ordered] Error 2
make[1]: Leaving directory '/home/linuxusr001/librepilot/rel-16.09_mod/build/librepilot-gcs_release'
Makefile:278: recipe for target 'gcs' failed
make: *** [gcs] Error 2
bash-4.4$

running slackware linux 64bits with 32compat libs.

thank you.

hwh

  • *
  • 1018
Re: osg/NodeVisitor: No such file or directory.
« Reply #1 on: February 06, 2017, 12:40:34 am »
Did you follow the instructions in https://librepilot.atlassian.net/wiki/display/LPDOC/Linux+-+Building+and+Packaging to setup the development environment?  There isn't one for slackware but hopefully one is similar.

ferdna

  • *
  • 2
Re: osg/NodeVisitor: No such file or directory.
« Reply #2 on: February 06, 2017, 07:35:24 am »
Yes! found the problem, thank you!