OpenKinect-for-Processing icon indicating copy to clipboard operation
OpenKinect-for-Processing copied to clipboard

M1 Mac OpenKinect Can't load library libusb-1.0.0.dylib

Open JoK-rgb opened this issue 3 years ago • 10 comments

I tried to run the DepthTest program on my M1 Mac but I ran into some issues. First Processing could not find the jna.jar and jna-platform.jar files. I solved this by copying them into the library folder. This seemed to work but now there is another issue. Processing can bot load the libusb-1.0.0.dylib library.

This is my error message: UnsatisfiedLinkError: Can't load library: /Users/UserName/Documents/Processing/libraries/openkinect_processing/library/v1/mac/libusb-1.0.0.dylib

How can I solve this?

JoK-rgb avatar May 29 '22 18:05 JoK-rgb

i also have the same problem

aryaharditya avatar Aug 25 '22 04:08 aryaharditya

Same here

GuiFV avatar Sep 02 '22 13:09 GuiFV

I'm on the same spot as you are... :(

pleekMan avatar Oct 24 '22 14:10 pleekMan

same issue, still no solution

wistoff avatar Nov 11 '22 10:11 wistoff

same for me too ...

fredciel2 avatar Dec 28 '22 14:12 fredciel2

@JoK-rgb found the issue ?

maximocampo avatar Feb 07 '23 02:02 maximocampo

If you download Processing 4.2 but the Intel version not silicon. Then run it via Rosetta it resolves this issue and M1 Mac with Kinect V1 works.
libfreenet is not compatible with Silicon but is with Intel.

j3nsykes avatar Feb 26 '23 12:02 j3nsykes

Thanks @j3nsykes, It works! Tested here with kinect1 and 2. Running on M1!

GuiFV avatar Feb 28 '23 19:02 GuiFV

First Processing could not find the jna.jar and jna-platform.jar files. I solved this by copying them into the library folder.

Just tried to re-use Kinect on Processing 4.3 with a newer M1 mac... FYI for others that also land on this, the jna.jar + jna-platform.jar files can be found here: https://github.com/java-native-access/jna/tree/master/dist

Download the ones appropriate for your setup, just to be safe grabbed the following:

darwin-aarch64.jar
darwin-x86-64.jar
jna-platform-jpms.jar
jna-platform.jar
jna.jar

Drop them into the openkinect_processing / library folder. (also had to use the Intel version of Processing) – but it wooorked! thanks for the various tips above in this issue!

It's also a shame this library is no longer part of the Processing Library Manager? Tested removing then reinstalling- only to see it go pooof once removed and not be listed.. requiring a manual install.

ffd8 avatar Nov 16 '23 22:11 ffd8

First Processing could not find the jna.jar and jna-platform.jar files. I solved this by copying them into the library folder.

Just tried to re-use Kinect on Processing 4.3 with a newer M1 mac... FYI for others that also land on this, the jna.jar + jna-platform.jar files can be found here: https://github.com/java-native-access/jna/tree/master/dist

Download the ones appropriate for your setup, just to be safe grabbed the following:

darwin-aarch64.jar
darwin-x86-64.jar
jna-platform-jpms.jar
jna-platform.jar
jna.jar

Drop them into the openkinect_processing / library folder. (also had to use the Intel version of Processing) – but it wooorked! thanks for the various tips above in this issue!

It's also a shame this library is no longer part of the Processing Library Manager? Tested removing then reinstalling- only to see it go pooof once removed and not be listed.. requiring a manual install.

This worked for me! Thanks!

bustavo avatar Oct 12 '24 00:10 bustavo