OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.83k stars 2.53k forks source link

Configuring incomplete, errors occurred! #8105

Closed yapayzeka303 closed 1 year ago

yapayzeka303 commented 1 year ago

cmake ..

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19045. CMake Deprecation Warning at cmake/modules/Ccache.cmake:10 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. Call Stack (most recent call first): CMakeLists.txt:58 (include)

-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) -- GDAL_VERSION = 3.7.0 -- GDAL_ABI_FULL_VERSION = 37 -- GDAL_SOVERSION = -- Could NOT find ODBCCPP (missing: ODBCCPP_LIBRARY ODBCCPP_INCLUDE_DIR) -- Could NOT find MSSQL_NCLI (missing: MSSQL_NCLI_LIBRARY MSSQL_NCLI_INCLUDE_DIR MSSQL_NCLI_VERSION) -- Could NOT find MSSQL_ODBC (missing: MSSQL_ODBC_LIBRARY MSSQL_ODBC_INCLUDE_DIR MSSQL_ODBC_VERSION) -- Could NOT find MySQL (missing: MYSQL_LIBRARY MYSQL_INCLUDE_DIR) -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) -- Could NOT find Iconv (missing: Iconv_LIBRARY Iconv_CHARSET_LIBRARY Iconv_INCLUDE_DIR) -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) -- Could NOT find EXPAT (missing: EXPAT_DIR) -- Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR) -- Failed to find XercesC (missing: XercesC_LIBRARY XercesC_INCLUDE_DIR XercesC_VERSION) -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) -- Could NOT find Deflate (missing: Deflate_LIBRARY Deflate_INCLUDE_DIR) -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR SSL Crypto) -- Could NOT find CryptoPP (missing: CRYPTOPP_LIBRARY CRYPTOPP_TEST_KNOWNBUG CRYPTOPP_INCLUDE_DIR) CMake Error at C:/Program Files/CMake/share/cmake-3.27/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.27/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)

-- Configuring incomplete, errors occurred!

C:\src\gdal\gdal-3.7.0\build>cmake ..-DGDAL_BUILD_OPTIONAL_DRIVERS=OFF -DOGR_BUILD_OPTIONAL_DRIVERS=OFF CMake Error: The source directory "C:/src/gdal/gdal-3.7.0/build/..-DGDAL_BUILD_OPTIONAL_DRIVERS=OFF" does not exist. Specify --help for usage, or press the help button on the CMake GUI

Operating system

Windows 10

GDAL version and provenance

gdal 3.7.0

rouault commented 1 year ago

There's a missing space between ..and .-DGDAL_BUILD_OPTIONAL_DRIVERS=OFF And you also need to have the PROJ library installed (cf https://proj.org/en/9.2/install.html), and pointed by the PROJ_LIBRARY and PROJ_INCLUDE_DIR CMake variables (cf https://gdal.org/development/building_from_source.html#proj)