gpt4 book ai didi

c++ - 构建 GDAL 时出错 : PROJ_INCLUDE should be defined. PROJ >= 6 is a required dependency

转载 作者:行者123 更新时间:2023-11-28 01:18:54 26 4
gpt4 key购买 nike

我正在尝试让 GDAL 3.0.1 工作。生成 Visual Studio 2017 项目是小菜一碟,我只需要运行 generate_vcxproj.bat。但是现在我在 makefile.vc 的这一行上遇到错误:

!IF !DEFINED(PROJ_INCLUDE)
!ERROR PROJ_INCLUDE should be defined. PROJ >= 6 is a required dependency
!ENDIF

这是怎么回事?如果我要定义 PROJ_INCLUDE,它应该有什么值?这甚至是预处理器定义吗?

最佳答案

该错误令人困惑,因为 PROJ 听起来像是缩短的 “project”。但实际上,它是对 PROJ 库的依赖。我通过 OSGeo 安装它为 recommended in installation instructions .

之后,将安装库的路径填入nmake.opt:

# PROJ stuff (required dependency: PROJ >= 6)
PROJ_INCLUDE = -IC:\OSGeo4W64\proj
PROJ_LIBRARY = C:\OSGeo4W64\lib\proj_5_2.lib

关于c++ - 构建 GDAL 时出错 : PROJ_INCLUDE should be defined. PROJ >= 6 is a required dependency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57600419/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com