-
root@raspberrypi:/opt/pi4j/examples# ls build is ok .but run got an error /usr/local/jdk1.8.0_341/bin/java -classpath .:classes:/opt/pi4j/lib/'*' SerialExample Sep 21, 2022 5:50:14 PM com.pi4j.util.NativeLibraryLoader load | Connecting to: /dev/ttyACM0 (115200,8N1) {FC:NONE} |
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) I think you have a mix of 32bit and 64bit code. All code must be built for the architecture and bit width of the OperatingSystem. From the error I think the architecture (ARM) is correct, but a miss-match 32 VS 64. |
Beta Was this translation helpful? Give feedback.
-
@taartspi good catch! I'm wondering if we would be able to catch this in the code and show this as an explicit exception... |
Beta Was this translation helpful? Give feedback.
wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) I think you have a mix of 32bit and 64bit code. All code must be built for the architecture and bit width of the OperatingSystem. From the error I think the architecture (ARM) is correct, but a miss-match 32 VS 64.