Building on Linux
Step-by-step guide for Ubuntu 22.04.
1. Install Build Tools
sudo apt-get update
sudo apt-get install -y \
build-essential gcc-11 g++-11 \
cmake ninja-build git \
autoconf automake libtool pkg-config \
ca-certificates
Set GCC 11 as default compiler:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60 \
--slave /usr/bin/g++ g++ /usr/bin/g++-11
Verify:
2. Clone and Configure
git clone https://github.com/turbolynx-dslab/TurboLynx
cd TurboLynx
mkdir build && cd build
cmake -GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TCMALLOC=OFF \
-DBUILD_UNITTESTS=OFF \
-DTBB_TEST=OFF \
..
3. Build
Expected final output:
4. Verify
Troubleshooting
FetchContent download fails
Check internet connectivity and that ca-certificates is installed.
If behind a proxy, set the https_proxy environment variable before running cmake.