-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
helpstate: inactiveNo action needed or possible. The issue is fixed, addressed elsewhere, or out of scope.No action needed or possible. The issue is fixed, addressed elsewhere, or out of scope.type: bugSomething isn't working.Something isn't working.
Description
When trying to build with GDAL v3.x..x
the build fails with this error.
> [buildstage 4/5] RUN set -x && cd /ctbtemp/cesium-terrain-builder && mkdir build && cd build && cmake .. && make install .:
0.202 + cd /ctbtemp/cesium-terrain-builder
0.202 + mkdir build
0.203 + cd build
0.203 + cmake ..
0.207 CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
0.207 Compatibility with CMake < 3.10 will be removed from a future version of
0.207 CMake.
0.207
0.207 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
0.207 to tell CMake that the project requires at least <min> but has been updated
0.207 to work with policies introduced by <max> or earlier.
0.207
0.207
0.249 -- The C compiler identification is GNU 14.2.0
0.292 -- The CXX compiler identification is GNU 14.2.0
0.300 -- Detecting C compiler ABI info
0.346 -- Detecting C compiler ABI info - done
0.361 -- Check for working C compiler: /usr/bin/cc - skipped
0.361 -- Detecting C compile features
0.362 -- Detecting C compile features - done
0.372 -- Detecting CXX compiler ABI info
0.420 -- Detecting CXX compiler ABI info - done
0.435 -- Check for working CXX compiler: /usr/bin/c++ - skipped
0.436 -- Detecting CXX compile features
0.437 -- Detecting CXX compile features - done
0.443 -- Performing Test COMPILER_SUPPORTS_CXX11
0.490 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success
0.491 -- Performing Test COMPILER_SUPPORTS_CXX0X
0.539 -- Performing Test COMPILER_SUPPORTS_CXX0X - Success
0.541 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
0.590 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
0.592 -- Found Threads: TRUE
0.596 -- Found GDAL: /usr/lib/libgdal.so (found version "3.10.3")
0.597 -- Looking for GDALOpenEx in gdal
0.750 -- Looking for GDALOpenEx in gdal - found
0.754 -- Found ZLIB: /usr/lib/libz.so (found version "1.3.1")
0.756 -- Configuring done (0.5s)
0.775 -- Generating done (0.0s)
0.775 -- Build files have been written to: /ctbtemp/cesium-terrain-builder/build
0.780 + make install .
0.800 [ 4%] Building CXX object src/CMakeFiles/ctb.dir/GDALTile.cpp.o
1.321 [ 8%] Building CXX object src/CMakeFiles/ctb.dir/GDALTiler.cpp.o
1.757 In file included from /ctbtemp/cesium-terrain-builder/src/GDALTiler.cpp:218:
1.757 /ctbtemp/cesium-terrain-builder/src/gdaloverviewdataset.cpp:118:21: error: 'GDALRasterBand* GDALOverviewBand::RefUnderlyingRasterBand()' marked 'override', but does not override
1.757 118 | GDALRasterBand* RefUnderlyingRasterBand() override;
1.757 | ^~~~~~~~~~~~~~~~~~~~~~~
1.757 /ctbtemp/cesium-terrain-builder/src/gdaloverviewdataset.cpp:124:12: error: 'CPLErr GDALOverviewBand::FlushCache()' marked 'override', but does not override
1.757 124 | CPLErr FlushCache() override;
1.757 | ^~~~~~~~~~
1.758 /ctbtemp/cesium-terrain-builder/src/gdaloverviewdataset.cpp: In constructor 'GDALOverviewDataset::GDALOverviewDataset(GDALDataset*, int, int)':
1.758 /ctbtemp/cesium-terrain-builder/src/gdaloverviewdataset.cpp:195:52: error: invalid new-expression of abstract class type 'GDALOverviewBand'
1.758 195 | SetBand(i+1, new GDALOverviewBand(this, i+1));
1.758 | ^
1.758 /ctbtemp/cesium-terrain-builder/src/gdaloverviewdataset.cpp:112:7: note: because the following virtual functions are pure within 'GDALOverviewBand':
1.758 112 | class GDALOverviewBand final: public GDALProxyRasterBand
1.758 | ^~~~~~~~~~~~~~~~
1.758 In file included from /ctbtemp/cesium-terrain-builder/src/gdaloverviewdataset.cpp:40:
1.758 /usr/include/gdal_proxy.h:113:5: note: 'virtual GDALRasterBand* GDALProxyRasterBand::RefUnderlyingRasterBand(bool) const'
1.758 113 | RefUnderlyingRasterBand(bool bForceOpen = true) const = 0;
1.758 | ^~~~~~~~~~~~~~~~~~~~~~~
1.758 /ctbtemp/cesium-terrain-builder/src/gdaloverviewdataset.cpp:204:56: error: invalid new-expression of abstract class type 'GDALOverviewBand'
1.758 204 | m_poMaskBand = new GDALOverviewBand(this, 0);
1.758 | ^
1.850 make[2]: *** [src/CMakeFiles/ctb.dir/build.make:93: src/CMakeFiles/ctb.dir/GDALTiler.cpp.o] Error 1
1.850 make[1]: *** [CMakeFiles/Makefile2:161: src/CMakeFiles/ctb.dir/all] Error 2
1.851 make: *** [Makefile:136: all] Error 2
I'm not able to fix this on my own, because I'm not familiar with C++.But it would be great to be able to upgrade the Docker images.
Is there anybody who can help? This probably needs to be fixed in https://github.com/ahuarte47/cesium-terrain-builder.git, the fork of @ahuarte47.
Metadata
Metadata
Assignees
Labels
helpstate: inactiveNo action needed or possible. The issue is fixed, addressed elsewhere, or out of scope.No action needed or possible. The issue is fixed, addressed elsewhere, or out of scope.type: bugSomething isn't working.Something isn't working.