-
-
Notifications
You must be signed in to change notification settings - Fork 70
Need to update to the latest JSSC to work on Apple M1 #525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Created by: benfry Thanks for letting me know. Unfortunately the version we're using has been modified from the original, see: https://github.com/processing/processing4/blob/main/java/libraries/serial/library/jssc.txt I can't say whether those changes are still required, and would need @sampottinger to weigh in since that was his original PR. With any luck we can just drop things in—I don't see anything obvious in those edits that should be required. |
Created by: ld21 I would very much appreciate if you would fix the JSSC-issue. Without it, it is not possible, to use external hardware with processing 4 on a M1-Mac. Thank you! |
Created by: benfry You can manually replace I just can't blindly make that change and push it out to thousands of people until I hear from Sam or have time to look into the changes that he made when adding that library. |
Created by: ld21 Hi Benfry – I replaced jssc.jar inside Processing.app with jssc.jar from https://github.com/java-native/jssc/releases as suggested – and Processing and Serial now work flawlessly as you mentioned. Thank you very much. |
Created by: benfry Great, thanks for letting me know. |
Created by: hkiel Plugging in the original jssc.jar works fine on my M1 as well. Looking at @sampottinger's repository I see some RaspberryPi specific changes that might be missing in the official version. To (fully) support both M1 and RPi a new version might be necessary. Can anybody check the official jssc.jar on RPi? |
Created by: RaphAtMatrix Hi there, sorry if it is obvious for you but I get the "UnsatisfiedLinkError: Could not load the jssc library: Couldn't load library library jssc" too and do not understand the fix. I have downloaded the latest processing stable version (4.0.1) from the processing website and then have installed it. If I open the package content of processing I don't see any libraries/serial folder in the Java folder. I've download processing rom GitHub and then have copy the serial libraries content into the package of my installed processing, so I get Java/libraries/Serial/libraries/jssc.rar (and it is JSSC 2.0.8). I 've also try to add this to Java/lib/serial/libraries/jssc.jar But nothing changes, I still get the error message. Is it possible to get a previous version of processing not having this problem or an explanation about what I'm doing wrong? Thank you very much |
Created by: sampottinger Hello all! Apologies for the delay. Ben - I’ll reach about testing and fast forward of our JSSC fork.
|
Created by: jesse-harding @RaphAtMatrix, once you download the latest jssc, rename it to jssc.jar, open up the package contents of the Processing app and put that jssc.jar file into: Contents/Java/modes/java/libraries/serial/library |
Created by: sampottinger I did a fast forward at sampottinger/jssc#8. I think things are working correctly after resolving some merge conflicts but I need to do some more testing. There were quite a few changes upstream and I couldn't execute their Travis build (I don't have credits). |
Created by: sampottinger Opened PR for review after test both in IDE and in exported application. Unfortunately, I don’t have access to an M1/M2 I can use for Processing development but tested #577 on Intel Mac, Windows, and Linux. |
Created by: benfry Fix from @sampottinger now incorporated and will be part of 4.0.2 when released. Thanks, Sam! |
In GitLab by @osteele on Oct 27, 2022, 15:52 I've turned the workaround in this issue into step-by-step instructions with screenshots, in order to reduce the instructor load for some colleagues who are introducing serial communications to their students, many of whom have M1 laptops, this week. If you are comfortable performing the steps described above, there is nothing new for you on the linked page. For those of you are supporting students who find those steps cryptic, and your curriculum requires use of Serial before 4.0.2 is released, hopefully this page may reduce the number of students who need individual assistance in the meantime to a manageable load. |
Created by: gerardjosraudale @osteele thank you so much! |
Created by: SeanCarrigan
|
Created by: Vamoss After the @osteele steps I got this error: |
Created by: github-actions[bot] This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs. |
Created by: ekawahyu
Platform: macOS Monterey 12.4 Apple M1.
Issue Description: Processing 4.0b8 is having issue with incompatible JSSC library.
The Fix/Solution: Grab the latest JSSC jar file (as of this writing, v2.9.4) and overwrite the existing jssc.jar within Processing.app.
Step to Reproduce: Open and run SimpleRead example throws an error that JSSC is not available.
The text was updated successfully, but these errors were encountered: