Comments (4)
godal makes use of pkg-config to pass ldflags to cgo, so you will need to let it know where the GDAL pkg-config path is. I don't know the specific install location when using miniconda, but once you know the path something like this would work:
PKG_CONFIG_PATH=//Users/ash/miniconda3/lib/gdal/pkgconfig go run main.go
from godal.
I had already set PKG_CONFIG_PATH
prior to running the command. The error still occurs.
$ echo $PKG_CONFIG_PATH
/Users/ash/miniconda3/lib/pkgconfig
$ ls $PKG_CONFIG_PATH | grep gdal.pc
gdal.pc
$ go run main.go
dyld[28793]: Library not loaded: @rpath/libgdal.30.dylib
Referenced from: /private/var/folders/y5/yh59dj093xn_dz8lm0mhv6lh0000gp/T/go-build3191999631/b001/exe/test
Reason: tried: '/usr/local/lib/libgdal.30.dylib' (no such file), '/usr/lib/libgdal.30.dylib' (no such file)
signal: abort trap
from godal.
ok then you'd need to tell it where to find the dynamic library at runtime, something like LD_LIBRARY_PATH=/Users/ash/miniconda3/lib go run main.go
perhaps? I'm just guessing that's where miniconda libs live.
from godal.
You mean DYLD_LIBRARY_PATH
? This is for MacOS. I tried setting those and the problem persists.
Btw, that is indeed where miniconda libs live
from godal.
Related Issues (20)
- Enhancement: support context cancellation HOT 4
- Investigate what an OGR api could be like with golang generics
- NoData and WarpInto HOT 2
- WarpInto: stack smashing detected HOT 1
- windwos not have gdal.pc HOT 1
- godal.Warp produces empty image HOT 2
- Could not delete or restart the handle when used to connect to the AWS. HOT 1
- Use static linking including all used C libraries within the executable binary HOT 2
- buildVRT HOT 1
- we don't wrap `GDALAutoCreateWarpedVRT` (yet). We do however wrap the GDALWarp command which will probably get you where you want HOT 1
- Cannot get driver GTiff HOT 2
- rasterio wrappers: add an option to utilise floating point window
- compatibility with HDF5 HOT 2
- issue building in Alpine container HOT 2
- Any roadmap that I can help contribute? HOT 1
- 找不到gdal库 HOT 2
- Vector layer creation support HOT 1
- Add GDALInvGeoTransform HOT 1
- [question] Cannot convert GML to other formats HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godal.