Jump to content

MangosZero dev21 - Easybuild Problem


Xiam

Recommended Posts

Hey,

ich habe ein problem undzwar besitze ich ein Server (Win 2012 R2 mit Plesk).

Nun versuche ich seid Tagen die Dev21 zum laufen zukriegen.

Das problem ist ich habe Visual Studio 2013 installiert sowie Cmake / OpenSSL nur der Builder erkennt nicht das schon Installierte MySQL von Plesk ?

Ich kann es auch schlecht Deinstallieren da dann Plesk nicht mehr richtig läuft.

Zudem auf mein Heimrechner bekomme ich es genau sowenig zumlaufen, ich habe alles installiert (hier natürlich Mysql extra) doch der Builder haut nur folgendes raus.

This script builds the MaNGOS server.
 Options that can be used in order to configure the process:
  General:
   CMAKE_INSTALL_PREFIX    Path where the server should be installed to
   CONF_DIR                Path to the configs, can be absolute or relative.
   DEBUG                   Debug mode (strict compile, all warnings)
   ACE_USE_EXTERNAL        Use external ACE
   BUILD_TOOLS             Build the map/vmap/mmap extractors
   SOAP                    Enable remote access via SOAP
  Scripting engines:
   SCRIPT_LIB_ELUNA        Compile with support for Eluna scripts
   SCRIPT_LIB_SD2          Compile with support for ScriptDev2 scripts
  Modules:
   PLAYERBOTS              Enable Player Bots
 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 details
 For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangosNote:OnUNIXsystems,CONF_DIRisrelativetothebinfolder.

CMake Warning (dev) at cmake/FindGit.cmake:36 (find_program):
 Policy CMP0053 is not set: Simplify variable reference and escape sequence
 evaluation.  Run "cmake --help-policy CMP0053" for policy details.  Use the
 cmake_policy command to set the policy and suppress this warning.

 For input:

   '$ENV{ProgramFiles(x86)}/Git/bin'

 the old evaluation rules produce:

   'C:\Program Files (x86)/Git/bin'

 but the new evaluation rules produce an error:

   Syntax error in cmake code at
     C:/Users/***/Desktop/server-develop21/cmake/FindGit.cmake:40
   when parsing string
     $ENV{ProgramFiles(x86)}/Git/bin
   Invalid character ('(') in a variable name: 'ProgramFiles'

 Using the old result for compatibility since the policy is not set.
Call Stack (most recent call first):
 CMakeLists.txt:85 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:196 (add_subdirectory):
 The source directory

   C:/Users/***/Desktop/server-develop21/dep/CMakeLists.txt

 does not contain a CMakeLists.txt file.


CMake Error at src/CMakeLists.txt:36 (add_subdirectory):
 The source directory

   C:/Users/***/Desktop/server-develop21/src/realmd/CMakeLists.txt

 does not contain a CMakeLists.txt file.


CMake Error at src/modules/CMakeLists.txt:27 (add_subdirectory):
 The source directory

   C:/Users/***/Desktop/server-develop21/src/modules/Eluna/CMakeLists.txt

 does not contain a CMakeLists.txt file.

Gibt es keine Dev21 Version mit normalen .sln datein wie sonst auch ?

Wäre über schnelle hilfe sehr dankbar.

Link to comment
Share on other sites

Hi,

I don't understand any language except English, but I used easybuild earlier today with the dev21 build.

Likely doesn't help you, but there's a new version of easybuild being released very soon.

This said, if easy build is the issue you may simply use CMake to compile it yourself. Here are some (hopefully) easy to follow instructions! :)

Compiling the Mangos Source Code

1. Install OpenSSL using default settings

2. Install CMake using the default settings

3. Open CMake and select Browse Source

4. Navigate to C:/Users/magic/Desktop/Source/server

5. Click OK

6. Select Browse Build

7. Navigate to C:/Users/magic/Desktop/Build

8. Click OK

9. Open Visual Studio 2013 and let it initialise (may take a few mins)

10. Close Visual Basic and go back to CMake

11. Select Configure

12. Choose Visual Studio 12 2013

13. Leave other options as default

14. Select Finish

15. Select Generate

If there are no errors, then Mangos.sln has been built!

16. Open Visual Studio

17. Select File > Open Project

18. Navigate to C:\Users\magic\Desktop\Build and open MaNGOS.sln

19. Select Build > Build Solution

Sit back and watch Visual Studio Compile your code!

Link to comment
Share on other sites

Hi,

I don't understand any language except English, but I used easybuild earlier today with the dev21 build.

Likely doesn't help you, but there's a new version of easybuild being released very soon.

This said, if easy build is the issue you may simply use CMake to compile it yourself. Here are some (hopefully) easy to follow instructions! :)

Compiling the Mangos Source Code

1. Install OpenSSL using default settings

2. Install CMake using the default settings

3. Open CMake and select Browse Source

4. Navigate to C:/Users/magic/Desktop/Source/server

5. Click OK

6. Select Browse Build

7. Navigate to C:/Users/magic/Desktop/Build

8. Click OK

9. Open Visual Studio 2013 and let it initialise (may take a few mins)

10. Close Visual Basic and go back to CMake

11. Select Configure

12. Choose Visual Studio 12 2013

13. Leave other options as default

14. Select Finish

15. Select Generate

If there are no errors, then Mangos.sln has been built!

16. Open Visual Studio

17. Select File > Open Project

18. Navigate to C:\Users\magic\Desktop\Build and open MaNGOS.sln

19. Select Build > Build Solution

Sit back and watch Visual Studio Compile your code!

error.jpg

This error i get with y methode.

error.jpg.64795da355955137e5c84dd9d06761

Link to comment
Share on other sites

Okay i fix the problem (i have downloaded from git (download .zip)

now i have the sln file.

but now when i compile i got this error:

Error 1 error MSB3073: The command "setlocal

"C:\Program Files (x86)\CMake\bin\cmake.exe" -E copy C:/Users/Administrator/Desktop/serverZero_build/src/mangosd/mangosd.conf.dist C:/Users/Administrator/Desktop/serverZero_build/bin/Release/

if %errorlevel% neq 0 goto :cmEnd

:cmEnd

endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone

:cmErrorLevel

exit /b %1

:cmDone

if %errorlevel% neq 0 goto :VCEnd

setlocal

"C:\Program Files (x86)\CMake\bin\cmake.exe" -E copy "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib/opt/libmysql.dll" C:/Users/Administrator/Desktop/serverZero_build/bin/Release/

if %errorlevel% neq 0 goto :cmEnd

:cmEnd

endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone

:cmErrorLevel

exit /b %1

:cmDone

if %errorlevel% neq 0 goto :VCEnd

:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 mangosd

and i dont get the dll files ? libmysql.dll

Link to comment
Share on other sites

[..] beim einrichten bzw. Compilen eines Server auf einen Windows Server 2012 R2 x64 [..]

Grundsätzlich lässt sich MaNGOS auch als 64 bit Architektur kompilieren. Dafür müsstest du allerdings auch sämtliche Dependencies (etc.) als 64 bit bei dir installieren.

Daher empfehle ich erstmal MaNGOS als 32 bit Anwendung zu kompilieren. Und wenn das geklappt hat, kannst du dich anschliessend immernoch mit der 64 bit Variante beschäftigen.

Ausserdem ist es nie verkehrt das ganze erstmal Lokal durchzuspielen, bevor du das ganze auf einem VServer durchführst.

Okay i fix the problem (i have downloaded from git (download .zip)

now i have the sln file. [..]

Du hast das Zip vom Branch release20 herunter geladen, da sind die SLN Files noch dabei. Im Brach develop21 sind sie es nicht mehr.

Eigentlich solltest du mit magic's Anweisungen die Solution Files über CMake generieren können.

Was ich in deinem Screenshot festgestellt habe ist, dass du den Branch nicht rekursiv geklont hast. Sprich es fehlen Abhängigkeiten, die von anderen Repositories geladen werden.

Nutze

git clone https://github.com/mangoszero/server.git --recursive -b develop21

um den Branch develop21 rekursive zu klonen. Anschliessend sollten die im Screenshot gezeigten Fehler nicht mehr auftreten.

Ich habe gesehen, dass in develop21 im Win Verzeichnis eine MaNGOS_EasyBuild.exe liegt. Habe ich selbst noch nie benutzt, aber vielleicht kann diese dir weiterhelfen.

Aber erst würde ich nochmal magic's Ansatz folgen.

Link to comment
Share on other sites

  • 2 weeks later...

Ich habe am anfang dieses Post noch per Zip den Server geladen aber später das mit den Clonen per Git Shell rausgefunden. Sprich das hat mir leider nicht weiter geholfen da ich das schon wusste.

Nun habe ich alles nochmal Installiert CMake , OpenSSL , Visual Studio 2010 Express (Habe aber auch schon andere probiert)

MySQL kann ich nicht Seperat Installieren da es auf meinen vServer schon mit Plesk Intigriert ist.

(Anderer Pfard , habe ich aber auch schon rausgefunden das es unter C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL51 liegt )

Nur kriege ich per EasyBuilder die Fehlermeldung das ich kein VS installiert habe und auch kein MySQL.

Dann habe ich gelesen ich kann die SLN datein per CMake auch herstellen was eig. auch geklappt hat bis auf paar errors

This script builds the MaNGOS server.

Options that can be used in order to configure the process:

General:

CMAKE_INSTALL_PREFIX Path where the server should be installed to

CONF_DIR Path to the configs, can be absolute or relative.

DEBUG Debug mode (strict compile, all warnings)

ACE_USE_EXTERNAL Use external ACE

BUILD_TOOLS Build the map/vmap/mmap extractors

SOAP Enable remote access via SOAP

Scripting engines:

SCRIPT_LIB_ELUNA Compile with support for Eluna scripts

SCRIPT_LIB_SD2 Compile with support for ScriptDev2 scripts

Modules:

PLAYERBOTS Enable Player Bots

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 details

For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos

Note: On UNIX systems, CONF_DIR is relative to the bin folder. Detected 32-bit platform

Could NOT find Git (missing: GIT_EXECUTABLE)

Found OpenSSL library: optimized;C:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win64/lib/VC/libeay32MDd.lib

Found OpenSSL headers: C:/OpenSSL-Win64/include

MaNGOS-Core revision : Git not found

Install server to : C:/Program Files (x86)/MaNGOS

Install configs to : C:/Program Files (x86)/MaNGOS/

Search configs from : binary directory (default)

Support for SOAP : No (default)

Script engine Eluna : Yes (default)

Script engine SD2 : Yes (default)

Enable Player Bots : No

Build tools : Yes (default)

Build in debug-mode : No (default)

Configuring done

WARNING: Target "realmd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "realmd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "realmd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "realmd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "mangosd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "mangosd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "mangosd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "mangosd" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "movemap-generator" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "movemap-generator" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "movemap-generator" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "movemap-generator" requests linking to directory "C:/Program Files (x86)/Parallels/Plesk/Databases/MySQL51/lib". Targets may link only to libraries. CMake is dropping the item.

Generating done

Nun weiß ich nicht ob diese MySQL erros Schuld sind für die Compile Fehler bei VS2010

Hier einmal der Compile Log: MangosZero Error - Pastebin.com mit folgenden Resultat

========== Alles neu erstellen: 22 erfolgreich, Fehler bei 2, 1 übersprungen ==========

Ich weiß ehrlich gesagt nicht mehr weiter.

Ich bin für jede Hilfe Dankbar , vll. kann mir jemmanden per Teamviewer über die Schulter einmal schauen ?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use