MaNGOSR2
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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

+3
dlmas
VENOM
KiriX
7 posters

Go down  Message [Page 1 of 1]

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

KiriX

KiriX
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

http://aetherius.ru

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

VENOM

VENOM

by who then ? Compilind and installing on Linux 512029371

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

KiriX

KiriX
Admin

VENOM wrote:by who then ? Compilind and installing on Linux 512029371
I can. But I dont sure, that it will be correct, easy for understand and max simple =)

http://aetherius.ru

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

KiriX

KiriX
Admin

VENOM wrote:by who then ? Compilind and installing on Linux 512029371
You use windows?
I can try help you with linux. Manual is filled =)

http://aetherius.ru

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

dlmas

dlmas

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



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

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

KiriX

KiriX
Admin

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

http://aetherius.ru

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

dlmas

dlmas

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

На примере
Spoiler:


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

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

Spoiler:

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

Taumer



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 должен быть результатом клонирования всего репозитория, если я не ошибаюсь

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

KiriX

KiriX
Admin

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

http://aetherius.ru

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

dlmas

dlmas

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

Compilation Error

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

KiriX

KiriX
Admin

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

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

http://aetherius.ru

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

rsa

rsa
Admin

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

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

dlmas

dlmas

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

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

rsa

rsa
Admin

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

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

dlmas

dlmas

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

Compilation Error

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

rsa

rsa
Admin

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

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

dlmas

dlmas

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!

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

rsa

rsa
Admin

dlmas wrote:

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

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

dlmas

dlmas

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

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

Compilation Error

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

rsa

rsa
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++

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

xarly



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

thx

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

dlmas

dlmas

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

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

tava



Всем доброго времени суток. Просьба помочь в сложившейся ситуации. При компиляции под 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

Sponsored content



Back to top  Message [Page 1 of 1]

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