-
Notifications
You must be signed in to change notification settings - Fork 3
Compiling on Ubuntu Server 20.04
José Ángel Soler Ortiz edited this page Nov 16, 2023
·
19 revisions
sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt install build-essential pkg-config autoconf autoconf-archive libtool libdbus-1-dev libxi-dev libxtst-dev curl zip unzip tar bison libxrender-dev libxrandr-dev ninja-build g++-13
sudo snap install cmake --classic
git clone https://github.com/joseasoler/todds.git
cd todds
python3 ./tools/get_ispc.py
PATH=$PATH:[PATH TO TODDS]/ispc/bin
git submodule update --init --recursive
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=[path in which todds will be placed] -DCMAKE_TOOLCHAIN_FILE=../submodules/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13 ..
cmake --build . --target install