Open KILLPC opened 2 years ago
@KILLPC its been a while but if you are building on the pi you don't need to use goreleaser. Just simply use the go build command.
Assuming you are running from the root of this repo.
CGO_ENABLED=1 go build -o mumble-discord-bridge cmd/mumble-discord-bridge/*
Should do it.
I'm also trying to install it on my rpi, but I get this error:
@KILLPC its been a while but if you are building on the pi you don't need to use goreleaser. Just simply use the go build command.
Assuming you are running from the root of this repo.
CGO_ENABLED=1 go build -o mumble-discord-bridge cmd/mumble-discord-bridge/*
Should do it.
Hi! I actually used a workaround. I downloaded the amd/64 image from dockerhub, used the configuration container for architecture emulation from tonistiigi/binfmt. That enables the host (pi4) to emulate other cpu architectures Then i created the container with docker run -d --platform=linux/amd64
Not very efficient but it works!
@KILLPC its been a while but if you are building on the pi you don't need to use goreleaser. Just simply use the go build command.
Assuming you are running from the root of this repo.
CGO_ENABLED=1 go build -o mumble-discord-bridge cmd/mumble-discord-bridge/*
Should do it.
Thanks! this does in fact work!
I'll also note, to get it working I needed to install libopus-dev
Hello!
I tried to perform a docker build from the Dockerfile and it stopped at the below step. I have and rasppi4 with UbuntuOs installed
Step 7/15 : RUN goreleaser build --skip-validate ---> Running in 2595ba1d68e0 • starting build... • loading config file file=.goreleaser.yml • loading environment variables • getting and validating git state • building... commit=97904d3e88d20f514d94830f822c58c435f2151a latest tag=v0.5.1 • pipe skipped reason=validation is disabled • took: 1s • parsing tag • setting defaults • running before hooks • running hook=go mod download • took: 22s • checking distribution directory • loading go mod information • build prerequisites • writing effective config file • writing config=dist/config.yaml • generating changelog • writing changelog=dist/CHANGELOG.md • building binaries • building binary=dist/mumble-discord-bridge_linux_amd64_v1/mumble-discord-bridge • took: 53s ⨯ build failed after 1m14s error=failed to build for linux_amd64_v1: exit status 2: # runtime/cgo gcc: error: unrecognized command-line option '-m64'
The command '/bin/sh -c goreleaser build --skip-validate' returned a non-zero code: 1
From what i understand is trying to build with amd64 while i have an arm cpu
A seems to be similar issue like below forum example. https://stackoverflow.com/questions/58244095/gcc-7-error-unrecognized-command-line-option-m64
Do i have to do perform some changes for my case to properly build it?
Thanks in advance for your time!