simplefeatures icon indicating copy to clipboard operation
simplefeatures copied to clipboard

Building GEOS on Windows.

Open AlexandreBorowczyk opened this issue 2 years ago • 1 comments

I'm on window 11 and I'm having use trying to build my module which imports simplefeature/geos When I try to build I'm getting the follow error: github.com/peterstace/simplefeatures/internal/rawgeos: build constraints exclude all Go files in C:\Users\alexandre.borowczyk\go\pkg\mod\github.com\peterstace\[email protected]\internal\rawgeos

I've then install GOES 3.12.1 using the ​OSGeo4W network installer

I've been building and running the same code without any issue on Ubuntu 22.04 where I've install GEOS with sudo apt install libgeos++-dev libgeos3.12.1 libgeos-c1v5 libgeos-dev libgeos-doc

AlexandreBorowczyk avatar Apr 02 '24 17:04 AlexandreBorowczyk

I don't have access to a Windows machine, but I suspect the issue is related to CGO. Can you get other Go programs that use CGO to work? Or is it just the simplefeatures library?

peterstace avatar Apr 02 '24 22:04 peterstace