[ COMPILING
Linux
Download required packages
Debian \ Ubuntu
Launch a terminal, and paste in this command:
sudo apt-get install subversion autoconf automake make g++ libxml2 libxml2-dev libxml++2.6-dev lua5.1 liblua5.1-0 liblua5.1-0-dev libboost-dev libboost-date-time-dev libboost-regex-dev libboost-thread-dev libmysql++-dev libgmp3-dev liblua5.1-sql-mysql2 liblua5.1-sql-sqlite2 liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite-dev libsqlite3-dev
wget [url]http://heanet.dl.sourceforge.net/sourceforge/asio/boost_asio_1_0_0.tar.gz[/url]
tar -xf boost_asio_1_0_0.tar.gz
sudo cp -ar boost_asio_1_0_0/boost/* /usr/include/boost/
sudo g++ boost_asio_1_0_0/libs/system/src/error_code.cpp -c -o /usr/lib/libboost_system.a
sudo: command not found
If you're running Debian it's possible that you don't have sudo,
if that's the case then you can run 'su' and you will have root
access. Then execute the commands without 'sudo' in the beginning.
Download sources
Launch a terminal, and paste in this command:
svn co [url]https://forgottenserver.svn.sourceforge.net/svnroot/forgottenserver/forgottenserver/tags/0.2/[/url]
Compiling
Launch a terminal, and type this command:
cd 0.2/ && make
Linker error
If you receive a linker error which name 'libboost', paste in this command and try to compile again:
ln /usr/lib/libboost_regex-mt.so /usr/lib/libboost_regex.so && ln /usr/lib/libboost_regex-mt.a /usr/lib/libboost_regex.a && ln /usr/lib/libboost_thread-mt.so /usr/lib/libboost_thread.so && ln /usr/lib/libboost_thread-mt.a /usr/lib/libboost_thread.a
Windows
Dev-Cpp
Download TheForgottenDev-Cpp and the sources from:
[url]http://otland.net/showthread.php?t=1024[/url]
Extract them anywhere and then run devcpp.exe, press on the menuitem
"File -> Open Project or File" and choose TheForgottenServer.dev.
At this point Dev-Cpp should be running with the project, now you can press
"Execute -> Rebuild All", if there is any error, then report it here:
[url]http://otland.net/showthread.php?t=379[/url]
]