I have already installed geos
library using brew install geos
, but I'm still getting following error on mac M1.
./geos.h:1:10: fatal error: 'geos_c.h' file not found
#include <geos_c.h>
^~~~~~~~~~
1 error generated.
I believe it is because brew doesn't install the header packages. You can build from source. This is what I did to solve it:
brew install wget
wget http://download.osgeo.org/geos/geos-3.3.8.tar.bz2
tar -xvf geos-3.3.8.tar.bz2
And run ./configure
, make
, and sudo make install
in the extracted directory.
-I<path_to_goes_headers>
on the compile line?go mod download
,go mod vendor
,GO111MODULE=on go get github.com/golang/mock/[email protected]
,go generate ./...
and finallygo test -cover ./...
. Should I provide any other information. Thanks for helping.