[gdal-dev] Trying to build GDAL but I am missing something

Abel Pau a.pau at creaf.uab.cat
Fri Jun 30 03:03:24 PDT 2023


Sorry,
I solved the problem. I pointed to a lib:
set(PROJ_LIBRARY_RELEASE "D:/GitHub-repository/PROJ/build/lib/Release/proj.lib")
set(PROJ_LIBRARY_DEBUG "D:/GitHub-repository/PROJ/build/lib/Debug/proj.lib")
set(PROJ_INCLUDE_DIR "D:/GitHub-repository/PROJ/src")

And now it builds perfectly :)

De: gdal-dev <gdal-dev-bounces at lists.osgeo.org> En nombre de Abel Pau
Enviado el: divendres, 30 de juny de 2023 9:44
Para: gdal-dev at lists.osgeo.org
Asunto: Re: [gdal-dev] Trying to build GDAL but I am missing something

Hi and good morning,
I am trying to debug GDAL and for doing this I executed Cmake and the configuration seems to be correct.
But when I try to build it "Cmake --build ." one persistent error arises:


LINK : fatal error LNK1104: cannot open file 'D:\GitHub-repository\PROJ\build\src\apps\invproj.dir\Release\\.obj' [D:\G
itHub-repository\GDAL\build\GDAL.vcxproj]

I have configurated in CMakeLists.txt the next PROJ library:
set(PROJ_LIBRARY_RELEASE "D:/GitHub-repository/PROJ/build/src/apps/invproj.dir/Release/")
set(PROJ_INCLUDE_DIR "D:/GitHub-repository/proj-9.2.0/src")

With this shown in image2.png

[Attatched]

It shoud be ok because the documentations says:
PROJ*<https://gdal.org/development/building_from_source.html#proj>

PROJ<https://github.com/OSGeo/PROJ/> >= 6 is a required dependency for GDAL.
PROJ_INCLUDE_DIR*<https://gdal.org/development/building_from_source.html#cmdoption-arg-PROJ_INCLUDE_DIR>

Path to an include directory with the proj.h header file.
PROJ_LIBRARY_RELEASE*<https://gdal.org/development/building_from_source.html#cmdoption-arg-PROJ_LIBRARY_RELEASE>

Path to a shared or static library file, such as proj.dll, libproj.so, proj.lib, or other name. A similar variable PROJ_LIBRARY_DEBUG can also be specified to a similar library for building Debug releases.

Then, anyone knows what I am doing wrong? I've tried lots of things. PROJ is built with CMake and all was OK.
Thanks in advance!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230630/9d6d660b/attachment.htm>


More information about the gdal-dev mailing list