- Joined
- Nov 15, 2007
- Messages
- 854
- Solutions
- 10
- Reaction score
- 389
- Location
- Santiago, Chile (Australian)
Written by wrzasq for the ******.net forum.
Additional support can be found in the o t f a n s . n e t forums.
I don't understand why you don't allow people to link to o t f a n s, It seems stupid.
----
Latest SVN compilation on Linux with boost_asio and boost_system on Debian/GNU Linux Sid tutorial. Didn't try on other distros.
First of all install libraries that are available in Debian repositories:
Code:
apt-get install libboost-date-time-dev libboost-date-time1.34.1 libboost-dev libboost-regex-dev libboost-regex1.34.1 libboost-signals-dev libboost-signals1.34.1 libboost-thread-dev libboost-thread1.34.1 libxml2 liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 libsqlite0 libsqlite0-dev libsqlite3-0 libsqlite3-dev sqlite3
huh, should be enought... not sure if i missed something...
Now we will need boost sources and asio sources to build boost_asio and boost_system (asio is not part of Boost libraries, this is separated library).
Download these files:
http://sourceforge.net/project/downloading.php?groupname=asio&filename=boost_asio_0_3_8.tar.gz
http://sourceforge.net/project/downloading.php?groupname=boost&filename=boost_1_34_1.tar.gz
Extract both of them, then copy (you will likely need root access):
Code:
Then copy asio sources into Boost tree:
Code:
Go to boost_system source directory and compile it:
Code:
<edit>
Before you ask: there are build scripts for Boost, but for me they didnt work - probably something with unicode. But this way works fine and those three lines of commands are smaller then compiling options for Boost .
</edit>
Then install this library in your system (again root priviliages can be required):
Code:
Then your system is ready for OTServ compilation . Go to directory where you want to have your OTServ and execute following commands:
Code:
__________________
Additional support can be found in the o t f a n s . n e t forums.
I don't understand why you don't allow people to link to o t f a n s, It seems stupid.
----
Latest SVN compilation on Linux with boost_asio and boost_system on Debian/GNU Linux Sid tutorial. Didn't try on other distros.
First of all install libraries that are available in Debian repositories:
Code:
apt-get install libboost-date-time-dev libboost-date-time1.34.1 libboost-dev libboost-regex-dev libboost-regex1.34.1 libboost-signals-dev libboost-signals1.34.1 libboost-thread-dev libboost-thread1.34.1 libxml2 liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 libsqlite0 libsqlite0-dev libsqlite3-0 libsqlite3-dev sqlite3
huh, should be enought... not sure if i missed something...
Now we will need boost sources and asio sources to build boost_asio and boost_system (asio is not part of Boost libraries, this is separated library).
Download these files:
http://sourceforge.net/project/downloading.php?groupname=asio&filename=boost_asio_0_3_8.tar.gz
http://sourceforge.net/project/downloading.php?groupname=boost&filename=boost_1_34_1.tar.gz
Extract both of them, then copy (you will likely need root access):
Code:
cp boost_asio_0_3_8/boost /usr/local/include -r
Then copy asio sources into Boost tree:
Code:
cp boost_asio_0_3_8/libs boost_1_34_1 -r
Go to boost_system source directory and compile it:
Code:
cd boost_1_34_1/libs/system/src/
g++ -shared -Wl,-soname,libboost_system.so.1 -o libboost_system.so.1.0.1 error_code.cpp -lc -fPIC
<edit>
Before you ask: there are build scripts for Boost, but for me they didnt work - probably something with unicode. But this way works fine and those three lines of commands are smaller then compiling options for Boost .
</edit>
Then install this library in your system (again root priviliages can be required):
Code:
cp libboost_system.so.1.0.1 /usr/local/lib
ln -s /usr/local/lib/libboost_system.so.1.0.1 /usr/local/lib/libboost_system.so
ldconfig
Then your system is ready for OTServ compilation . Go to directory where you want to have your OTServ and execute following commands:
Code:
svn co https://opentibia.svn.sourceforge.net/svnroot/opentibia/otserv/trunk/ .
sh autogen.sh
./configure
make
mkdir ~/.otserv
cp config.lua.dist ~/.otserv/config.lua
__________________
Last edited: