caprica / picam

Unofficial Java API library for the Raspberry Pi camera.
GNU General Public License v3.0
49 stars 11 forks source link

How to work on 64bit OS #29

Open Son-kun opened 1 year ago

Son-kun commented 1 year ago

Hi, I'm trying to get picture using picam on RPi CM (64 bit OS) and I still fail. Is any option to use picam on CM4? MMAL it's not working (UnsatisfiedLinkError: no mmal in java.library.path), I read about using libcamera instead of picamera, but I'm not sure how use it on java.

caprica commented 1 year ago

MMAL is a library provided by the OS on Pi.

If Java can't load it, it most likely means that you are mismatching your CPU architectures somewhere.

So if your OS is 64-bit, then presumably MMAL is 64-bit, but is your JVM also 64-bit?

caprica commented 1 year ago

It's been a while since I have worked on this project, but depending on which version of this library you're using you may also need to rebuild the picam native library, because I only ever developed this against a 32-bit OS.