checking for module 'gdal'
package 'gdal' not found
GDAL_INCLUDE_DIR=[/usr/include/gdal]
/home/rykov/git/formbuilder/cmake/FindGDAL.cmake(19): GDAL_VERSION : 2.1
/home/rykov/git/formbuilder/cmake/FindGDAL.cmake(19): GDAL_LIBRARIES : debug;GDAL_DEBUG-NOTFOUND;optimized;GDAL_RELEASE-NOTFOUND
CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find GDAL, try to set the path to GDAL root folder in the system
variable GDAL_ROOT (missing: GDAL_LIBRARIES) (found version "2.1")
Call Stack (most recent call first):
/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
cmake/FindGDAL.cmake:165 (find_package_handle_standard_args)
cmake/FindAnyProject.cmake:79 (find_package)
CMakeLists.txt:83 (find_anyproject)
Configuring incomplete, errors occurred!
See also "/home/rykov/git/formbuilder/build/CMakeFiles/CMakeOutput.log".
See also "/home/rykov/git/formbuilder/build/CMakeFiles/CMakeError.log".
Если создать файл CMakeLists.txt вот такого содержания:
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found GDAL: /usr/lib/x86_64-linux-gnu/libgdal.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rykov/cmtest
Вот такая ошибка:
Если создать файл
CMakeLists.txt
вот такого содержания:и выполнить
cmake .
, то никаких ошибок: