How to use a Spacenavigator with Ubuntu

From JReality Wiki
Jump to: navigation, search

Getting started

Download the opensource library, daemon, java-stuff, (Config-GUI):


Check if the following packages are installed:

  • build-essential
  • libx11-dev
  • mesa-common-dev
  • libgl1-mesa-dev
  • libglu1-mesa-dev
  • (libgtk2.0-dev just needed if you've also installed the Config-GUI)


Install SpaceNavigator

Install Daemon:

 
cd PATH_TO_SPACENAV_DEAMON/
./configure
make
sudo make install
# start the deamon
sudo /etc/init.d/spacenavd start
spacenavd


Install Library:

 
cd PATH_TO_LIBSPACENAV/
./configure
make
sudo make install


Testing Libs:

 
#compiling the test-stuff
cd PATH_TO_LIBSPACENAV/examples/cube/
make
./cube
cd PATH_TO_LIBSPACENAV/examples/simple
make
./simple_x11


(Install Config-Gui:)

 
cd PATH_TO_CONFIG_GUI/
./configure
make
sudo make install


Install Java-stuff:

 
cd PATH_TO_JAVA_STUFF/
#Adapt JAVA_HOME
gedit Makefile &
make
cd PATH_TO_JAVA_STUFF/examples
make run

At this point I get the following error:

java: symbol lookup error: /home/heydt/libspnav_java-0.1/libSpaceNav.so: undefined symbol: spnav_open

Has anyone an idea?



to be continued...