B E Z I T O P O

Home
Features
Download
Developers
Links

Bezitopo development takes place on Github. Discussion takes place on IRC channel #bezitopo on Freenode.

To build Bezitopo, you need CMake and a C++ compiler. If you are packaging Bezitopo, it is fine to put the build directory inside the source directory, but if you are developing it, you should use an out-of-source build. I use the following file to make build directories for building on Linux and BSD:

~/bin/build
#!/bin/sh
mkdir -p ~/build/$1
cd ~/build/$1
mkdir -p dbg
mkdir -p rel
mkdir -p ins
mkdir -p w64
cd dbg
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=~ ~/src/$1
cd ../rel
cmake -DCMAKE_INSTALL_PREFIX=~ ~/src/$1
cd ../ins
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ~/src/$1
cd ../w64
cmake -DCMAKE_TOOLCHAIN_FILE=~/toolchain/mingw64.cmake -DCMAKE_INSTALL_PREFIX=~/mingw-install ~/src/$1

To cross-compile, use a toolchain file such as the following (adjust filenames and directories for your system):

~/toolchain/mingw64.cmake
SET(CMAKE_SYSTEM_NAME Windows)

SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)

SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 ~/mingw-install)

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

Bezitopo does not currently require any library but the math library, but it will eventually require a GUI library, most likely Qt5.

After building, run the test. You can type make test or bezitest individual tests. For the geoidboundary test, you will need a whole-earth geoid file which you can download from NGA.

Pierre Abbat
NC PLS L-5129