PROJ 9.4.0源码下载编译(Win11+VS2019)

  • 下载并安装 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的网格(要是关了以后要记住)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值