-
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.
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/
-
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
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/
-
Visual Studio 2019: https://visualstudio.microsoft.com/vs/ - Community edition is free
-
cmake: https://cmake.org/download/
-
libpng:
vcpkg install libpng:x64-windows
-
zlib:
vcpkg install zlib:x64-windows
-
boost-program-options:
vcpkg install boost-program-options:x64-windows
# 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