Export to GitHub

simple-openni - issue #35

Fix for Ubuntu 11.10 32bit with latest openni binaries


Posted on Mar 30, 2012 by Happy Bird

What steps will reproduce the problem?

  1. Install from openni.org: openni-bin-dev-linux-x86-v1.5.2.23.tar.bz2 nite-bin-linux-x86-v1.5.2.21.tar.bz2 sensor-bin-linux-x86-v5.1.0.41.tar.bz2

  2. Install simple-openni: SimpleOpenNI-0.26.zip

  3. Try to run the example pde from http://code.google.com/p/simple-openni/

What is the expected output? What do you see instead?

Error with stack trace:

Can't find the SimpleOpenNI library (SimpleOpenNI32) : java.lang.UnsatisfiedLinkError: no SimpleOpenNI32 in java.library.path Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V at SimpleOpenNI.SimpleOpenNIJNI.swig_module_init(Native Method) at SimpleOpenNI.SimpleOpenNIJNI.<clinit>(SimpleOpenNIJNI.java:1553) at SimpleOpenNI.ContextWrapper.<init>(ContextWrapper.java:54) at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:209) at SimpleOpenNITest.setup(SimpleOpenNITest.java:28) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:662)

What version of the product are you using? On what operating system?

Running on 32 bit Ubuntu 11.10 (oneiric) with processing 1.5.1 and the following Ubuntu packages:

$ dpkg-query -W libboost1.46-dev libeigen3-dev swig sun-java6-jdk cmake cmake 2.8.5-1ubuntu1 libboost1.46-dev 1.46.1-5ubuntu2 libeigen3-dev 3.0.1-1 sun-java6-jdk 6.26-1natty1 swig 2.0.4+really1.3.40-3ubuntu4

Please provide any additional information below.

The build instructions at http://code.google.com/p/simple-openni/wiki/HowToBuild and the attached patch seem to fix things.

Attachments

Comment #1

Posted on Apr 1, 2012 by Helpful Dog

Hi !! Thanks for you patch. I make some changes for my enviroment and works to me! ;)

Comment #2

Posted on Apr 21, 2012 by Massive Horse

Hi, how exactly do I apply the patch? Still had no luck so far on Ubuntu.. Thanks in advance! ;)

Comment #3

Posted on Apr 22, 2012 by Happy Bird

Download the patch file. Checkout the sources as described at http://code.google.com/p/simple-openni/source/checkout Namely, do: svn checkout http://simple-openni.googlecode.com/svn/trunk/ simple-openni-read-only Then: cd simple-openni-read-only/SimpleOpenNI patch -p0 < /path/to/downloaded/Ubuntu32.patch Make sure you have the ubuntu packages described in the Issue. Modify paths in buildLinux32.sh and install.sh as needed (esp. check the location of your processing/lib/core.jar), and then: ./buildLinux32.sh ./installLinux.sh Good luck...

Comment #4

Posted on Apr 23, 2012 by Happy Rhino

would someone upload libSimpleOpenNI32.so,i notice the patch "cp libSimpleOpenNI.so ../dist/all/SimpleOpenNI/library/libSimpleOpenNI32.so",but there is no libSimpleOpenNI.so in the svn folder.i need it.

Comment #5

Posted on Apr 23, 2012 by Helpful Dog

The file libSimpleOpenNI.so will be created when you compile the project.

BTW, I attach for you.

Attachments

Comment #6

Posted on Apr 24, 2012 by Happy Rhino

thanks,it works for me :)

Comment #7

Posted on Apr 27, 2012 by Massive Horse

Comment deleted

Comment #8

Posted on Apr 27, 2012 by Massive Horse

Thanks very much!

Comment #9

Posted on Apr 29, 2012 by Swift Giraffe

Works for me too, thank you.

Comment #10

Posted on May 8, 2012 by Happy Bird

Thank you very much! The patch fixed my issue.

Status: New

Labels:
Type-Defect Priority-Medium