cesium-terrain-builder icon indicating copy to clipboard operation
cesium-terrain-builder copied to clipboard

Building under windows

Open elfayoumi opened this issue 9 years ago • 2 comments

Hello, I am having some problems in building the project under windows, did anyone was successful please? After long struggle building gdal and zlib, I am getting: "C:\Program Files (x86)\JetBrains\CLion 2016.1.3\bin\cmake\bin\cmake.exe" --build C:\Users\elfai5.CLion2016.1\system\cmake\generated\ceisum-terrian-builder-d62868b7\d62868b7\Release --target all -- -j 4 [ 11%] Built target commander Scanning dependencies of target ctb [ 17%] Building CXX object src/CMakeFiles/ctb.dir/GDALTiler.cpp.obj [ 29%] Building CXX object src/CMakeFiles/ctb.dir/GlobalMercator.cpp.obj [ 29%] Building CXX object src/CMakeFiles/ctb.dir/GlobalGeodetic.cpp.obj D:\workspace\ceisum-terrian-builder\src\GDALTiler.cpp: In function 'void* getOverviewDataset(GDALDatasetH, GDALTransformerFunc, void_)': D:\workspace\ceisum-terrian-builder\src\GDALTiler.cpp:244:87: error: 'GDALCreateOverviewDataset' was not declared in this scope poSrcOvrDS = GDALCreateOverviewDataset( poSrcDS, iOvr, FALSE, FALSE ); ^ D:\workspace\ceisum-terrian-builder\src\GDALTiler.cpp: In member function 'void ctb::GDALTiler::closeDataset()': D:\workspace\ceisum-terrian-builder\src\GDALTiler.cpp:397:20: error: 'class GDALDataset' has no member named 'GetRefCount' if (poDataset->GetRefCount() < 1) { ^ mingw32-make.exe[2]: *_* [src/CMakeFiles/ctb.dir/GDALTiler.cpp.obj] Error 1 src\CMakeFiles\ctb.dir\build.make:87: recipe for target 'src/CMakeFiles/ctb.dir/GDALTiler.cpp.obj' failed CMakeFiles\Makefile2:84: recipe for target 'src/CMakeFiles/ctb.dir/all' failed makefile:126: recipe for target 'all' failed mingw32-make.exe[1]: *** [src/CMakeFiles/ctb.dir/all] Error 2 mingw32-make.exe: *** [all] Error 2

elfayoumi avatar Jun 13 '16 08:06 elfayoumi

You should be able to use OSGeo4W to satisfy GDAL dependencies without having to build gdal yourself. You can also use the MSVC compiler since this is mostly standard C++. I will assist in porting to windows since it is a use case for me as well.

whatnick avatar Aug 12 '16 01:08 whatnick

I have succesfully built ctb-tile on MSVC 2013 and would recommend that this issue is closed.

whatnick avatar Aug 29 '16 07:08 whatnick