-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fatal error when trying to run on ARMv6 (Raspberry Pi Zero W) #217
Comments
I do not see your code using any slf4 logger class so I assume the pi4j-core wanted to log something and went down this path. In my environment i have slf4j-simple-2.0.0-alpha0.jar to satisfy the logger. Reading the following maybe you have an old level of slf4-simple and it still requires a logging implementation . /////////////////////////////////////////////////////////////////////////// PS are you compiling with java 16 and running java 11. I think the V2 project assume java 11 for both. |
I compiled Pi4J with Java 11 and added slf4j-simple-1.7.36.jar to my classpath, it works on Pi4 as before and I can see that it uses slf4j-simple for logging, but here on the Pi Zero it's still exactly the same error :( |
I see you mentioned |
I'm building Pi4J on aarch64 system because it specifically states to not try to build it on armv6:
Then I want to use Pi4J with pigpio on ARMv6, so I take the generated JARs and the library from |
I downloaded the latest release (pi4j-2.1.1.zip), used the JARs from there in my classpath, extracted |
The Pi4J deployed snapshot and release builds are getting cross-compiled using GitHub CI workflows on Intel/AMD x64 machines. So it sounds like something about the ARM64 cross-compiled build of the ARMHF (ARMv6) native libraries are not getting compiled or linked properly? I suspect this issue #28 may be related. |
Then this is almost certainly the case here. I remember cross-compiling Pi4J on x86-64 machine about half a year ago and there were no issues running the compiled libraries on Pi Zero. |
Was this issue fixed? I'm getting the following error when testing pi4j 2.x on my Raspberry Pi Zero W (ARMv6):
When using pi4j 1.4 it works |
Hello!
So I'm building the latest version of the library on my Pi4:
It builds just fine and I'm able to use the generated JARs together with appropriate (aarch64) libpi4j-pigpio.so library, placed in a custom directory that's set like so:
System.setProperty("pi4j.library.path", "/home/pi/test/lib/");
This all works on Pi4, together with the latest pigpio cloned from joan2937's github and compiled on Pi4.
But the problem occurs when I try to run my application on Pi Zero W.
I have this exact same setup. The pigpio native libs are compiled on the Pi Zero, and I'm using the "armhf" version of libpi4j-pigpio.so.
Java is the latest build from azul that supports ARMv6HF (11.0.15+10).
This is what I see in the console:
And here is the error report as well as my Java code:
hs_err_pid1411.log
pi4j-minimal-test-app.zip
I will appreciate any help in getting this to work :)
The text was updated successfully, but these errors were encountered: