itchio / butler

🎩 Command-line itch.io helper
MIT License
745 stars 52 forks source link

Fails to compile when cross-compiling #190

Closed dos1 closed 5 years ago

dos1 commented 5 years ago
dos@yoga:~/git/butler$ GOOS=linux GOARCH=arm go build
build github.com/itchio/butler: cannot load github.com/itchio/dmcunrar-go/dmcunrar: no Go source files

Seems like it fails with any non-native configuration. I have no slightest clue about golang's build system, so no idea if it's butler's or dmcunrar's fault.

dos1 commented 5 years ago

Nothing puts your brain to work as well as clicking "send". Of course, it's a non-Go binding which needs special measures when cross-compiling :P

fasterthanlime commented 5 years ago

CGO_ENABLED=1 should do the trick

I'm told @icculus (hope that's the right GitHub username) has successfully compiled butler for ARM, maybe there's some knowledge to share here?

dos1 commented 5 years ago

CGO_ENABLED would work with proper C toolchain setup, right. However, in the end I've just launched armv7 docker container and built it there - seems to work :)