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
706 stars 338 forks source link

Getting error on on cmake install command #78

Closed SurajitChowbey closed 5 years ago

SurajitChowbey commented 5 years ago

GDAL Version: 2.1.3 Ubuntu version: 16.0.4 Command used: mkdir build && cd build && cmake .. && make install

Error I got:

-- Configuring done
-- Generating done
-- Build files have been written to: /Cesium/cesium-terrain-builder-master/build
[  5%] Building CXX object src/CMakeFiles/ctb.dir/GDALTiler.cpp.o
/Cesium/cesium-terrain-builder-master/src/GDALTiler.cpp: In function ‘void* getOverviewDataset(GDALDatasetH, GDALTransformerFunc, void*)’:
/Cesium/cesium-terrain-builder-master/src/GDALTiler.cpp:249:79: error: too few arguments to function ‘GDALDataset* GDALCreateOverviewDataset(GDALDataset*, int, int, int)’
                   poSrcOvrDS = GDALCreateOverviewDataset( poSrcDS, iOvr, FALSE);
                                                                               ^
In file included from /Cesium/cesium-terrain-builder-master/src/GDALTiler.cpp:27:0:
/usr/include/gdal/gdal_priv.h:1403:22: note: declared here
 GDALDataset CPL_DLL* GDALCreateOverviewDataset(GDALDataset* poDS, int nOvrLevel,
                      ^
src/CMakeFiles/ctb.dir/build.make:86: recipe for target 'src/CMakeFiles/ctb.dir/GDALTiler.cpp.o' failed
make[2]: *** [src/CMakeFiles/ctb.dir/GDALTiler.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/ctb.dir/all' failed
make[1]: *** [src/CMakeFiles/ctb.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
kurt-barrioga commented 8 months ago

I am curious as I have this particular error is what I encountered too but there's really no answer on how to solve this issue.

BWibo commented 8 months ago

Using the Docker version, there is no need to build the tool: https://github.com/tum-gis/cesium-terrain-builder-docker