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

cross compilation #1

Open
missinglink opened this issue Jul 14, 2017 · 0 comments
Open

cross compilation #1

missinglink opened this issue Jul 14, 2017 · 0 comments

Comments

@missinglink
Copy link
Contributor

heya,

I'm trying to cross-compile a binary containing this library from my host OS of ubuntu linux for arm darwin and windows but I am getting the following error:

[compile] linux x64
[compile] linux arm
# github.com/shaxbee/go-spatialite
../../shaxbee/go-spatialite/spatialite.go:23: undefined: sqlite3.SQLiteDriver

Do you have any idea how I could go about doing this? would I need to compile spatialite for each OS and then include the relevant .so files?

My binary also contains github.com/mattn/go-sqlite3 and that cross-compiles fine.

I'm not that familiar with CGO and how it works.

Thanks

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

1 participant