I'm trying to cross-compile a binary containing this library from my host OS of ubuntu linux for armdarwin 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.
heya,
I'm trying to cross-compile a binary containing this library from my host OS of
ubuntu linux
forarm
darwin
andwindows
but I am getting the following error: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