mutecomm / go-sqlcipher

Self-contained Go sqlite3 driver with an AES-256 encrypted sqlite3 database
Other
167 stars 62 forks source link

Question: how to do cross compile? #1

Closed kokizzu closed 7 years ago

kokizzu commented 8 years ago

I've tried:

env GOOS=linux GOARCH=amd64 go build 

but it shows:

go build github.com/mutecomm/go-sqlcipher: no buildable Go source files in /Users/asd/MEGA/go/src/github.com/mutecomm/go-sqlcipher

OS: Mac OSX latest Arch: amd64

but it works fine if not using mutecomm/go-sqlcipher

frankbraun commented 8 years ago

As far as I know cross-compiling Go code which uses cgo doesn't work in Go, see https://golang.org/cmd/cgo/