Skip to content

Instantly share code, notes, and snippets.

@robertov8
Last active November 10, 2017 22:30
Show Gist options
  • Save robertov8/3af0461b31b14887506af84f3a00c1ac to your computer and use it in GitHub Desktop.
Save robertov8/3af0461b31b14887506af84f3a00c1ac to your computer and use it in GitHub Desktop.
otclient - Compiling on Linux
#!/bin/bash
# Install required development packages
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install git-core
sudo apt-get install libboost1.58-all-dev
sudo apt-get install liblua5.1-0-dev
sudo apt-get install libglew1.13
sudo apt-get install libvorbis-dev
sudo apt-get install libopenal-dev
sudo apt-get install libphysfs-dev
sudo apt-get install libglewmx-dev
sudo apt-get install libssl-dev
sudo apt-get install libz3-dev
sudo apt-get install freeglut3-dev
sudo apt-get install libc6-dev-i386
sudo apt-get install doxygen
sudo apt-get install libncurses5-dev
sudo apt-get install mercurial
# PhysicsFS is a library to provide abstract access to various archives
hg clone -r stable-2.0 http://hg.icculus.org/icculus/physfs/
cd physfs
sudo mkdir build
cd build
sudo cmake ..
sudo make
sudo make install
sudo mv /usr/local/lib/libphysfs.a /usr/lib/x86_64-linux-gnu/.
# Get the sources, compile and run
git clone git://github.com/edubart/otclient.git
cd otclient
mkdir build && cd build
cmake ..
make
./otclient
# Download Tibia - Tibia.dat Tibia.pic Tibia.spr
#!/bin/bash
VERSION=tibia10195
LOCALOT=otclient/data/things
cd $LOCALOT
wget http://static.tibia.com/download/$VERSION.tgz
tar --wildcards -zxvf tibiaVERSION.tgz Tibia/Tibia.*
mkdir $VERSION
mv Tibia/Tibia.* $VERSION/.
rm $VERSION.tgz
rm -R Tibia/
Copy link

ghost commented Apr 13, 2017

You forgot openssl :)
sudo apt-get install libssl-dev

Works on Linux Mint cinnamon 18.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment