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 <[email protected]> En nombre de Abel Pau Enviado el: divendres, 30 de juny de 2023 9:44 Para: [email protected] 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!
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
