-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
cross-compile mattn/go-sqlite3 --targets=linux/arm #504
Comments
go-sqlite3 doesn't use swig (file extension |
can you advise me please, what should I do? |
Sorry, I don't have arm6 and not well to know karalabe/xgo-latest. |
I just have a test and it's okay to use xgo build linux/arm. My go env is
and build process log
|
@zeevikal Current master has no problem with cross-compile To compile for ARM6 use: GOARM=6 GOARCH=arm go build -a -v . Verification: gtimmert@Aeris:~/Projects/go/src/go-sqlite3$ GOARM=6 GOARCH=arm go build -a -v .
errors
internal/race
runtime/internal/sys
unicode/utf8
sync/atomic
runtime/internal/atomic
math
unicode
internal/testlog
runtime
strconv
sync
io
reflect
syscall
time
internal/poll
os
sort
fmt
context
database/sql/driver
database/sql
go-sqlite3
gtimmer@Aeris:~/Projects/go/src/go-sqlite3$ |
I ran into this problem on a separate project and found a solution.
Here is what xgo generates
The problem is the dash in The solution is to rename the project or add |
Im trying to compile mattn/go-sqlite3 to linux/arm.
I run:
sudo docker run karalabe/xgo-latest github.com/mattn/go-sqlite3 --targets=linux/arm
I get:
what am I doing wrong? thanks
The text was updated successfully, but these errors were encountered: