ubuntu / ubuntu-make

Easy setup of common tools for developers on Ubuntu.
GNU General Public License v3.0
1.2k stars 189 forks source link

Request for 64-bit ARM support for Arduino IDE to install on arm64/aarch64 #650

Closed N0rbert closed 3 years ago

N0rbert commented 3 years ago

It is known that arduino.cc provides the 64-bit version for ARM processors.

Please add its support to Ubuntu Make.

LyzardKing commented 3 years ago

@N0rbert What arm system do you have? Also, what is the output of dpkg --print-architecture

Thanks

EDIT: I pushed a change that should be enough to master. You can test it as soon as it builds from the snap, or from git

N0rbert commented 3 years ago

It is Raspberry Pi 4 with 4Gb of RAM:

$ dmesg | grep "Machine model"
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.2

$ dpkg --print-architecture
arm64

$ arch
aarch64

Using latest build from master does not work on it. I can't understand why:

$ sudo apt-get install git python3-argcomplete python3-gnupg python3-progressbar
$ cd ~/Downloads
$ git clone https://github.com/ubuntu/ubuntu-make.git
$ cd ubuntu-make

$ bin/umake electronics arduino
usage: umake [--help] [-v] [-r] [-l | --list-installed | --list-available] [--version] {kotlin,maven,scala} ...
umake: error: argument category: invalid choice: 'electronics' (choose from 'kotlin', 'maven', 'scala')

$ bin/umake  --list-available
android: Android Development Environment [not installed]
crystal: Crystal language [not installed]
dart: Dartlang Development Environment [not installed]
devops: Devops Environment [not installed]
electronics: Electronics software [not installed]
games: Games Development Environment [not installed]
go: Go language [not installed]
ide: Generic IDEs [not installed]
java: The Java Programming Language [not installed]
kotlin: The Kotlin Programming Language [not installed]
    kotlin-lang: Kotlin language standalone compiler
maven: Java software project management and comprehension tool [not installed]
    maven-lang: Java software project management and comprehension tool
nodejs: Nodejs stable [not installed]
rust: Rust language [not installed]
scala: The Scala Programming Language [not installed]
    scala-lang: Scala compiler and interpreter (default)
swift: Swift language [not installed]
web: Web Developer Environment [not installed]
LyzardKing commented 3 years ago

Try now, I forgot to change the supported architecture list in arduino..

N0rbert commented 3 years ago

Now it works. Thank you!

LyzardKing commented 3 years ago

Thank you for opening the issue! I'd like to expand the support of the programs in umake to arm and arm64, but I don't have any device I can really use to test it..