Hi,
I'm trying to install RSGISLib on Ubuntu 18.04 and Windows 10. As there are no ready-to-use packages
the only way seems is to build it from sources. So I have downloaded archive rsgislib-3.5.8.tar.gz from
from this directory executed
cmake -DCMAKE_INSTALL_PREFIX=/opt/rsgislib ..
Configuration process completed successfully with the following output
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/rsgislib ..
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- 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
-- Finding Python using PATH
-- Building Python bindings with /usr/bin/python
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/rsgislib/build
Then I tried to run make and build fails immediatelly with
$ make
Scanning dependencies of target gdalsimpleinfo
[ 0%] Building CXX object CMakeFiles/gdalsimpleinfo.dir/tools/gdalsimpleinfo.cpp.o
/home/user/rsgislib/tools/gdalsimpleinfo.cpp:28:10: fatal error: gdal_priv.h: Немає такого файла або каталогу
#include "gdal_priv.h"
^~~~~~~~~~~~~
compilation terminated.
CMakeFiles/gdalsimpleinfo.dir/build.make:62: recipe for target 'CMakeFiles/gdalsimpleinfo.dir/tools/gdalsimpleinfo.cpp.o' failed
make[2]: *** [CMakeFiles/gdalsimpleinfo.dir/tools/gdalsimpleinfo.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gdalsimpleinfo.dir/all' failed
make[1]: *** [CMakeFiles/gdalsimpleinfo.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
However I have GDAL installed ( GDAL 3.0.2, released 2019/10/28). Seems CMakeLists.txt
does not check for required dependencies. Also there is no information at all which dependencies
are necessary to build rsgislib.
Can anyone help with building instructions? Also I will need to install it on WIndows 10 and want
to know are there any differences in build process in comparison to Linux.
Thanks