MaNGOSR2

MangosR2 is a free, open source MMORPG framework, derived from MaNGOS project


You are not connected. Please login or register

Compilind and installing on Linux

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Compilind and installing on Linux on Fri Jun 22 2012, 05:52

KiriX

avatar
Admin
Based and tested on Debian 6.0.6
All doing in home dir. Using terminal by default.
Make dir for server:
Code:
mkdir server
Go to new folder:
Code:
cd server
Make dir for source:
Code:
mkdir source
Go to source folder:
Code:
cd source
Make dir for patches:
Code:
mkdir patches
Install SVN:
Code:
sudo apt-get install subversion
Checkout YTDB source:
Code:
svn checkout http://svn2.assembla.com/svn/ytdbase/
Install GIT:
Code:
sudo apt-get install git
Checkout MaNGOSR2 source:
Code:
git clone git://github.com/mangosR2/mangos.git
Go to folder were will be SD2:
Code:
cd mangos/src/bindings
Checkout SD2 for MaNGOSR2 source:
Code:
git clone git://github.com/mangosR2/scriptdev2.git ScriptDev2
Install mysql (if need and not intalled yet) and mysql libs which need for compile:
Code:
sudo apt-get install mysql-server
sudo apt-get install libmysql++-dev

We can use two scripts for compiling server. Copy bash script and switch to server dir
Code:
cp ~/server/source/mangos/contrib/server_scripts/compile_r2.sh ~/server
cd ~/server
This script make make file and compile, but RSA recomend use other script - project_setup.sh. Copy it too:
Code:
cp ~/server/source/mangos/project_setup.sh ~/server/source
We can don't copy any scripts, but need commit changes after we setup scripts.

Install requred libs:
Code:
sudo apt-get install cmake  #Cmake
sudo apt-get install gcc          #Compilator
sudo apt-get install g++          #Compilator
sudo apt-get install libace-dev  #ACE lib
sudo apt-get install libssl-dev  #SSL lib
sudo apt-get install libbz2-dev  #requred for mangos3
When setup scripts
Code:
nano compile_r2.sh
Or use GUI editor
Find and configure line cd ~/Mangos-Sources/mangos Change to cd ~/server/source/mangos
Find and configure line -DPREFIX=/home/mangos \ Change to -DPREFIX=~/server/core \
Find and configure line
Code:
        . ~/bin/auto_update.sh
        . ~/bin/world_restart.sh
Change to
Code:
        . ~/server/core/bin/auto_update.sh
        . ~/server/core/bin/world_restart.sh
When run the script
Code:
./compile_r2.sh
If you use project_setup.sh, when go to source dir and setup script
Code:
cd source
nano project_setup.sh
Find line #!/bin/sh Change to #!/bin/bash
Find line PREFIX=${PWD}/bin Change to PREFIX=~/server/core
Find line rm -Rf build && and add above cd mangos &&
Run script:
Code:
./project_setup.sh
Go to build dir:
Code:
cd mangos/build
Compile source:
Code:
make
Install:
Code:
make install

When go to config dir and setup config file:
Code:
cd ~/server/core/etc
mv mangosd.conf.dist mangosd.conf
mv realmd.conf.dist realmd.conf
mv scriptdev2.conf.dist scriptdev2.conf
nano mangosd.conf
nano realmd.conf
nano scriptdev2.conf

When create mysql DB and fill it, also you can use script ~/server/source/mangos/contrib/server_scripts/auto_update.sh Don't forget config it!



Last edited by KiriX on Fri Dec 21 2012, 07:52; edited 1 time in total

View user profile http://aetherius.ru

2 Re: Compilind and installing on Linux on Mon Dec 17 2012, 06:50

by who then ?

View user profile

3 Re: Compilind and installing on Linux on Mon Dec 17 2012, 09:15

KiriX

avatar
Admin
VENOM wrote:by who then ?
I can. But I dont sure, that it will be correct, easy for understand and max simple =)

View user profile http://aetherius.ru

4 Re: Compilind and installing on Linux on Fri Dec 21 2012, 07:54

KiriX

avatar
Admin
VENOM wrote:by who then ?
You use windows?
I can try help you with linux. Manual is filled =)

View user profile http://aetherius.ru

5 Re: Compilind and installing on Linux on Wed Jan 16 2013, 12:33

Не понял, надо запускать оба ?
./compile_r2.sh
./Project_setup.sh
Не разобрался ещо с бантиками!



Last edited by dlmas on Wed Jan 16 2013, 13:47; edited 1 time in total

View user profile

6 Re: Compilind and installing on Linux on Wed Jan 16 2013, 13:46

KiriX

avatar
Admin
Любой по желанию.

View user profile http://aetherius.ru

7 Re: Compilind and installing on Linux on Wed Jan 16 2013, 19:05

При компиле меня чет тревожет строки красного цвета . Это норм или что то пропустил?

На примере
Spoiler:

[ 75%] Building CXX object src/realmd/CMakeFiles/mangos-realmd.dir/RealmList.cpp.o
Linking CXX executable mangos-realmd
[ 75%] Built target mangos-realmd
Scanning dependencies of target game_pch_dephelp
[ 75%] Building CXX object src/game/CMakeFiles/game_pch_dephelp.dir/game_pch_dephelp.cxx.o
Linking CXX static library libgame_pch_dephelp.a
[ 75%] Built target game_pch_dephelp
Scanning dependencies of target pch_Generate_game
[ 75%] Generating pchdef.h
[ 75%] Generating pchdef.h.gch/game_Release.h++
[ 75%] Built target pch_Generate_game
Scanning dependencies of target game


auto_update.sh ни как не хочет у меня работать
Code:
Please, setup directories and files in begin of this script!

есть подозрение что во второй или шестой строке допустил ошибку

Spoiler:

# configuration
home="home/toxic/server" #вторая папка пользователя
mangosConf=$home"/core/etc/mangosd.conf"
scriptConf=$home"/core/etc/scriptdev2.conf"
mangosSource=$home"/source/mangos"
YTDBSource=$home"/source/patches/r63" #качал svn ytdb только папку r63

View user profile

8 Re: Compilind and installing on Linux on Thu Jan 17 2013, 09:13

dlmas wrote:
Linking CXX executable mangos-realmd
Linking CXX static library libgame_pch_dephelp.a
Это нормально

dlmas wrote:auto_update.sh ни как не хочет у меня работать
Code:
Please, setup directories and files in begin of this script!
есть подозрение что во второй или шестой строке допустил ошибку
Есть подозрение, что вы забыли закомментировать/удалить 10 и 11 строки при настройке скрипта

dlmas wrote:
YTDBSource=$home"/source/patches/r63" #качал svn ytdb только папку r63
YTDBSource должен быть результатом клонирования всего репозитория, если я не ошибаюсь

View user profile

9 Re: Compilind and installing on Linux on Thu Jan 17 2013, 13:48

KiriX

avatar
Admin
YTDBSource=$home"/source/patches/r63" должен указывать путь до папки Wotlk из полных сорсов свн репозитория базы YTDB.

View user profile http://aetherius.ru

10 Re: Compilind and installing on Linux on Wed Jan 23 2013, 18:59

Переустановил ось, компилится не хочет.
Code:
Do compile now
nice: make: нет такого файла или каталога

Compilation Error

View user profile

11 Re: Compilind and installing on Linux on Thu Jan 24 2013, 05:20

KiriX

avatar
Admin
dlmas wrote:Переустановил ось, компилится не хочет.
Code:
Do compile now
nice: make: нет такого файла или каталога

Compilation Error
Сразу вспоминается: "Планету Оби Ван потерял. Поможем отыскать его планету?"
Тебе помочь найти каталог, которого скрипт найти не может?

View user profile http://aetherius.ru

12 Re: Compilind and installing on Linux on Thu Jan 24 2013, 07:31

rsa

avatar
Admin
эт чо ж надо сотворить, чтобы nice встал, а make нет?!!

View user profile

13 Re: Compilind and installing on Linux on Thu Jan 24 2013, 10:45

сам не знаю. все делал как в пршлый раз. разве что пршлый раз на виртуалке компилил, а щя на ноут установил дебиан

View user profile

14 Re: Compilind and installing on Linux on Thu Jan 24 2013, 13:57

rsa

avatar
Admin
apt-get install make
и так далее со всеми командами, на отсутствие которых будет ругаться. возможно, полные названия некоторых пакетов придется искать в сети (например если нет 7za то инсталлить надо p7zip).

View user profile

15 Re: Compilind and installing on Linux on Thu Jan 24 2013, 19:29

Do compile now
make: *** Не заданы цели и не найден make-файл. Останов.

Compilation Error

View user profile

16 Re: Compilind and installing on Linux on Fri Jan 25 2013, 12:48

rsa

avatar
Admin
эта ошибка - результат того что cmake не выполнил свою задачу. настоящая ошибка существенно раньше в сообщениях консоли.

View user profile

17 Re: Compilind and installing on Linux on Fri Jan 25 2013, 15:49

Do compile now
Reconfiguration...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected 32-bit platform.
-- Found Git: /usr/bin/git

This script builds the MaNGOS server.
Options that can be used in order to configure the process:
PREFIX: Path where the server should be installed to
PCH: Use precompiled headers
DEBUG: Debug mode
To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
For example: cmake .. -DDEBUG=1 -DPREFIX=/opt/mangos

-- Found ACE library: /usr/lib/libACE.so
-- Found ACE headers: /usr/include
CMake Error at cmake/FindMySQL.cmake:151 (message):
Could not find the MySQL libraries! Please install the
development-libraries and headers.
Call Stack (most recent call first):
CMakeLists.txt:220 (find_package)


-- Configuring incomplete, errors occurred!
make: *** Не заданы цели и не найден make-файл. Останов.

Compilation ERROR!

View user profile

18 Re: Compilind and installing on Linux on Sat Jan 26 2013, 05:35

rsa

avatar
Admin
dlmas wrote:

CMake Error at cmake/FindMySQL.cmake:151 (message):
Could not find the MySQL libraries! Please install the
development-libraries and headers.
все абсолютно ясно английским по белому написано. не поставлены дев-либы от мускуля.

View user profile

19 Re: Compilind and installing on Linux on Sat Jan 26 2013, 10:01

Пакеты устанавливал libmysql++-dev.

Эту ошибку показывает при первом запуске на втором:
Do compile now
make: *** Не заданы цели и не найден make-файл. Останов.

Compilation Error

View user profile

20 Re: Compilind and installing on Linux on Sat Jan 26 2013, 14:33

rsa

avatar
Admin
этот пакет вообще не нужен.
выполните это (полный скрипт):
Code:
#!/bin/bash
sudo apt-get install git
sudo apt-get install subversion
sudo apt-get install mysql.
sudo apt-get install libmysqlclient-dev libmysqlcppconn-dev
sudo apt-get install openssl libssl-dev
sudo apt-get install cmake
sudo apt-get install gcc make binutils g++

View user profile

21 Re: Compilind and installing on Linux on Sat Jan 26 2013, 14:59

Is needed reextract maps vmaps mmaps after "[mr2586] some compilation fixes for extractors" ?

thx

View user profile

22 Re: Compilind and installing on Linux on Wed Jan 30 2013, 21:20

Напишите все пакеты которые нужны для чистой ОС (debian).

View user profile

23 Re: Compilind and installing on Linux on Thu Feb 21 2013, 02:56

Всем доброго времени суток. Просьба помочь в сложившейся ситуации. При компиляции под RH, выходит ошибка и процесс останавливается . Подскажите в какую сторону танцевать с бубном
[ 23%] Building C object dep/StormLib/CMakeFiles/storm.dir/src/libtommath/bn_s_mp_mul_digs.c.o
[ 23%] Building C object dep/StormLib/CMakeFiles/storm.dir/src/libtommath/bn_s_mp_mul_high_digs.c.o
[ 23%] Building C object dep/StormLib/CMakeFiles/storm.dir/src/libtommath/bn_s_mp_sqr.c.o
[ 24%] Building C object dep/StormLib/CMakeFiles/storm.dir/src/libtommath/bn_s_mp_sub.c.o
Linking CXX shared library libstorm.so
[ 24%] Built target storm
Scanning dependencies of target mangosscript_pch_dephelp
[ 24%] Building CXX object src/bindings/ScriptDev2/CMakeFiles/mangosscript_pch_dephelp.dir/mangosscript_pch_dephelp.cxx.o
In file included from /opt/mangosr3/_compl/mangos3/src/game/WorldObjectEvents.h:25,
from /opt/mangosr3/_compl/mangos3/src/game/Object.h:30,
from /opt/mangosr3/_compl/mangos3/src/bindings/ScriptDev2/include/precompiled.h:9,
from /opt/mangosr3/_compl/mangos3/build/src/bindings/ScriptDev2/mangosscript_pch_dephelp.cxx:1:
/opt/mangosr3/_compl/mangos3/src/game/WorldLocation.h:24:25: error: G3D/Vector3.h: Нет такого файла или каталога
In file included from /opt/mangosr3/_compl/mangos3/src/game/Object.h:23,
from /opt/mangosr3/_compl/mangos3/src/bindings/ScriptDev2/include/precompiled.h:9,
from /opt/mangosr3/_compl/mangos3/build/src/bindings/ScriptDev2/mangosscript_pch_dephelp.cxx:1:
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h: In copy constructor ‘BitStream::BitStream(const BitStream&)’:
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h:117: предупреждение: ‘BitStream::_wpos’ будет инициализирован после
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h:116: предупреждение: ‘std::vector<unsigned char, std::allocator<unsigned char> > BitStream::_data’
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h:89: предупреждение: when initialized here
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h: In copy constructor ‘ByteBuffer::ByteBuffer(const ByteBuffer&)’:
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h:851: предупреждение: ‘ByteBuffer::_storage’ будет инициализирован после
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h:849: предупреждение: ‘size_t ByteBuffer::_bitpos’
/opt/mangosr3/_compl/mangos3/src/shared/ByteBuffer.h:144: предупреждение: when initialized here
In file included from /opt/mangosr3/_compl/mangos3/src/game/WorldObjectEvents.h:25,
from /opt/mangosr3/_compl/mangos3/src/game/Object.h:30,
from /opt/mangosr3/_compl/mangos3/src/bindings/ScriptDev2/include/precompiled.h:9,
from /opt/mangosr3/_compl/mangos3/build/src/bindings/ScriptDev2/mangosscript_pch_dephelp.cxx:1:
/opt/mangosr3/_compl/mangos3/src/game/WorldLocation.h: At global scope:
/opt/mangosr3/_compl/mangos3/src/game/WorldLocation.h:26: ошибка: ‘G3D’ has not been declared
компиляция прервана из за ошибок -Wfatal.
make[2]: *** [src/bindings/ScriptDev2/CMakeFiles/mangosscript_pch_dephelp.dir/mangosscript_pch_dephelp.cxx.o] Ошибка 1
make[1]: *** [src/bindings/ScriptDev2/CMakeFiles/mangosscript_pch_dephelp.dir/all] Ошибка 2
make: *** [all] Ошибка 2
[root@localhost build]#

Пытаюсь собрать 4.3.4

View user profile

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum