go-spatialite icon indicating copy to clipboard operation
go-spatialite copied to clipboard

cross compilation

Open missinglink opened this issue 8 years ago • 0 comments

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

missinglink avatar Jul 14 '17 04:07 missinglink