Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the library to work on raspberry pi #22

Open
MarkRaph opened this issue May 31, 2023 · 5 comments
Open

How to get the library to work on raspberry pi #22

MarkRaph opened this issue May 31, 2023 · 5 comments

Comments

@MarkRaph
Copy link

Thank you for this library.
I created an application with Processing 4 which gets stylus position, angle and pressure.
However, when launched on raspberry pi, the following error shows up despite having the library present.

jpen.provider.NativeLibraryLoader$4 run
INFO: loading JPen 2-150301 JNI library: jpen-2-4-x86_64 ...
jpen.provider.NativeLibraryLoader$4 logOnFail
INFO: jpen-2-4-x86_64 couldn't be loaded
jpen.provider.NativeLibraryLoader load
INFO: no suitable JNI library found

Because of this error, the stylus pressure show up as zeros when collected.

@hamoid
Copy link

hamoid commented Jun 1, 2023

Hi! By looking at your message I see x86_64 which is a desktop cpu. I think for Raspberry Pi it should show something like arm6 or arm64. I get the impression the pom.xml file doesn't list anything about arm processors.

@MarkRaph
Copy link
Author

MarkRaph commented Jun 2, 2023

Thank you for your feedback.
The libjpen-2-4.so also gives the same error.
I tried running the jpen demo provided and I got a similar error.

This following is from the status report of the demo.

Construction Exception: jpen.PenProvider$ConstructionException: jpen.provider.NativeLibraryLoader$LoadException: java.lang.UnsatisfiedLinkError: /home/.../jpen-2-150301/libjpen-2-4.so: /home/.../jpen-2-150301/libjpen-2-4.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32 .so on a ARM platform)...

@hamoid
Copy link

hamoid commented Jun 2, 2023

Sounds like the same reason: the library is not compiled for ARM. It's either a 64 bit or a 32 bit desktop version.

@hamoid
Copy link

hamoid commented Jun 2, 2023

Maybe you can contact the author of this branch:
master...Birch-san:jpen:arm64

Based on the comments a successful build for arm64 was built.

@MarkRaph
Copy link
Author

MarkRaph commented Jun 5, 2023

Thank you @hamoid I will contact him.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants