Closed fangd123 closed 6 years ago
For cesium-terrain-builder we need GDAL version >= 2.0.0
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt update
sudo apt install -y gdal-bin python-gdal libgdal-dev
or build from source:
#For cesium-terrain-builder we need GDAL version >= 2.0.0
#Build gdal from source https://trac.osgeo.org/gdal/wiki/BuildingOnUnix
#All versions http://download.osgeo.org/gdal/
#Build with python support https://gis.stackexchange.com/questions/21728/installing-gdal-1-9-0-on-linux-ubuntu-server-10-04/21739#21739
#wget http://download.osgeo.org/gdal/2.0.1/gdal-2.0.1.tar.gz
#tar -xvzf gdal-2.0.1.tar.gz
#cd gdal-2.0.1
#mkdir deploy
#./configure --prefix=/home/user/Downloads/gdal-2.0.1/deploy
#make
#sudo make install
When I use the
GDAL 2.2.1
to compile the source, it reported an error likeGDALCreateOverviewDataset() has the wrong number of arguments
, I query the header file, the function ofGDAL 2.2.1
has just three arguments instead of four.And then I download the source code of
GDAL 2.1.4
, the CTB has built succefully.