Open villares opened 4 years ago
I have another fix in for this. It's the same old add_library bug that I've been chasing around for a while now. There's probably a better way to do this. As is, I suspect this would fail on linux arm platforms, but I don't have any arm platforms to test on.
Hi @mpsftw, do I understand you need help testing a fix for this on Linux on ARM? (Raspberry Pi?) I can find someone to test for us if you want!
The short answer is yes, it needs to be tested on ARM.
So here's the deal with the library bugs. The current solution for adding libraries modifies the java.library.path in runtime, which is not guaranteed to change the behavior of the JVM. My solution is to manually put together likely paths to look for the libraries and load them using the full path. As I'm sure you've noticed, it doesn't always work. Java mode gets around this by forking a new JVM using the required library paths as arguments. That's probably the correct method for python mode as well, but it would be a pretty significant change to how python mode works. So unless someone has a better solution what I'll need (if it doesn't work on ARM) is the output of the logging done in test mode as it looks for the library.
I am a healthcare worker in my day job, though. My free time and energy is extremely limited right now. Sorry about that, but I just don't have a lot of availability to work on this right now.
Thank you so much. Take good care of yourself first and thanks again. I'll find someone with Linux ARM and bring here so you can instruct them, but I understand it may take a while for you to have any chance of looking into it.
Hi @mpsftw -- I have some Pi's lying about to test this. What build/version of Processing.py should I use?
Problem running a Firmata serial comms with an Arduino on Python Mode on Linux. The equivalent works on Java mode on Linux, and works OK on MacOS + Python mode (I should test on Windows soon)
Minimal example
Result: