Hi,

I'm trying to build the GDAL dll and lib files, so GDAL can be used for linker 
and includes in an other C++ project. We're needing to upgrade from GDAL 3.2.2 
to 3.8.3. I try to create project file for VS 2019. In GDAL 3.2.2 was for that 
purpose used "generate_vcxproj.bat", which was in root directory. Now, this 
file is no there anymore. For that reason I try to do it with CMake program. 
But when I did it from cmd as " cmake -G "Visual Studio 16 2019" " or directly 
from Cmake, I got an error messages like this ...

CMake Error at C:/Program 
Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 
(message):
  Could NOT find PROJ (missing: PROJ_LIBRARY PROJ_INCLUDE_DIR) (Required is at 
least version "6.0")

Call Stack (most recent call first):
  C:/Program 
Files/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 
(_FPHSA_FAILURE_MESSAGE)
  cmake/modules/packages/FindPROJ.cmake:57 (find_package_handle_standard_args)
  cmake/helpers/CheckDependentLibraries.cmake:378 (find_package)
  gdal.cmake:265 (include)
  CMakeLists.txt:246 (include)

>From my point of view, it seems, that this is most important "Could NOT find 
>PROJ (missing: PROJ_LIBRARY PROJ_INCLUDE_DIR)
(Required is at least version "6.0")". Where and how I have to set that ? If I 
put that as Environment variables in CMake program like
PROJ_INCLUDE_DIR = -IC:\OSGeo4W\include
PROJ_LIBRARY = C:\OSGeo4W\lib
it did not work.

Marian Hadri


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to