omniscale/imposm3

Does this module support cross compiling?

l4d2boomer opened this issue · 0 comments

Can anyone give information about cross compiling?
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ HOST=x86_64-w64-mingw32 CGO_CFLAGS="-I/usr/local/include --sysroot /usr/local/Cellar/mingw-w64/9.0.0_2/toolchain-x86_64" CGO_LDFLAGS="-L/usr/local/lib --sysroot /usr/local/Cellar/mingw-w64/9.0.0_2/toolchain-x86_64" go build github.com/omniscale/imposm3/geom/geos

I'm trying to cross compile (MacOS -> Windows) But I'm having really trouble with this.
I got error like this.

/usr/local/Cellar/mingw-w64/9.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: $WORK/b001/_x003.o:cwrappers.cgo2:(.text+0x8b): undefined reference to 'GEOSCoordSeq_create_r' /usr/local/Cellar/mingw-w64/9.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: $WORK/b001/_x003.o:cwrappers.cgo2:(.text+0xe0): undefined reference to 'GEOSCoordSeq_destory_r' ...