processing / processing/processing4
Exporting a sketch using the Hardware I/O Library to Raspberry Pi results in broken shell script.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 494
- Forks
- 183
- Ø Merge
- 4 Std. 39 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
Created by: moritzmartingit
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);
- Export the above sketch to Linux Raspberry Pi 64 or 32 bit.
- Execute the script in terminal.
Your Environment
- Processing version: 4.3
- Operating System and OS version (for running the exported script): Raspberry Pi 4, Raspberry Pi OS (64-bit) Published: 2023-10-10
- Other information: Problem occurs when sketch is exported on the Raspberry Pi 4 itself or as well on a MacBook Pro M2.
Possible Causes / Solutions
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Raspberry Pi-Export mit dem minimalen Sketch zu reproduzieren, und untersuche das generierte Shell-Skript und dessen lib-Verzeichnis. Prüfe, wie die Hardware I/O Library und libprocessing-io.so bei 32-Bit- und 64-Bit-Exporten behandelt werden; abgeschlossen ist die Aufgabe, wenn das exportierte Skript ohne manuelles Kopieren der nativen Bibliothek ausgeführt werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, raspberry-pi, shell
- Bereich
- build-system, embedded-iot
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100