mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
75 lines
2.9 KiB
Plaintext
75 lines
2.9 KiB
Plaintext
= TrinityCore -- Linux installation =
|
|
Copyright (C) 2008-2010 TrinityCore (http://www.trinitycore.org)
|
|
|
|
=========================================================
|
|
WARNING: THIS DOCUMENTATION IS NOT ALWAYS UP TO DATE.
|
|
FOR MORE UP-TO-DATE INFORMATION, CHECK THE TRINITY WIKI.
|
|
=========================================================
|
|
|
|
CHECK http://www.trinitycore.info/w/Linux_Build_HOWTO FOR FURTHER HELP
|
|
|
|
Installing TrinityCore is fairly simple on a Linux machine, assuming you
|
|
have all required applications
|
|
|
|
The most important ones are:
|
|
|
|
g++
|
|
gcc
|
|
make
|
|
cmake version 2.6.x or greater
|
|
libmysql++-dev
|
|
mercurial (for checking out the core and database)
|
|
openssl
|
|
libssl-dev
|
|
zlib1g-dev
|
|
libtool
|
|
libmysqlclient15-dev
|
|
patch
|
|
build-essential
|
|
mysql-client
|
|
|
|
Most of these are included on common Linux distros, others you may have
|
|
to install by your self. Please check your distro's repos.
|
|
|
|
Make a directory to build in, you can call it anything you want like
|
|
build or bin etc, then go into the directory and cmake and make. E.G.
|
|
you created a dir named build ad want to have your finalcompiled product
|
|
installed in /home/trinity/server, an example sequence of commands can
|
|
be :
|
|
|
|
cmake ../ -DPREFIX=/home/trinity/server
|
|
make
|
|
make install
|
|
|
|
Thats just about all thats needed. You can however tweak more settings
|
|
than where to install using flags built into our cmake files. Just open
|
|
up CMakeLists.txt in the main folder and take a look at some of the
|
|
flags like
|
|
|
|
SERVERS Build worldserver and authserver
|
|
SCRIPTS Build core with scripts included
|
|
TOOLS Build map/vmap extraction/assembler tools
|
|
USE_SCRIPTPCH Use precompiled headers when compiling scripts
|
|
USE_COREPCH Use precompiled headers when compiling servers
|
|
USE_SFMT Use SFMT as random numbergenerator
|
|
WITH_WARNINGS Show all warnings during compile
|
|
WITH_COREDEBUG Include additional debug-code in core
|
|
WITH_SQLDEBUG Output SQL-queries to dedicated logfile
|
|
WITH_SQL Copy SQL files during installation
|
|
PREFIX Set installation directory
|
|
CONF_DIR Set configuration directory
|
|
LIBSDIR Set library directory
|
|
CMAKE_C_FLAGS Set C_FLAGS for compile (advanced users only)
|
|
CMAKE_CXX_FLAGS Set CXX_FLAGS for compile (advanced users only)
|
|
|
|
CMAKE_BUILD_TYPE Set buildtype - the supported modes are :
|
|
Release, MinSizeRel, RelWithDebInfo, Debug
|
|
|
|
Of course, replace the paths in prefix, conf_dir with the directories
|
|
you wish to install TrinityCore to. The datadir is where maps, DBCs, and
|
|
SQLs are stored. The sysconfdir is where configuration files are stored.
|
|
|
|
Once TrinityCore is installed you will need to apply database updates
|
|
where necessary. Furthermore, you must configure your installation by
|
|
editing the config files in the sysconfdir.
|