benfry / processing4

Processing 4.x releases for Java 17
https://processing.org
Other
1.34k stars 239 forks source link

Exporting a sketch using the Hardware I/O Library to Raspberry Pi results in broken shell script. #799

Open momagit opened 11 months ago

momagit commented 11 months ago
## Description

When the exported script is executed it crashes and prints out the following error message: "java.lang.UnsatisfiedLinkError: no processing-io in java.library.path:"

Expected Behavior

To get a working script after exporting a sketch using the Hardware I/O Library to Raspberry Pi. The proposed change would be to include the corresponding "libprocessing-io.so" file automatically during the export.

Current Behavior

I can get the sketch running by manually copying the file "libprocessing-io.so" into the "lib" folder of the exported sketch.

Steps to Reproduce

The most simple sketch to reproduce the bug: import processing.io.*; GPIO.pinMode(4, GPIO.INPUT_PULLUP);

  1. Export the above sketch to Linux Raspberry Pi 64 or 32 bit.
  2. Execute the script in terminal.

Your Environment

Possible Causes / Solutions