nextgis / formbuilder

Data collection forms builder for NextGIS Mobile
http://nextgis.com/nextgis-formbuilder/
GNU General Public License v2.0
12 stars 8 forks source link

Не находит GDAL #93

Closed drnextgis closed 8 years ago

drnextgis commented 8 years ago

Вот такая ошибка:

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 вот такого содержания:

cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
find_package(GDAL REQUIRED)

и выполнить cmake . , то никаких ошибок:

-- 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
drnextgis commented 8 years ago

Fixed via https://github.com/nextgis/formbuilder/commit/3fda20d2fff18ac6b98bb006416e271789b5d4b6