-
-
Notifications
You must be signed in to change notification settings - Fork 153
Setup Ubuntu
Matthew Albrecht edited this page Jan 4, 2020
·
5 revisions
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install pkg-config cmake xorg-dev libglu1-mesa-dev libvulkan-dev libopenal-dev libfreetype6-dev
If you want to build with GCC:
sudo apt-get install g++-7
sudo apt-get update -qq
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
Or if you want to build with Clang:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main"
sudo apt-get update
sudo apt-get install -y clang-9
sudo apt-get update -qq
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 1000
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 1000
export CC=/usr/bin/clang-9
export CXX=/usr/bin/clang++-9
export LD_LIBRARY_PATH=/usr/bin/clang++-9/lib
export PATH=/usr/bin/clang++-9/bin:$PATH
sudo ldconfig
If you have an outdated version of CMake:
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install cmake
If you are using a IDE that supports CMake file build like CLion you can skip these next steps under building. Otherwise within your clone of Acid you can begin building, first we create a new Build folder where the makefiles and binaries will be located and run make:
mkdir Build && cd Build
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
make all