I forgot to tell that I used vcpkg to install dependences
and I build the project with this line
cmake -B D:\GitHub-repository\GDAL\build -S . 
-DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake

(from cmd in here: D:\GitHub-repository\GDAL)

and I compile the project it with this one:
cmake --build D:\GitHub-repository\GDAL\build

I hope being helpful

De: gdal-dev <gdal-dev-boun...@lists.osgeo.org> En nombre de Abel Pau via 
gdal-dev
Enviado el: dijous, 25 de gener de 2024 15:58
Para: Marián Hadri <marian.ha...@rib-software.com>
CC: gdal-dev@lists.osgeo.org
Asunto: Re: [gdal-dev] help

Hi,.
I have in my windows environment variables (not in any other place) this one:

PROJ_LIB = C:\dev\vcpkg\vcpkg\buildtrees\proj\x64-windows-rel\data
Attached I send what is in this folder.

I think it could be the cause of the problem, but I'm not an expert.
Luck and tell us if I solve anything :)


De: gdal-dev 
<gdal-dev-boun...@lists.osgeo.org<mailto:gdal-dev-boun...@lists.osgeo.org>> En 
nombre de Marián Hadri via gdal-dev
Enviado el: dijous, 25 de gener de 2024 14:58
Para: gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org>
Asunto: [gdal-dev] help

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