[gdal-dev] help

Abel Pau a.pau at creaf.uab.cat
Thu Jan 25 07:20:50 PST 2024


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.Hadri at rib-software.com>
Enviado el: dijous, 25 de gener de 2024 16:19
Para: Abel Pau <a.pau at creaf.uab.cat>
CC: gdal-dev at 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.Hadri at rib-software.com<mailto:Marian.Hadri at 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.pau at creaf.uab.cat<mailto:a.pau at creaf.uab.cat>>
Gesendet: Thursday, January 25, 2024 16:00
An: Marián Hadri <Marian.Hadri at rib-software.com<mailto:Marian.Hadri at rib-software.com>>
Cc: gdal-dev at lists.osgeo.org<mailto:gdal-dev at 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-bounces at lists.osgeo.org<mailto:gdal-dev-bounces at 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.Hadri at rib-software.com<mailto:Marian.Hadri at rib-software.com>>
CC: gdal-dev at lists.osgeo.org<mailto:gdal-dev at 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-bounces at lists.osgeo.org<mailto:gdal-dev-bounces at 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 at lists.osgeo.org<mailto:gdal-dev at 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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240125/bc1be7a9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 137 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240125/bc1be7a9/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 23283 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240125/bc1be7a9/attachment-0001.jpg>


More information about the gdal-dev mailing list