You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to compile my code for raspberry pi on manjaro but i got this error
env GOOS=linux GOARCH=arm GOARM=7 go build
# github.com/tjgq/sane
../../github.com/tjgq/sane/frame.go:14:15: undefined: Format
The text was updated successfully, but these errors were encountered:
Ghardo
changed the title
go build for arm failed: github.com/tjgq/sane/frame.go:14:15: undefined: Formaf
go build for arm failed: github.com/tjgq/sane/frame.go:14:15: undefined: Format
Jan 22, 2019
I think this happens because Format is defined in sane.go, which uses cgo, and cgo is disabled by default when cross-compiling. You need to set the CGO_ENABLED and CC environment variables. (Search for "cross-compiling" in https://golang.org/cmd/cgo/).
Alternatively, you can avoid cross-compilation by building directly on your Raspberry PI.
Hello,
i want to compile my code for raspberry pi on manjaro but i got this error
The text was updated successfully, but these errors were encountered: