geo-data / cesium-terrain-builder

A C++ library and associated command line tools designed to create terrain tiles for use in the Cesium JavaScript library
Other
709 stars 339 forks source link

The code is not compatible with GDAL 2.2, and can compile with GDAL 2.1 #51

Closed fangd123 closed 6 years ago

fangd123 commented 7 years ago

When I use the GDAL 2.2.1 to compile the source, it reported an error like GDALCreateOverviewDataset() has the wrong number of arguments, I query the header file, the function of GDAL 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.

mrgloom commented 7 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
mrgloom commented 7 years ago

Related https://github.com/geo-data/cesium-terrain-builder/issues/15