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

Error in go get github.com/lukeroth/gdal #42

Open
celikn opened this issue Jun 1, 2019 · 2 comments
Open

Error in go get github.com/lukeroth/gdal #42

celikn opened this issue Jun 1, 2019 · 2 comments

Comments

@celikn
Copy link

celikn commented Jun 1, 2019

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
Copy link

remoe commented Jul 14, 2019

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

@mtfelian
Copy link
Contributor

mtfelian commented Mar 4, 2021

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

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

3 participants