You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go build cmd/main.go
# github.com/lukeroth/gdal
/root/go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/gdal.go:44:11: cannot define new methods on non-local type C.CPLErr
/root/go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/gdal.go:60:11: cannot define new methods on non-local type C.OGRErr
In file included from /root/go/pkg/mod/github.com/lukeroth/gdal@v0.0.0-20211109203239-b571df3ee436/algorithms.go:4:0:
./go_gdal.h:8:10: fatal error: gdal.h: No such file or directory
#include <gdal.h>
^~~~~~~~
compilation terminated.
apt list --installed | grep "gdal"
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
gdal-bin/bionic,now 2.2.3+dfsg-2 arm64 [installed]
gdal-data/bionic,now 2.2.3+dfsg-2 all [installed,automatic]
libgdal-dev/bionic,now 2.2.3+dfsg-2 arm64 [installed]
libgdal20/bionic,now 2.2.3+dfsg-2 arm64 [installed,automatic]
gdalinfo --version
GDAL 2.2.3, released 2017/11/20
If we speak about another libraries, which we need to install near GDAL, I installed them in Docker container via command:
I'm running into the same issue on arm64 Apple Silicon:
2.204 # github.com/lukeroth/gdal
2.204 ../pkg/mod/github.com/lukeroth/gdal@v0.0.0-20230422025444-05e99f726ff9/gdal.go:44:11: cannot define new methods on non-local type C.CPLErr
2.204 ../pkg/mod/github.com/lukeroth/gdal@v0.0.0-20230422025444-05e99f726ff9/gdal.go:60:11: cannot define new methods on non-local type C.OGRErr
2.204 In file included from ../pkg/mod/github.com/lukeroth/gdal@v0.0.0-20230422025444-05e99f726ff9/algorithms.go:4:
2.204 ./go_gdal.h:8:10: fatal error: gdal.h: No such file or directory
2.204 8 | #include <gdal.h>
2.204 | ^~~~~~~~
2.204 compilation terminated.
FROM ubuntu:23.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y git gdal-bin libgdal-dev
RUN apt-get install -y python3.10 python3-setuptools python3-pip pipx python3-gdal
RUN apt-get install -y golang-1.20-go
RUN ln -s /usr/lib/go-1.20/bin/go /usr/local/bin/go
Hi! I have erorr:
I tried to solve this problem, like here https://stackoverflow.com/questions/72887400/install-gdal-on-linux-ubuntu-20-04-4lts-for-python but it didnt help.
I tried to fix troubles with gdall library, I installed on OS:
But it didnt help.
Whitch GDAL version I have at present time:
If we speak about another libraries, which we need to install near GDAL, I installed them in Docker container via command:
Version of Ubuntu:
The text was updated successfully, but these errors were encountered: