lukeroth/gdal

Error in go get github.com/lukeroth/gdal

celikn opened this issue · 2 comments

Hi

When I type "go get github.com/lukeroth/gdal" in windows machine, I am getting an error it says
" ..go\src\github.com\lukeroth\gdal\algorithms.go:4:
./go_gdal.h:8:10: fatal error: gdal.h: No such file or directory
#include <gdal.h>
^~~~~~~~
compilation terminated."

However, in cmd window, I can see that gdal is installed and when I type "gdalinfo --version", I can get result that says "GDAL 2.4.1, released 2019/03/15".

I cannot import "github.com/lukeroth/gdal" into my code. How can I solve this problem?

Thanks

remoe commented

Try to install gdal-dev on your system. Or find the path of gdal.pc on your system and write the following before you install:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:[path_to_your_gdal_folder]/lib/pkgconfig

He says about windows.. No idea how to build this in Windows. Consider using Docker.