Oh, sorry :( Some time ago I tried with OSGeo4W<https://trac.osgeo.org/osgeo4w/> but finally I used vcpkg and it worked. If anybody can give you the solution you can try that one. Sorry again
De: Marián Hadri <marian.ha...@rib-software.com> Enviado el: dijous, 25 de gener de 2024 16:19 Para: Abel Pau <a....@creaf.uab.cat> CC: gdal-dev@lists.osgeo.org Asunto: AW: help Hi, no, it did not help. Btw. I downloaded GDAL 3.8.3 project from https://gdal.org/download.html to directory C:\Dev\gdal-3.8.3 and PROJ project with use of OSGeo4W<https://trac.osgeo.org/osgeo4w/> software distribution to directory C:\OSGeo4W. My include directory for PROJ is C:\OSGeo4W\include and lib directory is C:\OSGeo4W\lib. I simply try to use CMake for creating project file for VS2019 with command "cmake -G "Visual Studio 16 2019"", but I got these errors ... Marián Hadri Developer E-Mail marian.ha...@rib-software.com<mailto:marian.ha...@rib-software.com> Telefon +49(711)7873-339 RIB Software GmbH | Vaihinger Str. 151, 70567 Stuttgart, Germany Sitz Stuttgart. Amtsgericht Stuttgart HRB 783426. Geschäftsführer: René Wolf, Tobias Hamacher. [Banner Signatur.jpg]<https://www.rib-software.com/home> RIB Webseite<https://www.rib-software.com/home> | LinkedIn Profil<https://www.linkedin.com/company/rib-software> Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken. DISCLAMER: Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde, verständigen Sie bitte umgehend den Absender. Danach löschen Sie bitte diese E-Mail. Das unerlaubte Benutzen, Kopieren sowie die unbefugte Übermittlung sind nicht gestattet. RIB nimmt den Datenschutz sehr ernst. Mehr zu unseren Datenschutzgrundsätzen finden Sie hier: https://www.rib-software.com/group/datenschutzerklaerung/ Von: Abel Pau <a....@creaf.uab.cat<mailto:a....@creaf.uab.cat>> Gesendet: Thursday, January 25, 2024 16:00 An: Marián Hadri <marian.ha...@rib-software.com<mailto:marian.ha...@rib-software.com>> Cc: gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> Betreff: RE: help [External email: Use caution with links and attachments] ________________________________ 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<mailto: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<mailto:marian.ha...@rib-software.com>> CC: gdal-dev@lists.osgeo.org<mailto: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