Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile notable for arm? #95

Closed
helloray opened this issue Jun 15, 2018 · 2 comments
Closed

How to compile notable for arm? #95

helloray opened this issue Jun 15, 2018 · 2 comments

Comments

@helloray
Copy link

I compiled it by "env GOOS=linux GOARCH=arm GOARM=5 make".
When I run it, it crashed with below output.

panic: could not locate box "static"

goroutine 1 [running]:
github.com/jmcfarlane/notable/vendor/github.com/GeertJohan/go%2erice.MustFindBox(0x40f6a2, 0x6, 0x664ca861)

@GarrisonBaird
Copy link

It would be great if @jmcfarlane provides an arm binary in the release

@GarrisonBaird
Copy link

I successfully compiled v0.1.2 arm builds. Binaries here

  1. Get latest go from https://golang.org/dl/
  2. Install decencies in binary-deps.sh
  3. Install other decencies by running go get github.com/jmcfarlane/notable
  4. Compile by running following commands:
TAG="v0.1.2"
goos="linux"
arch="armv7"

buildArch="-X main.buildArch"
export GOARCH="arm"
export GOARM="7"

mkdir -p target/notable-${TAG}.${goos}-${arch}
cp LICENSE target/notable-${TAG}.${goos}-${arch}

export GOOS=$goos
export CGO_ENABLED=0
go build -o target/notable-${TAG}.${goos}-${arch}/notable

Change arch and GOARM as you need, for a modern Raspberry Pi is armv7

jmcfarlane added a commit that referenced this issue Sep 22, 2018
jmcfarlane added a commit that referenced this issue Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants