sampler icon indicating copy to clipboard operation
sampler copied to clipboard

Running on Linux ARM?

Open adamwolf opened this issue 5 years ago • 8 comments

Hi folks! This looks great. I want to try it out on an ARM box of mine, but the executable doesn't work, of course. I'll grab the source and see if I can make it go, but any thoughts on adding an "advanced linux installation" section or something?

adamwolf avatar Aug 22 '19 14:08 adamwolf

Hi @adamwolf, The plan is to support ARM cross-compilation (I don't have ARM machine) and release Linux ARM artifact along with others. Right now there is an issue with Oto player which prevents me to do that.

I'm thinking about alternatives, but there is a big chance that getting rid of trigger sound tone is the only way to go. Anyway, will be resolved in upcoming releases.

sqshq avatar Aug 22 '19 20:08 sqshq

I was able to install golang and build it that way.

adamwolf avatar Aug 22 '19 21:08 adamwolf

I was able to install golang and build it that way.

Do you have any tips on how you got it to build? I get the oto player errors and it fails. Is there something I can modify to remove the oto player dependency so it will build?

klundry avatar Jul 30 '20 18:07 klundry

@adamwolf Could you share the steps for build? :)

pablolibo avatar Sep 04 '20 14:09 pablolibo

Unfortunately, my notes for that are with a previous contract, and I do not recall. Sorry!

adamwolf avatar Sep 05 '20 00:09 adamwolf

on RPI 3B+ Rasbian Buster as root:

apt install golang libasound2-dev git git clone https://github.com/sqshq/sampler.git cd sampler/ env GOOS=linux GOARCH=arm GOARM=7 go build mv sampler /usr/local/bin/ chmod +x /usr/local/bin/sampler

oersted81 avatar Dec 10 '20 11:12 oersted81

Thanks! Also works for me on aarch64 with the following line

env GOOS=linux GOARCH=arm64 go build

klundry avatar Dec 10 '20 15:12 klundry

also works by forcing the platform on Docker to an arm architecture, e.g.

docker run -it --rm  --platform linux/arm golang:1.17

and then in that container running:

apt update
apt install -y libasound2-dev
git clone https://github.com/sqshq/sampler.git
go build

peanball avatar Feb 22 '22 18:02 peanball