You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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' ...
The text was updated successfully, but these errors were encountered:
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' ...
The text was updated successfully, but these errors were encountered: