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

Does this module support cross compiling? #282

Open
l4d2boomer opened this issue Jan 28, 2022 · 0 comments
Open

Does this module support cross compiling? #282

l4d2boomer opened this issue Jan 28, 2022 · 0 comments

Comments

@l4d2boomer
Copy link

l4d2boomer commented Jan 28, 2022

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' ...

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