-
Notifications
You must be signed in to change notification settings - Fork 399
Compiling on Linux
Łukasz Romanowicz edited this page Apr 17, 2016
·
22 revisions
First install required development packages using apt-get
sudo apt-get install build-essential cmake git-core
sudo apt-get install libboost1.55-all-dev libphysfs-dev libssl-dev liblua5.1-dev
sudo apt-get install libglew1.6-dev libvorbis-dev libopenal-dev libz-dev
sudo apt-get install libphysfs-dev
Get the sources, compile and run
git clone git://github.com/edubart/otclient.git
cd otclient
mkdir build && cd build
cmake ..
make
./otclient
The project creator @edubart uses Arch Linux at home and maintains an AUR package for otclient, make sure that you have yaourt and just run:
yaourt -S otclient-git
These instructions were tested on Fedora 20. Some packages that I suggest to be installed might not actually be needed and there might be a simpler way to link in Lua, but I am not aware of it. In case of a problem, contact d33tah.
yum-builddep lua
wget "http://www.lua.org/ftp/lua-5.1.5.tar.gz" -O- | tar zxvf -
cd lua-5.1.5
make linux
mkdir /opt/lua5.1
make INSTALL_TOP=/opt/lua5.1 install
yum install boost boost-devel physfs physfs-devel mesa-libGLw mesa-libGL-devel glew-devel openal-devel libvorbis-devel boost-system boost-thread boost-chrono boost-filesystem
The final command, make
, will take most time. If you have a multi-core processor, try make -j$(nproc)
to speed up the build process.
mkdir build && cd build
cmake -DUSE_STATIC_LIBS=OFF -DLUA_LIBRARY=/opt/lua5.1/lib/liblua.a -DLUA_INCLUDE_DIR=/opt/lua5.1/include/ ..
make
./otclient