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

Compiling and installing on Windows

+5
madmax765
Ulduar
rsa
michalpolko
KiriX
9 posters

Go to page : 1, 2  Next

Go down  Message [Page 1 of 2]

16Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 11:49

KiriX

KiriX
Admin

Просто убрал override и поправил abs, не линкуется:
Code:
15>precompiled.obj : error LNK2019: ссылка на неразрешенный внешний символ "public: __cdecl TransportInfo::~TransportInfo(void)" (??1TransportInfo@@QEAA@XZ) в функции "public: __cdecl std::_Pair_base<class ObjectGuid const ,class TransportInfo>::~_Pair_base<class ObjectGuid const ,class TransportInfo>(void)" (??1?$_Pair_base@$$CBVObjectGuid@@VTransportInfo@@@std@@QEAA@XZ)
15>precompiled.obj : error LNK2019: ссылка на неразрешенный внешний символ "public: __cdecl TransportInfo::TransportInfo(class TransportInfo const &)" (??0TransportInfo@@QEAA@AEBV0@@Z) в функции "public: __cdecl std::_Pair_base<class ObjectGuid const ,class TransportInfo>::_Pair_base<class ObjectGuid const ,class TransportInfo>(struct std::_Pair_base<class ObjectGuid const ,class TransportInfo> const &)" (??0?$_Pair_base@$$CBVObjectGuid@@VTransportInfo@@@std@@QEAA@AEBU01@@Z)
15>precompiled.obj : error LNK2001: неразрешенный внешний символ ""public: virtual struct Position __cdecl TransportBase::CalculateGlobalPositionOf(struct Position const &)const " (?CalculateGlobalPositionOf@TransportBase@@UEBA?AUPosition@@AEBU2@@Z)"
А вот линки я никогда не мог понять - не осилю, подскажите... =(

http://aetherius.ru

17Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 12:36

rsa

rsa
Admin

Все-таки заставили меня винду в вмварь загнать :) Проверил компиляцию на VC10. Три проблемы поправил (сейчас скоммичу), проблемы с abs() не нашел - ну нету там использования этого метода вообще. Разбирайтесь сами.
Проблема с instance_dire_maul поправлена в SD2R2 коммитов 100 назад, обновиться надо...

18Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 14:32

KiriX

KiriX
Admin

rsa, я перед каждой попыткой компила делаю:
Code:
git clean -f -x -d
git reset --hard
git pull origin master
Обновился только что до последних версий: MR2_2814 SD2_590
Ни одной ошибки в override действительно больше нет.
Ошибка с abs есть и никуда от неё не деться, изменил на
Code:
uint32 delta = abs(int(m_next->first - m_curr->first));
Дальше уперся в ошибки линковки:
Code:
15>precompiled.obj : error LNK2019: ссылка на неразрешенный внешний символ "public: __cdecl TransportInfo::~TransportInfo(void)" (??1TransportInfo@@QEAA@XZ) в функции "public: __cdecl std::_Pair_base<class ObjectGuid const ,class TransportInfo>::~_Pair_base<class ObjectGuid const ,class TransportInfo>(void)" (??1?$_Pair_base@$$CBVObjectGuid@@VTransportInfo@@@std@@QEAA@XZ)
15>precompiled.obj : error LNK2019: ссылка на неразрешенный внешний символ "public: __cdecl TransportInfo::TransportInfo(class TransportInfo const &)" (??0TransportInfo@@QEAA@AEBV0@@Z) в функции "public: __cdecl std::_Pair_base<class ObjectGuid const ,class TransportInfo>::_Pair_base<class ObjectGuid const ,class TransportInfo>(struct std::_Pair_base<class ObjectGuid const ,class TransportInfo> const &)" (??0?$_Pair_base@$$CBVObjectGuid@@VTransportInfo@@@std@@QEAA@AEBU01@@Z)
15>precompiled.obj : error LNK2001: неразрешенный внешний символ ""public: virtual struct Position __cdecl TransportBase::CalculateGlobalPositionOf(struct Position const &)const " (?CalculateGlobalPositionOf@TransportBase@@UEBA?AUPosition@@AEBU2@@Z)"

http://aetherius.ru

19Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 15:05

Mayss



Я второй системой поставил Debian и на ней собрал, сейчас же все больше и больше на линуксе сидеть начинаю... после того как на винде не собралось, это было последним гвоздем в крышку гроба винды...

20Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 15:14

rsa

rsa
Admin

Хе... Раньше линукс надо было искать чтобы что-то проверить, а сейчас наоборот винду найти - тяжко. В конторе винда сдохла, под рукой сплошные андроиды, я даже на нетбук свой (таскалка для доков-фоток, раньше с нее путтей на сервер ходил, сейчас уже иксами :) уже федору привинтил. Удобнее получается. А винда в виртуалке когда надо :)
PS поправлю и эти проблемы тож. всем спасибо.

21Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 16:34

Ulduar



Простите за глупый вопрос - уже 2 года слышу про override, в некоторых скриптах часто вижу этот метод, а что это такое собственно? За что отвечает этот метод?

22Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 16:39

rsa

rsa
Admin

override - это директива компилятора, сообщающая что этот метод переопределяет базовый. к сожалению, мнение о том что же она должна делать, у всех разное, у микрософта - самое глупое на мой взгляд...

23Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 16:43

Ulduar



Ясно спасибо, нашел так сказать еще одно отличие вашего ядра и SD2, и чистых. В чистых этот метод много где проставлен, у вас- поменьше.

24Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 17:22

rsa

rsa
Admin

Ну, если уж говорить откровенно, то количество этого проставления больше зависит от национальности бранчкипера :) Шму - немец, их национальное стремление к порядку общеизвестно, вот от и старается чтобы все было ровно и параллельно. Я не вижу никакой пользы от этих директив и потому они появляются-пропадают (и глючат) только для совместимости и когда не лень. И в гораздо менее упорядоченном виде :)
Вот если б кто занялся наведением блеска в коде...

25Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun May 19 2013, 18:04

KiriX

KiriX
Admin

Спасибо! Вот теперь скомпилилось без проблем! =)

http://aetherius.ru

26Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Mon May 20 2013, 01:29

Mayss



========== Построение: успешно: 15, с ошибками: 0, без изменений: 0, пропущено: 2 ==========
На Windows 64, спасибо :).

27Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Mon May 20 2013, 18:49

KiriX

KiriX
Admin

Ещё беда в терминале mangosd.exe:
Code:
2013-05-20 22:34:13 World Database total connections: 4
2013-05-20 22:34:13 ERROR: Your OS (Win32) not support set WorldDatabaseConnections > 1! Resetted to 1
При этом:
1) Win 7 x64, сервер скомпилирован в 64 (так и есть, проверено, приложение 64-х разрядное)
2) realmd.exe такой ошибкой не плюётся.

http://aetherius.ru

28Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Tue May 21 2013, 03:17

rsa

rsa
Admin

1. Винда (любая) не поддерживает количество соединений > 1. То есть это сделать можно, но очередь сообщений одна - соединения работают последовательно. В том месте кода, по моему, отличить 32 от 64 не получится, потому и сообщение универсальное. Это не ошибка, так, предупреждение.
2. realmd вообще не умеет более одного соединения открывать :)

29Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Tue May 21 2013, 07:32

KiriX

KiriX
Admin

rsa wrote:1. Винда (любая) не поддерживает количество соединений > 1. То есть это сделать можно, но очередь сообщений одна - соединения работают последовательно. В том месте кода, по моему, отличить 32 от 64 не получится, потому и сообщение универсальное. Это не ошибка, так, предупреждение.
2. realmd вообще не умеет более одного соединения открывать :)
Понятно, спасибо =) Просто странно, что серевер даёт такое предупреждение, а рилм нет =) Поправлю конфиг...
И ещё вопрос, при компиляции на винде компилятся встроенные исходники ACE 5.8.3, имеет ли смысл заморачиваться установкой внешней библиотеки ACE 6.1.3 к примеру? Или толку нет?

http://aetherius.ru

30Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Tue May 21 2013, 09:24

rsa

rsa
Admin

сообщение есть там куда я его вписал :) а я лентяй.
смысл менять ACE - имеет. если планируете более 200 игроков запускать. только тяжко это...

31Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Tue May 21 2013, 12:22

KiriX

KiriX
Admin

rsa wrote:сообщение есть там куда я его вписал :) а я лентяй.
смысл менять ACE - имеет. если планируете более 200 игроков запускать. только тяжко это...
rsa, я сейчас только что выкачал исходники ACE (6.1.9) и заменил ими папку \dep\ACE_wrappers
Перенёс из старых исходников файлик CMakeLists и \dep\ACE_wrappers\ace\config.h.win, поправил в CMakeLists пару строк, заменив ace_vc8.sln на ace_vc9.sln.
Запустил компиляцию. Всё скомпилилось без проблем, при запуске сервер казал мне
Code:
2013-05-21 16:15:34 Using ACE: 6.1.9
Вроде нормально ведь всё, да?
Так почему бы тогда не обновить сами исходники ACE в mr2?

http://aetherius.ru

32Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Wed May 22 2013, 12:59

rsa

rsa
Admin

ну так обновите. мне как-то пофигу что там в винде творится, если вы этого еще не заметили :)

33Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Wed May 22 2013, 13:34

KiriX

KiriX
Admin

rsa wrote:ну так обновите. мне как-то пофигу что там в винде творится, если вы этого еще не заметили :)
Ну там объём большой... Может вы сами, что лишнее - удалите, может там и не всё нужно. А какие файлы для компила нужны и что поправить я уже написал =)
Дел 5 минут =)

http://aetherius.ru

34Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sun Nov 24 2013, 18:50

madmax765

madmax765

Hi. Hope someone can help me.. trying to compile this... i run cmake and it says this

Code:
Detected 64-bit platform.
Found Visual Studion 2010

This script builds the MaNGOS server.
  Options that can be used in order to configure the process:
    CMAKE_INSTALL_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 -DCMAKE_INSTALL_PREFIX=/opt/mangos


MaNGOS-Core revision  : 1bcd9527e6590213cc6b96faf14fe464f0626738

Install server to     : C:/Program Files/MaNGOS

Use PCH               : Yes
Build in debug-mode   : No  (default)

Configuring done
Generating done
then i go to compile it i allways get 3 errors
========== Build: 12 succeeded, 3 failed, 0 up-to-date, 2 skipped ==========

13>Time Elapsed 00:00:02.64
12>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmemory(212): error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm152' or greater
12>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xmemory(212): fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
12>
12>Build FAILED.

14>LINK : fatal error LNK1181: cannot open input file '..\game\Release\game.lib'
14>
14>Build FAILED.

15>d:\games cores\wow\mangos r2\mangos\src\game\WorldLocation.h(146): warning C4172: returning address of local variable or temporary
15>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(206): error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm114' or greater
15>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(206): fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
15>
15>Build FAILED.

running win 7 64 bit

and one big question what is the difference between MaNGOs and MaNGOSR2 ??? I never heard of r2 before

35Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Mon Dec 02 2013, 15:16

rsa

rsa
Admin

1. problem in your compiler installaton. R2 always tested on true compilation in VC10.
2. differences - alot. for example, in R2 works dungeon/raid finder.

36Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Tue Dec 03 2013, 15:12

madmax765

madmax765

Wish i could under stand what your saying rsa Wish there was a easyer way to compile this.. reg MaNGOS was easy.. this R2 version not ...i have both vc2010 and vc2012

37Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Tue Dec 03 2013, 15:53

rsa

rsa
Admin

try install clean WinXP + VC10 in VMWare box, for example (as i make).

38Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Fri Sep 26 2014, 12:56

DINOZAVR



Welcome. some days I'm struggling with an error when you try to compile the kernel r2
-win7 (64)
-vs10 (Professional)
-git (Git-1.9.4-preview)
-cmake (2.8.9)

when you click on project_setup.bat
I choose - 10 studio
and click on the 8 - Create Project
Code:

eventually gives me an error
##########################
# Welcome to R2 compiler #
##########################

+++++++++++++++++++++ Current CMake configuration +++++++++++++++++++++
cmake -G "Visual Studio 10" -DPCH = 1 -DCMAKE_CXX_COMPILER = "C: / Program Files (x86)
/ Microsoft Visual Studio 10.0 / VC / bin / cl.exe "-DCMAKE_CXX_FLAGS =" / DWIN32 / D_WINDO
WS / W3 / Zm1000 / EHsc / GR "-DCMAKE_C_FLAGS =" / DWIN32 / D_WINDOWS / W3 / Zm1000 / EHsc
/ GR "-DCMAKE_CXX_COMPILER =" C: / Program Files (x86) / Microsoft Visual Studio 10.0 / V
C / bin / cl.exe "-DCMAKE_INSTALL_PREFIX =" C: \\ MaNGOS "-DUSE_FASTMM_MALLOC =" 1 "-DUSE_
STD_MALLOC = "0" -DUSE_TBB_MALLOC = "0" ..

+++++++++++++++++++++ Current compiler configuration +++++++++++++++++++++
MSBuild INSTALL.vcxproj / m: 2 / p: Configuration = Release; Platform = Win32


0 - Exit R2 compiler

1 - Change compiler [Visual studio 10]
2 - Change build platform [Win32]
3 - Change install path ["C: \\ MaNGOS"]
4 - Change CPU core (s) number [2]

5 - Change VS Path [C: / Program Files (x86)]

8 - Create Project
9 - Start compile

Select a number: 8
- Check for working C compiler using: Visual Studio 10
- Check for working C compiler using: Visual Studio 10 - works
- Detecting C compiler ABI info
- Detecting C compiler ABI info - done
- Check for working CXX compiler using: Visual Studio 10
- Check for working CXX compiler using: Visual Studio 10 - works
- Detecting CXX compiler ABI info
- Detecting CXX compiler ABI info - done

This script builds the MangosR2 server.
   Options that can be used in order to configure the process:
     CMAKE_INSTALL_PREFIX Path where the server should be installed to
     PCH Use precompiled headers
     DEBUG Debug mode
     INCLUDE_BINDINGS_DIR Include a script library in src / bindings / with the
                             defined name. the name must corespond to the name of

                             the folder and the folder must contain a valid
                             CMakeLists.txt
     TBB_USE_EXTERNAL Use external TBB
     USE_STD_MALLOC Use standard malloc (default for * NIX)
     USE_TBB_MALLOC Use TBB malloc (not recommended)
     USE_FASTMM_MALLOC Use included FastMM malloc (default for win *)
     ACE_USE_EXTERNAL Use external ACE (default. Usage included ACE not re
commended, possible only for win *)

   To set an option simply type -D <OPTION> = <VALUE> after 'cmake <srcs>'.
   Also, you can specify the generator with -G. see 'cmake --help' for more detai
ls
   For example: cmake .. -DDEBUG = 1 -DCMAKE_INSTALL_PREFIX = / opt / mangos

- Detected 32-bit platform.
- Found Git: C: / Program Files (x86) /Git/bin/git.exe
- Found Visual Studion 2010

This script builds the MaNGOS server.
   Options that can be used in order to configure the process:
     CMAKE_INSTALL_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 -DCMAKE_INSTALL_PREFIX = / opt / mangos

CMake Error at CMakeLists.txt: 204 (message):
   This project requires ACE installed when ACE_USE_EXTERNAL is set. Please
   download the ACE Micro Release Kit from http://download.dre.vanderbilt.edu/
   and install it. If this script did not find ACE and it was correctly
   installed please set ACE_ROOT to the correct path.


- Configuring incomplete, errors occurred!
To continue, press any key. . .  
I understand he does not see the ACE but it is compiled and stored in the dep \ ACE_wrappers \ lib
ask for help in the not so easy situation for me
..................................................................................................................................................................
Здравствуйте. уже несколько дней я борюсь с ошибкой при попытке скомпилировать ядро r2
-win7(64)
-vs10(Professional)
-git(Git-1.9.4-preview)
-cmake(2.8.9)

при нажатии на project_setup.bat
я выбираю - 10 студию
и нажимаю на 8 - Create Project

в итоге мне выдает ошибку
Code:

##########################
# Welcome to R2 compiler #
##########################

+++++++++++++++++++++ Current CMake configuration +++++++++++++++++++++
cmake -G "Visual Studio 10" -DPCH=1 -DCMAKE_CXX_COMPILER="C:/Program Files (x86)
/Microsoft Visual Studio 10.0/VC/bin/cl.exe" -DCMAKE_CXX_FLAGS="/DWIN32 /D_WINDO
WS /W3 /Zm1000 /EHsc /GR" -DCMAKE_C_FLAGS="/DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc
/GR" -DCMAKE_CXX_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio 10.0/V
C/bin/cl.exe" -DCMAKE_INSTALL_PREFIX="C:\\MaNGOS" -DUSE_FASTMM_MALLOC="1" -DUSE_
STD_MALLOC="0" -DUSE_TBB_MALLOC="0" ..

+++++++++++++++++++++ Current compiler configuration +++++++++++++++++++++
MSBuild INSTALL.vcxproj /m:2 /p:Configuration=Release;Platform=Win32


0 - Exit R2 compiler

1 - Change compiler            [Visual studio 10]
2 - Change build platform      [Win32]
3 - Change install path        ["C:\\MaNGOS"]
4 - Change CPU core(s) number  [2]

5 - Change VS Path             [C:/Program Files (x86)]

8 - Create Project
9 - Start compile

Select a number: 8
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done

This script builds the MangosR2 server.
 Options that can be used in order to configure the process:
   CMAKE_INSTALL_PREFIX    Path where the server should be installed to
   PCH                     Use precompiled headers
   DEBUG                   Debug mode
   INCLUDE_BINDINGS_DIR    Include a script library in src/bindings/ with the
                           defined name. the name must corespond to the name of

                           the folder and the folder must contain a valid
                           CMakeLists.txt
   TBB_USE_EXTERNAL        Use external TBB
   USE_STD_MALLOC          Use standard malloc (default for *NIX)
   USE_TBB_MALLOC          Use TBB malloc (not recommended)
   USE_FASTMM_MALLOC       Use included FastMM malloc (default for win*)
   ACE_USE_EXTERNAL        Use external ACE (default. usage included ACE not re
commended, possible only for win*)

 To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
 Also, you can specify the generator with -G. see 'cmake --help' for more detai
ls
 For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos

-- Detected 32-bit platform.
-- Found Git: C:/Program Files (x86)/Git/bin/git.exe
-- Found Visual Studion 2010

This script builds the MaNGOS server.
 Options that can be used in order to configure the process:
   CMAKE_INSTALL_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 -DCMAKE_INSTALL_PREFIX=/opt/mangos

CMake Error at CMakeLists.txt:204 (message):
 This project requires ACE installed when ACE_USE_EXTERNAL is set.  Please
 download the ACE Micro Release Kit from http://download.dre.vanderbilt.edu/
 and install it.  If this script didn't find ACE and it was correctly
 installed please set ACE_ROOT to the correct path.


-- Configuring incomplete, errors occurred!
Для продолжения нажмите любую клавишу . . .

я так понял он не видит ACE но он скомпилирован и находится в dep\ACE_wrappers\lib
прошу помощи в столь не легкой для меня ситуации

39Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Tue Dec 09 2014, 06:37

reaper89



Люди добрые помогите. не как не могу понять.
This project requires ACE installed when ACE_USE_EXTERNAL is set. Please download the ACE Micro Release Kit from http://download.dre.vanderbilt.edu/ and install it. If this script didn't find ACE and it was correctly installed please set ACE_ROOT to the correct path."
отключаю ACE в */CMakeLists.txt создание проекта нормально но при компиляции ошибки.
VC10(про)
git и cmart в path закидывал.
качал так git clone --recursive git://github.com/mangosR2/mangos.git

40Compiling and installing on Windows - Page 2 Empty Re: Compiling and installing on Windows Sat Dec 13 2014, 11:09

Mayss



Нет библиотеки ACE, помнится я тоже с этим воевал, забыл уже как исправлял, в данный момент собираю 4.3.4 для скриптования instance в свободное время, и тоже имею такую проблему... вспоминаю как решал проблему...

Если есть у кого идеи, прошу поделится, т.к не мог долгое время заниматься серверами, и тут надумал, но не помню...

Sponsored content



Back to top  Message [Page 1 of 2]

Go to page : 1, 2  Next

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