peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
125 stars 19 forks source link

Building GEOS on Windows. #600

Open AlexandreBorowczyk opened 3 months ago

AlexandreBorowczyk commented 3 months ago

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\simplefeatures@v0.47.1\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

peterstace commented 3 months ago

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?