[HowTo]Compile the source

08/08/2015 16:10 Mr. 'Avenue™#31
Quote:
Originally Posted by <lord smu> View Post
Warum sollte die Makefile unter /game liegen?
Liegt wohl eher daran das die falsche gcc version installiert ist.
Ich sagte nicht, dass sie unter /game liegt.
Ich wies ihn nur darauf hin, dass sie ebend nicht da liegt, sondern unter /game/src & er die Meldung erhält, weil er gmake im falschen Verzeichnis ausführt. :o

Lesen bildet..
[Only registered and activated users can see links. Click Here To Register...]
08/08/2015 17:30 .Onlyx3#32
Quote:
Originally Posted by Mr. 'Avenue™ View Post
Ich sagte nicht, dass sie unter /game liegt.
Ich wies ihn nur darauf hin, dass sie ebend nicht da liegt, sondern unter /game/src & er die Meldung erhält, weil er gmake im falschen Verzeichnis ausführt. :o

Lesen bildet..
[Only registered and activated users can see links. Click Here To Register...]
PHP Code:
--------------------------------------
Full Build Start
--------------------------------------
gmake -C libserverkey dep
gmake
[1]: Entering directory '/root/Workspace/Server/libserverkey'
touch Depend
g
++  -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -MM *.cpp Depend
gmake
[1]: Leaving directory '/root/Workspace/Server/libserverkey'
gmake -C libserverkey clean
gmake
[1]: Entering directory '/root/Workspace/Server/libserverkey'
rm -*.o
rm 
-./libserverkey.a
gmake
[1]: Leaving directory '/root/Workspace/Server/libserverkey'
gmake -C libserverkey
gmake
[1]: Entering directory '/root/Workspace/Server/libserverkey'
gmake ./libserverkey.a
gmake
[2]: Entering directory '/root/Workspace/Server/libserverkey'
g++  -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c base64_ssl.cpp
g
++  -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c RSACrypto.cpp
ar cru 
./libserverkey.a base64_ssl.o RSACrypto.o
ranlib 
./libserverkey.a
chmod 700 
./libserverkey.a
gmake
[2]: Leaving directory '/root/Workspace/Server/libserverkey'
gmake[1]: Leaving directory '/root/Workspace/Server/libserverkey'
gmake -C liblua clean
gmake
[1]: Entering directory '/root/Workspace/Server/liblua'
cd include; gmake clean
gmake
[2]: Entering directory '/root/Workspace/Server/liblua/include'
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/root/Workspace/Server/liblua/include'
cd srcgmake clean
gmake
[2]: Entering directory '/root/Workspace/Server/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.../lib/liblua.a
gmake
[2]: Leaving directory '/root/Workspace/Server/liblua/src'
cd src/libgmake clean
gmake
[2]: Entering directory '/root/Workspace/Server/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.../../lib/liblualib.a
gmake
[2]: Leaving directory '/root/Workspace/Server/liblua/src/lib'
gmake[1]: Leaving directory '/root/Workspace/Server/liblua'
gmake -C liblua
gmake
[1]: Entering directory '/root/Workspace/Server/liblua'
cd include; gmake all
gmake
[2]: Entering directory '/root/Workspace/Server/liblua/include'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/root/Workspace/Server/liblua/include'
cd srcgmake all
gmake
[2]: Entering directory '/root/Workspace/Server/liblua/src'
gcc49 -Ofast -fomit-frame-pointer --march=i686 -msse4 -mssse3 -Wall -I../include      --o lapi.o lapi.c
gmake
[2]: gcc49Command not found
<builtin>: recipe for target 'lapi.o' failed
gmake
[2]: *** [lapi.oError 127
gmake
[2]: Leaving directory '/root/Workspace/Server/liblua/src'
Makefile:11recipe for target 'all' failed
gmake
[1]: *** [allError 2
gmake
[1]: Leaving directory '/root/Workspace/Server/liblua'
Makefile:60recipe for target 'all' failed
gmake
: *** [allError 2
root
@test:~/Workspace/Server # gcc -v
Using built-in specs.
Targeti386-undermydesk-freebsd
Configured with
FreeBSD/i386 system compiler
Thread model
posix
gcc version 4.2.1 20070831 patched 
[FreeBSD]
root@test:~/Workspace/Server # cd game
root@test:~/Workspace/Server/game # cd src
root@test:~/Workspace/Server/game/src # gmake clean dep default -j4
makedepend -f Depend  -I../../../Extern/include/boost -I../../../Extern/include/devil -I../../../Extern/include/mysql -I../../../Extern/include/hackshield -I../../../Extern/include/xtrap -I../../../Extern/include -I../../liblua/include -I../../libserverkey -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -pOBJDIRBattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp buff_on_attributes.cpp check_server.cpp dragon_soul_table.cpp DragonSoul.cpp group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp minilzo.c main.cpp test.cpp 2> /dev/null Depend
compile BattleArena
.cpp
compile FSM
.cpp
compile MarkConvert
.cpp
In file included from BattleArena
.cpp:6:
char.h:4:25errorunordered_mapNo such file or directory
compile MarkImage
.cpp
In file included from char_manager
.h:11,
                 
from BattleArena.cpp:5:
vid.h:60errorspecialization of 'template<class T> struct hash' in different namespace
../../
common/stl.h:45error:   from definition of 'template<class T> struct hash'
vid.h:62errordefinition of 'size_t hash<VID>::operator()(const VID&) const' is not in namespace enclosing 'hash<VID>'
vid.hIn member function 'size_t hash<VID>::operator()(const VID&) const':
vid.h:64errorinvalid use of incomplete type 'struct hash<unsigned int>'
../../common/stl.h:45errordeclaration of 'struct hash<unsigned int>'
In file included from BattleArena.cpp:6:
char.hAt global scope:
char.h:460errorISO C++ forbids declaration of 'unordered_map' with no type
char
.h:460errorinvalid use of '::'
char.h:460errorexpected ';' before '<' token
char
.h:1474errorISO C++ forbids declaration of 'unordered_map' with no type
char
.h:1474errorinvalid use of '::'
char.h:1474errorexpected ';' before '<' token
compile MarkManager
.cpp
In file included from BattleArena
.cpp:9:
questmanager.h:241errorISO C++ forbids declaration of 'unordered_map' with no type
questmanager
.h:241errortypedef name may not be a nested-name-specifier
questmanager
.h:241errorexpected ';' before '<' token
questmanager
.h:242errorISO C++ forbids declaration of 'unordered_map' with no type
questmanager
.h:242errortypedef name may not be a nested-name-specifier
questmanager
.h:242errorexpected ';' before '<' token
questmanager
.h:244error'THashMapQuestName' does not name a type
questmanager
.h:245error'THashMapQuestStartScript' does not name a type
compile OXEvent
.cpp
Makefile
:119recipe for target 'OBJDIR/BattleArena.o' failed
gmake
: *** [OBJDIR/BattleArena.oError 1
gmake
: *** Waiting for unfinished jobs....
In file included from OXEvent.cpp:4:
questmanager.h:4:25errorunordered_mapNo such file or directory
In file included from OXEvent
.cpp:4:
questmanager.h:241errorISO C++ forbids declaration of 'unordered_map' with no type
questmanager
.h:241errortypedef name may not be a nested-name-specifier
questmanager
.h:241errorexpected ';' before '<' token
questmanager
.h:242errorISO C++ forbids declaration of 'unordered_map' with no type
questmanager
.h:242errortypedef name may not be a nested-name-specifier
questmanager
.h:242errorexpected ';' before '<' token
questmanager
.h:244error'THashMapQuestName' does not name a type
questmanager
.h:245error'THashMapQuestStartScript' does not name a type
In file included from char
.h:11,
                 
from OXEvent.cpp:9:
vid.h:60errorspecialization of 'template<class T> struct hash' in different namespace
../../
common/stl.h:45error:   from definition of 'template<class T> struct hash'
vid.h:62errordefinition of 'size_t hash<VID>::operator()(const VID&) const' is not in namespace enclosing 'hash<VID>'
vid.hIn member function 'size_t hash<VID>::operator()(const VID&) const':
vid.h:64errorinvalid use of incomplete type 'struct hash<unsigned int>'
../../common/stl.h:45errordeclaration of 'struct hash<unsigned int>'
In file included from OXEvent.cpp:9:
char.hAt global scope:
char.h:460errorISO C++ forbids declaration of 'unordered_map' with no type
char
.h:460errorinvalid use of '::'
char.h:460errorexpected ';' before '<' token
char
.h:1474errorISO C++ forbids declaration of 'unordered_map' with no type
char
.h:1474errorinvalid use of '::'
char.h:1474errorexpected ';' before '<' token
../../../Extern/include/cryptopp/cryptlib.hIn member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]':
../../../
Extern/include/cryptopp/cryptlib.h:277:   instantiated from here
../../../Extern/include/cryptopp/cryptlib.h:264warningdereferencing type-punned pointer will break strict-aliasing rules
../../../Extern/include/cryptopp/cryptlib.hIn member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]':
../../../
Extern/include/cryptopp/cryptlib.h:283:   instantiated from here
../../../Extern/include/cryptopp/cryptlib.h:264warningdereferencing type-punned pointer will break strict-aliasing rules
Makefile
:119recipe for target 'OBJDIR/OXEvent.o' failed
gmake
: *** [OBJDIR/OXEvent.oError 1
root
@test:~/Workspace/Server/game/src 
08/10/2015 10:29 Nectix#33
[Only registered and activated users can see links. Click Here To Register...]

#closed