giuliarouge / simple-openni

Automatically exported from code.google.com/p/simple-openni
0 stars 0 forks source link

Fix for Ubuntu 11.10 32bit with latest openni binaries #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by daniel.l...@gmail.com on 30 Mar 2012 at 3:00

Attachments:

GoogleCodeExporter commented 9 years ago
Hi !!
Thanks for you patch.
I make some changes for my enviroment and works to me!
;)

Original comment by wesley.seidel@gmail.com on 1 Apr 2012 at 11:29

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

Original comment by clemens....@gmail.com on 21 Apr 2012 at 7:54

GoogleCodeExporter commented 9 years ago
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...

Original comment by daniel.l...@gmail.com on 22 Apr 2012 at 3:39

GoogleCodeExporter commented 9 years ago
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.

Original comment by sonicisd...@gmail.com on 23 Apr 2012 at 1:42

GoogleCodeExporter commented 9 years ago
The file libSimpleOpenNI.so will be created when you compile the project.

BTW, I attach for you.

Original comment by wesley.seidel@gmail.com on 23 Apr 2012 at 1:57

Attachments:

GoogleCodeExporter commented 9 years ago
thanks,it works for me :)

Original comment by sonicisd...@gmail.com on 24 Apr 2012 at 11:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks very much!

Original comment by clemens....@gmail.com on 27 Apr 2012 at 1:33

GoogleCodeExporter commented 9 years ago
Works for me too, thank you.

Original comment by markupartist on 29 Apr 2012 at 6:53

GoogleCodeExporter commented 9 years ago
Thank you very much! The patch fixed my issue.

Original comment by mikkelth...@gmail.com on 8 May 2012 at 12:01