jarvis
jarvis copied to clipboard
osg troubles
When I try to launch jarvis I got the following error:
File "/usr/lib/python2.7/site-packages/jarvis/osgqt.py", line 22, in
Editing the fil to add:
from osgswig import osgDB, osgGA, osgViewer seems to fix it but lead to another error:
File "/usr/lib/python2.7/site-packages/osgswig-3.0.0-py2.7.egg/osgswig/osgDB.py", line 21, in swig_import_helper _mod = imp.load_module('_osgDB', fp, pathname, description) ImportError: libosg.so.78: cannot open shared object file: No such file or directory
osg an sogswig are correctly installed
You have to set some pathes before using OSG. A typical shell file you may use (pwd is the place you installed osg and osgswig) :
export GEOS_DIR="/usr/local/lib/" export PKG_CONFIG_PATH="$(pwd)/osg-debug/lib/pkgconfig/:$PKG_CONFIG_PATH" export DYLD_LIBRARY_PATH="$(pwd)/osg-debug/lib/:$DYLD_LIBRARY_PATH" export PATH="$(pwd)/osg-debug/bin/:$PATH" export OSG_LIBRARY_PATH="$(pwd)/osg-debug/lib/" export OSGDIR="$(pwd)/osg-debug/" export OSG_ROOT="$(pwd)/osg-debug/" export PYTHON_PATH= OSGSWIG_VERSION="3.1.0" export OSGSWIG_DIR=$HOME/devel/osgswig export OSGSWIG_DIR_LIB=$OSGSWIG_DIR/build/lib/python/osgswig-${OSGSWIG_VERSION}/ export PYTHONPATH=${OSGSWIG_DIR_LIB}:$PYTHONPATH export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${OSGSWIG_DIR_LIB} export OSG_NOTIFY_LEVEL=info