Install
Installation Guide for punkst¶
This guide walks you through building punkst on Linux and macOS, including environments without root access.
Build¶
Prerequisites
- Git
- CMake: 3.15 to 3.23
- C++17 compiler* (GCC ≥8, Clang ≥5, MSVC 2017+)
- TBB, OpenCV
*We do assume your compiler properly supports C++17. Consider updating your compiler if you encounter issues.
# 1) Clone the repository
git clone --recursive https://github.com/your-org/punkst.git
cd punkst
# 2) Create and enter a build directory
mkdir build && cd build
# 3) Configure
cmake ..
# 4) Build
cmake --build . --parallel # or make
If you did not clone the submodule (Eigen) initially, you can do
If an error occurs due to TBB not found, see below for installation options.
If you installed some dependencies locally, you may need to specify their paths like
cmake .. \
-DOpenCV_DIR=$HOME/.local/lib/cmake/opencv4 \
-DTBB_DIR=$HOME/user/opt/tbb/lib/cmake/tbb \
-DCMAKE_PREFIX_PATH="$HOME/.local"
-DOpenCV_DIR=$(brew --prefix opencv)/lib/cmake/opencv4
or wherever OpenCV is installed.)
The punkst
binary will be placed in bin/
under the project root.
Verifying the Build
You should see a message starting with
Required Libraries¶
- TBB
System: sudo apt-get install libtbb-dev
or yum install tbb-devel
on linux and brew install tbb
on macOS.
Local: install oneTBB (or find more information here).
- OpenCV
sudo apt-get install libopencv-dev
or sudo yum install opencv-devel
on linux, brew install opencv
on macOS. See OpenCV installation guide for more details on how to install from source.
- Other dependencies
Library | Ubuntu / Debian | CentOS / RHEL | macOS (Homebrew) |
---|---|---|---|
zlib | sudo apt-get install zlib1g-dev |
sudo yum install zlib-devel |
brew install zlib |
BZip2 | sudo apt-get install libbz2-dev |
sudo yum install bzip2-devel |
brew install bzip2 |
LibLZMA | sudo apt-get install liblzma-dev |
sudo yum install xz-devel |
brew install xz |