georust / gdal

Rust bindings for GDAL
https://crates.io/crates/gdal
MIT License
367 stars 94 forks source link

is anyone here haved this problem solve? gdal-sys #531

Open kl402401 opened 6 months ago

kl402401 commented 6 months ago

error: failed to run custom build command for gdal-sys v0.9.1

Caused by: process didn't exit successfully: D:\rust_projects\rust_vector\target\debug\build\gdal-sys-859509a06049ee1a\build-script-build (exit code: 101) --- stdout cargo:rerun-if-env-changed=GDAL_STATIC cargo:rerun-if-env-changed=GDAL_DYNAMIC cargo:rerun-if-env-changed=GDAL_INCLUDE_DIR cargo:rerun-if-env-changed=GDAL_LIB_DIR cargo:rerun-if-env-changed=GDAL_HOME cargo:rerun-if-env-changed=GDAL_VERSION

--- stderr thread 'main' panicked at C:\Users\Geovis.cargo\registry\src\index.crates.io-6f17d22bba15001f\gdal-sys-0.9.1\build.rs:144:17: windows-msvc requires gdal_i.lib to be present in either $GDAL_LIB_DIR or $GDAL_HOME\lib. note: run with RUST_BACKTRACE=1 environment variable to display a backtrace PS D:\rust_projects\rust_vector>

arya-pathak commented 6 months ago

Have you installed the GDAL library (C) as detailed in: https://gis.stackexchange.com/questions/370736/installing-gdal-on-ubuntu-20-04-unmet-dependencies If yes, it could be an issue regarding environment variables

kl402401 commented 6 months ago

Have you installed the GDAL library (C) as detailed in: https://gis.stackexchange.com/questions/370736/installing-gdal-on-ubuntu-20-04-unmet-dependencies If yes, it could be an issue regarding environment variables

my system is windowns 11, i have installed GDAL library(for c\c++),and set environment variables,but the problem still.I don't know how to do with it

kl402401 commented 6 months ago

anyone have this problem?

alecsandrei commented 6 months ago

Hello, I had a similar issue and I managed to solve it. Here is something that may help you #433

kl402401 commented 6 months ago

Hello, I had a similar issue and I managed to solve it. Here is something that may help you #433

Think you,bro! but the problem still,and i hate it