ubuntu install librasterlit2 from source
在编译gdal时, 想--with-rasterlite2, 但是直接sudo apt install librasterlit2-dev 后, 在gdal的 ./configure过程中报错:
checking for rl2_load_raw_tiles_into_dbms in -lrasterlite2... no
configure: error: did not find rl2_load_raw_tiles_into_dbms
不得已, 下载源码,手动编译安装
http://www.gaia-gis.it/gaia-sins/librasterlite2-sources/
http://www.gaia-gis.it/gaia-sins/librasterlite2-sources/librasterlite2-1.1.0-beta1.tar.gz
结果发现要装一堆libXXX-dev:
sudo apt install -y libjpeg-dev libgif-dev libgeotiff-dev libopenjp2-7-dev libwebp-dev libcharls-dev libcairo2-dev liblz4-dev libzstd-dev libfreexl-dev librttopo-dev
不保证缺其他的, 反正./configure的时候缺什么就安装什么
#20220716更新 1.1.0-beta1 编译
直接编译 librasterlite2 会报错,找不到GAIA_TINYPOINT_BIG_ENDIAN 和 GAIA_TINYPOINT_LITTLE_ENDIAN 和
只能
1 先下载编译libspatialite
大同小异,都是一个人开发的
https://www.gaia-gis.it/gaia-sins/libspatialite-sources/
https://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-5.0.1.tar.gz
./configure
make -j 4 sudo make install
2 再编译 rasterlite2
./configure
make -j 4 sudo make install
搞定
—————————————