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
I'm pretty new to Rust so please forgive me if there's something simple I'm missing.
I'm trying to run the example in the docs with a shapefile I have locally, but the build fails, suggesting that it can't find GDAL.
Here's the error:
$ cargo build
Compiling gdal-sys v0.3.0
Compiling thiserror-impl v1.0.22
error: failed to run custom build commandfor`gdal-sys v0.3.0`
Caused by:
process didn't exit successfully: `/Users/tom/dev/rust/geocsv/target/debug/build/gdal-sys-be9ea9545f8d6e9b/build-script-build` (exit code: 101)--- stdoutcargo:rerun-if-env-changed=GDAL_STATICcargo:rerun-if-env-changed=GDAL_DYNAMICcargo:rerun-if-env-changed=GDAL_INCLUDE_DIRcargo:rerun-if-env-changed=GDAL_LIB_DIRcargo:rerun-if-env-changed=GDAL_HOMEcargo:rerun-if-env-changed=GDAL_VERSIONcargo:rerun-if-env-changed=GDAL_NO_PKG_CONFIGcargo:rerun-if-env-changed=PKG_CONFIGcargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwincargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwincargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATHcargo:rerun-if-env-changed=PKG_CONFIG_PATHcargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwincargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwincargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIRcargo:rerun-if-env-changed=PKG_CONFIG_LIBDIRcargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwincargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwincargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIRcargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR--- stderrthread 'main' panicked at 'No GDAL version detected', /Users/tom/.cargo/registry/src/github.com-1ecc6299db9ec823/gdal-sys-0.3.0/build.rs:202:13note: run with `RUST_BACKTRACE=1` environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...error: build failed
Hey all,
I'm pretty new to Rust so please forgive me if there's something simple I'm missing.
I'm trying to run the example in the docs with a shapefile I have locally, but the build fails, suggesting that it can't find GDAL.
Here's the error:
But I have gdal installed:
After looking at the error message's environment variable suggestions, I tried setting some variables which looked promising...
But it's possible I'm setting them incorrectly.
What am I missing?
Thanks!
The text was updated successfully, but these errors were encountered: