heronarts / LXStudio

LXStudio Digital Lighting Workstation
http://lx.studio
Other
103 stars 4 forks source link

Running on RaspberryPi with Temurin 17 #4

Open antonjs opened 2 years ago

antonjs commented 2 years ago

Lest anyone else run into this issue, running LXStudioIDE (at least in non-headless mode) on a Raspberry Pi running Rasbian and temurin-17-jdk crashes with a segmentation fault while compiling something in the processing libraries.

The fix is to run the non-default 64-bit build of Rasbian on the Pi, and use the linux-aarch64 rather than linux-arm native processing libraries (set the native symlink in processing-4.0b8 appropriately).

Not sure if this happens in headless mode, though I'd guess perhaps not since the processing libraries aren't loaded.

mcslee commented 2 years ago

Thank you for providing notes this! I will get this information added on the Wiki. Let me just make sure I've got the details straight:

The fix is to run the non-default 64-bit build of Rasbian on the Pi,

Is there an official link or reference to which exact build you've used? Are these correct?

https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit https://downloads.raspberrypi.org/raspios_arm64/images/

For the Temurin 17 JDK I assume you're using the Linux-aarch64 build, not arm, correct?

Screen Shot 2022-08-16 at 1 23 51 PM
bbulkow commented 1 year ago

I did the following.

I found a PI4 lying around the house.

installed 64-bit Raspberian without graphics (because headless art install) using the Imager (because it has the fancy gear icon where you can set the hostname, username/password, wifi, turn on SSH, without needing keyboard & mouse)

I added the Adoptium repos as per this page - just make sure you're running root before you copy and paste -

https://adoptium.net/installation/linux

Then just sudo apt install temurin-17-jdk and since the sources are added, updates will occur

As this is a "special purpose" machine, I didn't install java before this, so didn't need to mess with Alternatives.