Skip to content

matu6968/arduino-ide-arm64

Repository files navigation

Arduino IDE 2.x for ARM64

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:

  1. Clone Arduino IDE source (make sure you have enough space)
  2. git apply the add-home-page-email-deb.diff file to electron-app/package.json This updates the required fields to make a .deb package and updates certain dependencies (like Electron)
  3. 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 to true 1
  • copy over the fpm script to the ~/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86 (or similar) directory:
  1. 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)
  2. 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

  1. A fix related to this is issue is based off the electron-userland issue which the enviroment flag appears to be undocumented. 2

About

Arduino IDE 2.x compiled for ARM64

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published