Created
January 7, 2016 21:55
-
-
Save lazanet/6e78ff656bfddc64d7a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Xash3D pull + build on ubuntu 15.10 | |
# by lazanet | |
# run with sudo | |
############################### | |
clear | |
rm -rdf dep | |
mkdir dep | |
cd dep | |
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/gcc-4.6-base_4.6.4-6ubuntu3_amd64.deb | |
dpkg -i gcc-4.6-base_4.6.4-6ubuntu3_amd64.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/libstdc++6-4.6-dev_4.6.4-6ubuntu3_amd64.deb | |
dpkg -i libstdc++6-4.6-dev_4.6.4-6ubuntu3_amd64.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/gcc-4.6_4.6.4-6ubuntu3_amd64.deb | |
dpkg -i gcc-4.6_4.6.4-6ubuntu3_amd64.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/g++-4.6_4.6.4-6ubuntu3_amd64.deb | |
dpkg -i g++-4.6_4.6.4-6ubuntu3_amd64.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/gcc-4.6-multilib_4.6.4-6ubuntu3_amd64.deb | |
dpkg -i gcc-4.6-multilib_4.6.4-6ubuntu3_amd64.deb | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.6/g++-4.6-multilib_4.6.4-6ubuntu3_amd64.deb | |
dpkg -i g++-4.6-multilib_4.6.4-6ubuntu3_amd64.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/main/b/bzip2/lib32bz2-dev_1.0.6-5_amd64.deb | |
dpkg -i lib32bz2-dev_1.0.6-5_amd64.deb | |
wget http://mirrors.kernel.org/ubuntu/pool/main/b/bzip2/lib32bz2-1.0_1.0.6-5_amd64.deb | |
dpkg -i lib32bz2-dev_1.0.6-5_amd64.deb | |
clear | |
# Uncomment these if you use some weird distro | |
#add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" | |
#apt-get update | |
apt-get install cmake | |
apt-get install libc6-dev-i386 libc6-dev-i386 lib32z1 lib32ncurses5 lib32bz2-1.0 libx11-dev xorg-dev | |
#apt-get install g++-4.6-multilib lib32bz2-dev lib32z1-dev # uncomment if wget fcks up | |
apt-get -f install # fix for dpkg dependencies | |
cd /opt | |
git clone https://github.com/SDLash3D/halflife | |
cd ~/ | |
mkdir xash3dlinux | |
git clone https://github.com/SDLash3D/xash3d.git | |
cd xash3d | |
mkdir -p build | |
cd build/ | |
cmake ../ -DHL_SDK_DIR=/opt/halflife -DXASH_VGUI=yes -DCMAKE_OSX_ARCHITECTURE=i386 | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment