processing / processing/processing4

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

Aperta
#799 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug
Lingua principale
Java
Stelle
494
Fork
183
Merge medio
4h 39m
PR unite (30g)
3

Descrizione

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);

  1. Export the above sketch to Linux Raspberry Pi 64 or 32 bit.
  2. 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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo l’esportazione Raspberry Pi con lo sketch minimale e ispeziona lo shell script generato e la relativa directory lib. Verifica come vengono gestiti Hardware I/O Library e libprocessing-io.so nelle esportazioni a 32 bit e a 64 bit; il lavoro è completato quando lo script esportato viene eseguito senza copiare manualmente la libreria nativa.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, raspberry-pi, shell
Ambito
build-system, embedded-iot
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.