-
下载并安装
PROJ
并且配置环境变量PROJ_DIR
(这是一个库)-
TIFF和CURL在7.0.0之后才需要
-
这里是官网安装Installation — PROJ 9.4.1 documentation
-
先安装Vcpkg
cd c:\dev git clone https://github.com/Microsoft/vcpkg.git cd vcpkg .\bootstrap-vcpkg.bat
-
Build requirements¶ (这是官网需求)
-
C99 compiler
-
C++11 compiler
-
CMake >= 3.16
-
SQLite3 >= 3.11: headers and library for target architecture, and sqlite3 executable for build architecture
-
libtiff >= 4.0 (optional but recommended)
-
curl >= 7.29.0 (optional but recommended)
-
JSON for Modern C++ (nlohmann/json) >= 3.7.0; if not found as an external dependency then vendored version 3.9.1 from PROJ source tree is used
-
-
安装TIFF CURL SQLITE3
-
vcpkg install sqlite3[core,tool] tiff curl --triplet=x86-windows vcpkg install sqlite3[core,tool] tiff curl --triplet=x64-windows 一个86一个64
-
-
安装GTEST
-
vcpkg install gtest cmake -DCMAKE_TOOLCHAIN_FILE=[vcpkg_root]/scripts/buildsystems/vcpkg.cmake ..
-
-
应该知道这些下完要加到环境变量里吧
-
构建PROJ
-
VS2019VS2019PROJ mkdir build_vs2019 cd build_vs2019 cmake .. 构建完成生成sln 一般如果不是x86 x64问题 都能直接all build 通过
-
-
-
可以参考这位csdn博主安装PROJ 9.1.1源码下载编译(Win10+VS2022)_proj下载-CSDN博客
-
TIFF是用来处理大于4G的网格(要是关了以后要记住)
-
PROJ 9.4.0源码下载编译(Win11+VS2019)
于 2024-08-19 11:14:56 首次发布