This repo contains Arduino IDE version 2.x binaries compiled for ARM64 devices (such as for Raspberry Pi devices)
⚠️ This is not a fork of Arduino IDE, this is only instructions to build the IDE for ARM64 platforms
Build requirements:
- any ARM64 device running Debian, Raspberry Pi OS or Ubuntu (ideally the newest versions) with atleast 8 GB of RAM + 3 GB swap due to webpack eating ram
- build dependencies listed on the git repo
- golang 1.21 or newer (needed to compile arduino-language-server and arduino-cli, install instructions: https://go.dev/doc/install)
Build instructions:
- Clone Arduino IDE source (make sure you have enough space)
git apply
theadd-home-page-email-deb.diff
file toelectron-app/package.json
This updates the required fields to make a .deb package and updates certain dependencies (like Electron)- Make sure any electron-builder prebuilt packages are ARM64 compatible Typically fpm in electron-builder is only suited for x86, so to solve the issue to prevent further errors:
- install fpm via gem:
fpm install fpm
1 - Set environment variable
USE_SYSTEM_FPM
totrue
1 - copy over the fpm script to the ~/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86 (or similar) directory:
- Build using the usual commands listed in build guide in "Build From Source", if it failed building with SIGKILL error, increase swap/close programs (alternatively you can use this script at Botspot/pi-apps#2585 (comment) to automatically install dependencies and build the package)
- To build a DEB package after you patched electron-app/package.json with additional required fields, use the listed commands in section "Bundle the Application" (yarn --cwd electron-app package) FAQ
Footnotes
-
A fix related to this is issue is based off the electron-userland issue which the enviroment flag appears to be undocumented. ↩ ↩2