This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
cathook/install-all
2018-06-09 15:36:22 +02:00

29 lines
910 B
Bash
Executable File

#!/usr/bin/env bash
rm ../install-all # remove install file
#
# Install base Dependencies
#
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install build-essential git gcc-multilib g++-multilib software-properties-common gcc-snapshot g++-6-multilib gcc-6 g++-6 libssl-dev:i386 libboost-all-dev libc6-dev:i386 gdb libsdl2-dev libglew-dev:i386 libglew-dev libfreetype6-dev libfreetype6-dev:i386 cmake libpng-dev libssl-dev cmake gcc-multilib g++-multilib -y
#
# Update cathook
#
git fetch # fetch github repo for udpates
git pull origin # pull changes from github
git submodule update --remote --recursive # update submodules
#
# Build cathook
#
mkdir build;cd build #create a directory for building cathook
cmake ..;make -j$(grep -c '^processor' /proc/cpuinfo) # create makefile and build using all available threads
sudo make data # create /opt/cathook/data
cd ..; cd ..