Dependencies

From TheManaWorld

Jump to: navigation, search

This article contains information for players playing or interested in playing The Mana World

This article contains information for Programmers working or interested in working for The Mana World

This article is for reference purpose

The features described in this article are already implemented in the game. The article should describe how a certain aspect of the game currently works. You may of course edit this article to improve the description of the circumstances. Your opinions or improvement suggestions about the described aspects themself are of course appreciated, too. But please put these on the discussion page of this article to keep facts and fiction separated.

Contents

Dependency list

Here is the list of libraries currently used by the eAthena client of The Mana World (0.0.x branch, current version 0.0.25):

These are the libraries that are needed for compiling the new Server:

These libraries are required for the new client (0.x branch, current development version 0.1):

You'll need to install these dependencies when you want to compile The Mana World yourself. The most convenient way to install them varies per operating system, below you'll find instructions for a few popular choices.

Installation instructions

Installing the dependencies on Ubuntu

To install most of the packages needed for compiling TMW on Ubuntu, just paste this code into a terminal:

sudo apt-get install libphysfs-dev libcurl4-openssl-dev libxml2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev g++

Then just type your root password and wait for it to finish! There is one package that is not installed with the above command, and that is Guichan. You'll have to compile and install Guichan yourself, get it from their downloads page.

When you're not compiling the source release of TMW but have checked it out from Subversion instead, and you want to use automake, then you will also need to install additional packages (see command below) and run ./autogen.sh to generate configure. CMake is also supported as an alternative for automake.

sudo apt-get install autoconf automake gettext svn

And when you checked out trunk, you need even more dependencies:

sudo apt-get install libsdl-ttf2.0-dev libenet1-dev cvs

Installing and building the sources on Fedora Core 6

Do the following as root:

rpm -ihv http://kde.mirrors.tds.net/pub/fedora-core-extras/6/SRPMS/manaworld-0.0.21.1-2.fc6.src.rpm
yum install guichan-devel physfs-devel SDL_image-devel SDL_mixer-devel SDL_net-devel
rpmbuild -ba --target i686 /usr/src/redhat/SPECS/manaworld.spec

You may use a different Fedora Core 6 mirror instead of the one above. If you get a list of missing dependencies, add them using yum install and re-run rpmbuild.

Possible --target (default is --target i386 if not specified):

i386
i486
i586
i686
x86_64

You can then install your new build with the following as root:

rpm -ihv --force /usr/src/redhat/RPMS/i386/manaworld-0.0.21.1-2.i686.rpm

--force is only needed to overwrite a previously installed version.

Installing the dependencies on Windows

When you just want to play the game you should just download the installer that includes all the dependencies as DLL files. But when you want to check out the latest developer version from the SVN repository or when you want to tinker with the sourcecode you will need some libraries to compile it from source.

When you are using Dev-C++ as an IDE you can just download our DevPak with all necessary dependencies and install it with the Dev-C++ devpack manager. Don't forget to manually set the include path for the SDL header files.

When you are using another IDE that uses MinGW as a compiler (like Code::Blocks or Eclipse with CDT) you can still use our DevPak. Just rename it to a .tar.bz2 archive and open it with an unpacker that is able to handle bzip2 files (like 7Zip, for example) and extract the individual files to a location where your IDE finds them.

When you want to use a different compiler (like Microsoft Visual Studio or Borland C++ Builder) you have to get the libraries from the homepages listed above in the library format for your compiler. When they aren't offered for download in binary form you have to compile the libraries yourself from the sourcecode.

Then you should be able to compile the TMW client.

Personal tools