B E Z I T O P O

Home
Features
Download
Developers
Links

Bezitopo development takes place on Github. Discussion will take place on the mailing list at http://lists.bezitopo.org (which isn't up yet). There is also an IRC channel #bezitopo on Freenode.

General Building

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.

Building on Unix and the like

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

Cross-compiling

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 requires Qt5 since 2017-09-06. I haven't cross-compiled it since.

Building on Windows with Cygwin

To build on Cygwin, install the following packages:

Create the ~/bin/build file above, but without the three w64 lines. Clone the repo into ~/src/bezitopo and run these commands:
Building on Cygwin
you@comp ~/src $ mkdir ~/build
you@comp ~/src $ ~/bin/build bezitopo
you@comp ~/src $ cd ~/build/bezitopo/dbg
you@comp ~/build/bezitopo/dbg $ make -j 3
you@comp ~/build/bezitopo/dbg $ startxwin&
you@comp ~/build/bezitopo/dbg $ DISPLAY=:0;export DISPLAY
you@comp ~/build/bezitopo/dbg $ ./viewtin&

First time on a new OS or processor

After building, run the test. You can type make test or bezitest individual tests.

Pierre Abbat
NC PLS L-5129