Skip to content

Latest commit

 

History

History
99 lines (68 loc) · 2.1 KB

BUILD.md

File metadata and controls

99 lines (68 loc) · 2.1 KB

Compiling from source

macOS

Requirements

  • Homebrew

  • libpng: brew install libpng

  • cmake: brew install cmake

  • boost: brew install boost

Installing zlib through homebrew is not necessary because macOS already provides these libraries.

How to compile

git clone --recursive https://github.com/bedrock-viz/bedrock-viz.git
# patch
cd bedrock-viz
git apply -p0 patches/leveldb-1.22.patch
git apply -p0 patches/pugixml-disable-install.patch
# make
mkdir build && cd build
cmake ..
make

If all goes well, there will be a "bedrock-viz" in build/

Ubuntu (tested on ubuntu 18.04)

Requirements

  • cmake: sudo apt install cmake

  • libpng and zlib: sudo apt install libpng++-dev zlib1g-dev

  • boost sudo apt install libboost-program-options-dev

  • we use C++ 17 filesystem library, so we need g++-8: sudo apt install g++-8

How to compile

git clone --recursive https://github.com/bedrock-viz/bedrock-viz.git
# patch
cd bedrock-viz
git apply -p0 patches/leveldb-1.22.patch
git apply -p0 patches/pugixml-disable-install.patch
# make
mkdir build && cd build
# switch gcc-7 to gcc-8
export CC=/usr/bin/gcc-8
export CXX=/usr/bin/g++-8
cmake ..
make

If all goes well, there will be a "bedrock-viz" in build/

Windows

Requirements

How to compile

# turn off autocrlf
git config --global core.autocrlf false
git config --global core.eol lf

git clone --recursive https://github.com/bedrock-viz/bedrock-viz.git
cd bedrock-viz

# patch
git apply -p0 patches/leveldb-1.22.patch
git apply -p0 patches/pugixml-disable-install.patch
# make
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=<path-to-vcpkg>/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 16 2019" -A x64
# in visual studio command line tools
msbuild bedrock-viz.sln