Windows Install Rust GDAL Tutorial github repository
English | 简体中文
// windows path system environment variable
Path:C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver\\bin
Path:C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver\\bin\\gdal\\apps
// windows global system environment variable
GDAL_HOME=C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver
PKG_CONFIG_PATH=C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver
PROJ_LIB=C:\xxxxxx\gdal_lib\release-1930-x64-gdal-3-7-1-mapserver-8-0-1\bin\proj9\share
GDAL_VERSION=371
choco install pkgconfiglite
gdalinfo --version
// GDAL 3.7.1, released 2023/07/06(configured correctly, the command line will print this content)
gdal.pc file path C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver\gdal.pc
gdal.pc file content
name=gdal
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
datadir=${prefix}/share/${name}
Name: lib${name}
Description: Geospatial Data Abstraction Library
Version: 3.7.1
Libs: -L${libdir} -l${name}
Cflags: -I${includedir}/${name}
cargo run --example metadata
1、Submit the code to the rust gdal official repository github action.