Home - a4chet/cesium-terrain-builder GitHub Wiki

This wiki will serve as some notes for cesium-terrain-builder

Compile & Building cesium-terrain-builder

Prerequisites

This repo's binaries were built using:

  • MSVC 2017 Community
  • GDAL 2.3.1
  • ZLIB 1.2.8
  • sqlite3
  • Download the GDAL distribution for source headers/libs & Extract to a local folder
  • Setup the GDAL_DIR environment variable to point to the root folder where \include and \lib reside
  • Download ZLIB and extract to a local directory
  • Setup the ZLIB_LIBRARY and ZLIB_INCLUDE_DIR environment variables to point to the zlib headers & lib

Compilation

  • Use the VS2017 x64 Developer command line
  • Navigate to the project directory
c:\dev\cesium-terrain-builder>mkdir build
c:\dev\cesium-terrain-builder>cd build
  • Use MSVC's already available cmake command

c:\dev\cesium-terrain-builder\build>cmake .. -G "Visual Studio 15 2017 Win64"

Open the MSVC2017 solution file, and compiled through the IDE, or alternatively use the cmake command line to build binaries. The binaries are in the \build directory under \tools and \src