Jump to content

Probleme beim compilieren


luziel

Recommended Posts

Hallo,

Ich versuche nun bereits seit zwei Wochen meinen MaNGOS-Server zum laufne zu bringen. Der Server soll in erster Linie dazu dienen meine Linux-Kenntnisse auszubauen und soll folglich nicht über die grenzen meines Heimnetzwerks hinausgehen.

Zu meiner Hardware:

CPU: Intel Core 2

Ram: 2BG

Graka: Keine

HDD: 200 GB

OS: Debian 7 64-Bit

Ich habe es mir keineswegs zum Ziel gesetzt den nächsten großen P-Server zu gründen! Ich will mir lediglich Grundwissen aneignen und später eventuell einen meiner Lieblingsserver als Teammitglied unterstützen, doch will ich nicht komplett als Angänger dastehen, da ich ja sonnst relativ sinnlos wäre.

Bislang habe ich mich an diese Anleitung gehalten: https://github.com/mangoswiki/Wiki/wiki/DebianInstall

Der erste Fehler trat bei Punkt 4 auf:

mangos@svr1:/usr/local/wow/server$ git apply src/bindings/scripts/patches/MaNGOS-*-ScriptDev2.patch

fatal: can't open patch 'src/bindings/scripts/patches/MaNGOS-*-ScriptDev2.patch': Datei oder Verzeichnis nicht gefunden

Das Verzeichnis "src/bindings/scripts/patches" gibt es bei mir nicht, fogich ist bereits dieser Befehl für mich hinfälig, doch da in der nächsten Zeile der Dokumentation steht

"And if this fails, edit the server/src/bindings/CMakeLists.txt manually and find this line

#add_subdirectory(universal)

Un-comment it, and change "universal" to "scripts" so that it looks like this:

add_subdirectory(scripts)

and save the file. CMake will then know to include ScriptDev2. " machte ich mir nichts daraus und setzte die Anleitung einfach fort.

"cmake .. -DCMAKE_INSTALL_PREFIX=/home/mangos/" Verlief Fehlerfrei!

Beim Anschließeden make spuckte er jedoch folgende Fehler aus:

/usr/local/wow/server/src/shared/WorldPacket.h:24:21: fatal error: Opcodes.h: Datei oder Verzeichnis nicht gefunden

compilation terminated.

make[2]: *** [src/bindings/universal/CMakeFiles/mangosscript.dir/ScriptMgr.cpp.o] Fehler 1

make[1]: *** [src/bindings/universal/CMakeFiles/mangosscript.dir/all] Fehler 2

make: *** [all] Fehler 2

Opcodes.h: Datei oder Verzeichnis nicht gefunden... ich habs nachgepüft und auch ich kann die Datei nirgends finden ich bin Ratlos -.-

Ich hoffe jemand von euch kann mir weiterhelfen

Link to comment
Share on other sites

es wäre wichtig zu wissen welchen patch du grade versucht zu compilen zero one two etc ..

aber ich erklär dir mal wie du vorgehst.

als erstes den server clonen danach scriptdev2 in src/bindings clonen am besten mit den namen ScriptDev2 danach gehst du wieder in den server haupt ordner und erstellst einen neuen ordner mkdir build, cd build

danach einfach

cmake .. -DCMAKE_INSTALL_PREFIX=/home/mangos/mangos-server -DINCLUDE_BINDINGS_DIR=ScriptDev2 -DDEBUG=0

und dann make danach halt make install =)

Einen ScriptDev2 patch brauchst du nicht mehr

Link to comment
Share on other sites

okay soweit so gut...

mangos@svr1:/usr/local/wow/server/build$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/wow/server/ -DINCLUDE_BINDINGS_DIR=ScriptDev2 -DDEBUG=0

-- The C compiler identification is GNU 4.7.2

-- The CXX compiler identification is GNU 4.7.2

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

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

TBB_USE_EXTERNAL Use external TBB

USE_STD_MALLOC Use standard malloc instead of TBB

ACE_USE_EXTERNAL Use external ACE

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

-- Detected 64-bit platform.

-- Found Git: /usr/bin/git

-- Using mysql-config: /usr/bin/mysql_config

-- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so

-- Found MySQL headers: /usr/include/mysql

-- Found OpenSSL library: /usr/lib/x86_64-linux-gnu/libssl.so

-- Found OpenSSL headers: /usr/include/openssl

-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7")

-- MaNGOS-Core revision : 56466f1b0e3e093eedc00b869912e15bd64ce1ac

-- Install server to : /usr/local/wow/server

-- Use PCH : No

-- Build in debug-mode : No (default)

-- Configuring done

-- Generating done

CMake Warning:

Manually-specified variables were not used by the project:

INCLUDE_BINDINGS_DIR

-- Build files have been written to: /usr/local/wow/server/build

Er führt grad den make-Befehl aus - ich hoffe ohne Fehler :)

Link to comment
Share on other sites

okay Schritt 5: Extracting Game Assets

https://github.com/mangoswiki/Wiki/wiki/Extracting-Game-Assets

Then compile "ad":

cd ~/server/contrib/extractor

cmake .

make

then copy the binary ad from the current directory to your WoW-Folder:

cp ad /path/to/wow

Was genau ist mit /path/to/wow gemeint? Das Wurzelverzeichnis, meines aktuellen MaNGOS-Servers also /usr/local/wow/server, der WoW Client auf einem Komplett anderen System oder das build-Verzeichnis in /usr/local/wow/server/build/?

Link to comment
Share on other sites

Bei ap und vmap_extractor macht er alles problemlos, jedoch ist bereits bei vmap_assembler der nächste Hase im Pfeffer...

mangos@svr1:/usr/local/wow/server/contrib/vmap_assembler$ make

[ 85%] Built target g3dlite

[ 87%] Building CXX object CMakeFiles/vmap.dir/usr/local/wow/server/src/game/vmap/BIH.cpp.o

In file included from /usr/local/wow/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/config-lite.h:24:0,

from /usr/local/wow/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/Basic_Types.h:46,

from /usr/local/wow/server/contrib/vmap_assembler/../../src/framework/Platform/Define.h:24,

from /usr/local/wow/server/src/game/vmap/BIH.h:26,

from /usr/local/wow/server/src/game/vmap/BIH.cpp:19:

/usr/local/wow/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/config-macros.h:28:26: fatal error: ace/config.h: Datei oder Verzeichnis nicht gefunden

compilation terminated.

make[2]: *** [CMakeFiles/vmap.dir/usr/local/wow/server/src/game/vmap/BIH.cpp.o] Fehler 1

make[1]: *** [CMakeFiles/vmap.dir/all] Fehler 2

make: *** [all] Fehler 2

Link to comment
Share on other sites

In der Datei /usr/local/wow/server/dep/ACE_wrappers/ace/config-macros.h

steht in Zeile 28 folgendes:

28 # include "ace/config.h"

folgende Alternativdaten gäbe es mit einem ähnlichen Namen, falls dieser falsch eingetragen wurde:

/usr/local/wow/server/dep/ACE_wrappers/ace$ ls |grep ace

ace_for_tao.mpc

ace_message_table.bin

ace.mpc

ace.mwc

ace.rc

ace_vc10.sln

ace_wchar.cpp

ace_wchar.h

ace_wchar.inl

Local_Name_Space.cpp

Local_Name_Space.h

Local_Name_Space_T.cpp

Local_Name_Space_T.h

Name_Space.cpp

Name_Space.h

Reactor_Timer_Interface.cpp

Reactor_Timer_Interface.h

Registry_Name_Space.cpp

Registry_Name_Space.h

Remote_Name_Space.cpp

Remote_Name_Space.h

Stack_Trace.cpp

Stack_Trace.h

Trace.cpp

Trace.h

Versioned_Namespace.h

mangos@svr1:/usr/local/wow/server/dep/ACE_wrappers/ace$ ls |grep config.h

config.h.in

config.h.in~

config-hpux-11.00.h

config.h.win

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