Compilation issues with rev709-710
Posted: Tue Oct 14, 2014 9:34 am
Hi,
Follow this trick to compile the rev710 under Linux (Debian).
I only have updated the Gcc 4.7.2 to the new one on unstable sources (4.9.1) in case of the problem was with the c++11 directives but it should work with gcc 4.7+
- First, like John said, add in the "Makefile", at the end after "Combat.o" this :
- 2nd : You need to edit the MasterSpawnList.cpp and find this code :
Line 110 :
replace by :
Line 134 :
replace by :
Line 170 :
replace by :
- 3rd, edit MasterSpawnList.h
Line 157-158 should be only :
Do "make" ^^
You could have a warning/notice about Lua :
but not sure, maybe it's only on my server ^^
Enjoy!!
Twuce ^^
Follow this trick to compile the rev710 under Linux (Debian).
I only have updated the Gcc 4.7.2 to the new one on unstable sources (4.9.1) in case of the problem was with the c++11 directives but it should work with gcc 4.7+
- First, like John said, add in the "Makefile", at the end after "Combat.o" this :
Code: Select all
Combat.o \
PatchServer.o \
MasterSpawnList.o
Line 110 :
Code: Select all
npc_list.AddNpc(make_shared<Npc>(npc_spawns[spawn_id], itr.second));
Code: Select all
auto myNpc = make_shared<Npc>(npc_spawns[spawn_id], itr.second);
npc_list.AddNpc(myNpc);
Code: Select all
ppo_list.AddPPO(make_shared<PlayerPlacedObject>(ppo_spawns[itr2.spawn_id], itr.second));
Code: Select all
auto myPPO = make_shared<PlayerPlacedObject>(ppo_spawns[itr2.spawn_id], itr.second);
ppo_list.AddPPO(myPPO);
Code: Select all
mover_list.AddMover(make_shared<Mover>(itr));
Code: Select all
auto myMover = make_shared<Mover>(itr);
mover_list.AddMover(myMover);
Line 157-158 should be only :
Code: Select all
MasterSpawnList();
~MasterSpawnList();
Do "make" ^^
You could have a warning/notice about Lua :
Code: Select all
../Lua/liblua5-2-3.a(loslib.o): dans la fonction « os_tmpname »:
loslib.c:(.text+0x29c): AVERTISSEMENT: the use of `tmpnam' is dangerous, better use `mkstemp'
Enjoy!!
Twuce ^^