processing / processing/processing4

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

Ouverte
#799 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

bug
Langage dominant
Java
Étoiles
494
Forks
183
Merge moyen
4 h 39 min
PR mergées (30 j)
3

Description

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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par reproduire l’export Raspberry Pi avec le sketch minimal et inspectez le shell script généré ainsi que son répertoire lib. Vérifiez comment Hardware I/O Library et libprocessing-io.so sont pris en charge pour les exports 32 bits et 64 bits ; le travail est terminé lorsque le script exporté s’exécute sans copier manuellement la bibliothèque native.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java, raspberry-pi, shell
Domaine
build-system, embedded-iot
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.