processing / processing/processing4
Exporting a sketch using the Hardware I/O Library to Raspberry Pi results in broken shell script.
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Java
- Star
- 494
- Fork
- 183
- Merge trung bình
- 4 giờ 39 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện quá trình export Raspberry Pi với sketch tối giản, rồi kiểm tra shell script được tạo ra và thư mục lib của nó. Kiểm tra Hardware I/O Library và libprocessing-io.so được xử lý như thế nào đối với các bản export 32-bit và 64-bit; hoàn thành có nghĩa là script đã export chạy được mà không cần sao chép thủ công thư viện native.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, raspberry-pi, shell
- Lĩnh vực
- build-system, embedded-iot
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100