igorcoroli / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Missing Library (should be libfreenect.0.1.dylib) @loader_path/ibfreenect.0.1.dylib #222

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Use OpenKinectFrameGrabber

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

The code to run correctly, and the kinect to be used as a camera.

Instead we get an error about a missing library.

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

javacv-1.0-bin.zip
opencv 2.4.0

Mac OSX Lion

Please provide any additional information below.

In the run time error message, the libary missing is 
"@loader_path/ibfreenect.0.1.dylib"

I extracted the javacv-macosx-x86_64.jar and looked at libjnifreenect.dylib 
using otool -L, producing the following output:

libjnifreenect.dylib 
libjnifreenect.dylib:
    /Users/saudet/NetBeansProjects/javacv/build/classes/com/googlecode/javacv/cpp/macosx-x86_64/libjnifreenect.dylib (compatibility version 0.0.0, current version 0.0.0)
    @loader_path/ibfreenect.0.1.dylib (compatibility version 0.1.0, current version 0.1.2)
    @loader_path/libfreenect_sync.0.1.dylib (compatibility version 0.1.0, current version 0.1.2)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1)

it looks like there is a mistake in the name of the library name, causing it to 
report as missing.

Original issue reported on code.google.com by thomasdu...@gmail.com on 20 Jul 2012 at 2:49

GoogleCodeExporter commented 8 years ago
I can confirm by running the command 

`install_name_tool -change "@loader_path/ibfreenect.0.1.dylib" 
"@loader_path/libfreenect.0.1.dylib" libjnifreenect.dylib` it corrects the 
library name.

I added them all back into the jar, and reloaded it, and it worked, finding the 
libary it was looking for.

I have attached the modified .jar file.

Original comment by thomasdu...@gmail.com on 20 Jul 2012 at 3:06

Attachments:

GoogleCodeExporter commented 8 years ago
That's weird, I wonder how it ended up with that id. I fixed that in JavaCV 
0.2, so it should work OK out of the box. Let me know that it works, thanks!

Original comment by samuel.a...@gmail.com on 22 Jul 2012 at 12:41