Windows安装Rust版本GDAL步骤 github repository
// windows path系统环境变量
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 全局系统环境变量
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
https://github.com/chocolatey/choco/releases
choco install pkgconfiglite
gdalinfo --version
// GDAL 3.7.1, released 2023/07/06(配置正常时命令行打印此内容)
gdal.pc文件路径 C:\xxxxxx\gdal_lib\release-1930-x64-gdal-mapserver\gdal.pc
gdal.pc文件内容
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、提交到rust gdal官方仓库github action