Problemă compilare GAME

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Avatar utilizator
luv12345
Nivel 2

Nivel 2
Mesaje: 153
Membru din: 19 Noi 2014, 19:07
Server: Metin2DZ
Regat: Chunjo
Aprecieri: 16  
Mulţumiri: 1  
 Contact:
Medalii

Deci, când încerc să compilez sursa game-ului, primesc asta:
Imagine EDIT: Poate unii nu se uită și pe paginile celelalte, așa că vă spun aici. Am rezolvat chestia din poză, acum primesc asta:
root@Metin2Teste:~ # cd /usr/src/roke/game/src
root@Metin2Teste:/usr/src/roke/game/src # gmake clean
root@Metin2Teste:/usr/src/roke/game/src # gmake
compile BattleArena.cpp
In file included from stdafx.h:39,
from BattleArena.cpp:1:
event.h:10:35: error: boost/intrusive_ptr.hpp: No such file or directory
In file included from BattleArena.cpp:6:
char.h:4:35: error: boost/unordered_map.hpp: No such file or directory
In file included from stdafx.h:39,
from BattleArena.cpp:1:
event.h:37: error: 'boost' has not been declared
event.h:37: error: expected initializer before '<' token
event.h:38: error: typedef 'TEVENTFUNC' is initialized (use __typeof__ instead)
event.h:38: error: 'LPEVENT' was not declared in this scope
event.h:38: error: expected primary-expression before 'long'
event.h:57: error: 'TEVENTFUNC' does not name a type
event.h: In constructor 'event::event()':
event.h:47: error: class 'event' does not have any field named 'func'
event.h: At global scope:
event.h:83: error: 'LPEVENT' does not name a type
event.h:84: warning: 'event_cancel' initialized and declared 'extern'
event.h:84: error: variable or field 'event_cancel' declared void
event.h:84: error: 'LPEVENT' was not declared in this scope
event.h:84: error: expected primary-expression before ')' token
event.h:85: warning: 'event_processing_time' initialized and declared 'extern'
event.h:85: error: 'LPEVENT' was not declared in this scope
event.h:86: warning: 'event_time' initialized and declared 'extern'
event.h:86: error: 'LPEVENT' was not declared in this scope
event.h:87: warning: 'event_reset_time' initialized and declared 'extern'
event.h:87: error: variable or field 'event_reset_time' declared void
event.h:87: error: 'LPEVENT' was not declared in this scope
event.h:87: error: expected primary-expression before 'long'
event.h:91: warning: 'event_info' initialized and declared 'extern'
event.h:91: error: 'LPEVENT' was not declared in this scope
In file included from BattleArena.cpp:3:
BattleArena.h:21: error: 'LPEVENT' does not name a type
In file included from char.h:9,
from BattleArena.cpp:6:
horse_rider.h:88: error: 'LPEVENT' does not name a type
horse_rider.h:89: error: 'LPEVENT' does not name a type
horse_rider.h:91: error: 'LPEVENT' has not been declared
horse_rider.h:92: error: 'LPEVENT' has not been declared
In file included from char.h:15,
from BattleArena.cpp:6:
mining.h:6: error: 'LPEVENT' does not name a type
In file included from BattleArena.cpp:6:
char.h:424: error: 'boost' has not been declared
char.h:424: error: ISO C++ forbids declaration of 'unordered_map' with no type
char.h:424: error: expected ';' before '<' token
char.h:931: error: 'LPEVENT' has not been declared
char.h:979: error: 'LPEVENT' does not name a type
char.h:988: error: 'LPEVENT' was not declared in this scope
char.h:988: error: template argument 2 is invalid
char.h:988: error: template argument 4 is invalid
char.h:1462: error: 'LPEVENT' does not name a type
char.h:1491: error: 'boost' has not been declared
char.h:1491: error: ISO C++ forbids declaration of 'unordered_map' with no type
char.h:1491: error: expected ';' before '<' token
char.h:1742: error: 'LPEVENT' does not name a type
char.h:1743: error: 'LPEVENT' does not name a type
char.h:1744: error: 'LPEVENT' does not name a type
char.h:1745: error: 'LPEVENT' does not name a type
char.h:1746: error: 'LPEVENT' does not name a type
char.h:1747: error: 'LPEVENT' does not name a type
char.h:1748: error: 'LPEVENT' does not name a type
char.h:1749: error: 'LPEVENT' does not name a type
char.h:1750: error: 'LPEVENT' does not name a type
char.h:1751: error: 'LPEVENT' does not name a type
char.h:1752: error: 'LPEVENT' does not name a type
char.h:1757: error: 'LPEVENT' does not name a type
char.h:1759: error: 'LPEVENT' does not name a type
char.h:1760: error: 'LPEVENT' does not name a type
char.h:1761: error: 'LPEVENT' does not name a type
char.h:1762: error: 'LPEVENT' does not name a type
char.h:1763: error: 'LPEVENT' does not name a type
char.h:1770: error: 'LPEVENT' does not name a type
char.h:1776: error: 'LPEVENT' was not declared in this scope
char.h:1776: error: template argument 2 is invalid
char.h:1776: error: template argument 4 is invalid
char.h:1999: error: 'LPEVENT' does not name a type
char.h: In member function 'void CHARACTER::SetPartyRequestEvent(int)':
char.h:931: error: 'm_pkPartyRequestEvent' was not declared in this scope
char.h: In member function 'bool CHARACTER::IsWarping() const':
char.h:1765: error: 'm_pkWarpEvent' was not declared in this scope
In file included from sectree_manager.h:4,
from BattleArena.cpp:7:
sectree.h: At global scope:
sectree.h:166: error: 'LPEVENT' has not been declared
In file included from regen.h:1,
from BattleArena.cpp:8:
dungeon.h:154: error: 'LPEVENT' does not name a type
dungeon.h:156: error: 'LPEVENT' does not name a type
dungeon.h:157: error: 'LPEVENT' does not name a type
dungeon.h:161: error: 'LPEVENT' has not been declared
dungeon.h:163: error: 'LPEVENT' has not been declared
dungeon.h:164: error: 'LPEVENT' has not been declared
In file included from BattleArena.cpp:8:
regen.h:31: error: 'LPEVENT' does not name a type
regen.h: In constructor 'regen::regen()':
regen.h:47: error: type 'event' is not a direct base of 'regen'
In file included from questnpc.h:4,
from questmanager.h:6,
from BattleArena.cpp:9:
questpc.h: At global scope:
questpc.h:107: error: 'LPEVENT' has not been declared
questpc.h:175: error: 'LPEVENT' was not declared in this scope
questpc.h:175: error: template argument 2 is invalid
questpc.h:175: error: template argument 4 is invalid
In file included from BattleArena.cpp:9:
questmanager.h:71: error: 'LPEVENT' has not been declared
questmanager.h:183: error: 'LPEVENT' was not declared in this scope
questmanager.h:183: error: template argument 2 is invalid
questmanager.h:183: error: template argument 4 is invalid
questmanager.h:237: error: 'boost' has not been declared
questmanager.h:237: error: ISO C++ forbids declaration of 'unordered_map' with no type
questmanager.h:237: error: typedef name may not be a nested-name-specifier
questmanager.h:237: error: expected ';' before '<' token
questmanager.h:238: error: 'boost' has not been declared
questmanager.h:238: error: ISO C++ forbids declaration of 'unordered_map' with no type
questmanager.h:238: error: typedef name may not be a nested-name-specifier
questmanager.h:238: error: expected ';' before '<' token
questmanager.h:240: error: 'THashMapQuestName' does not name a type
questmanager.h:241: error: 'THashMapQuestStartScript' does not name a type
BattleArena.cpp: In constructor 'CBattleArena::CBattleArena()':
BattleArena.cpp:15: error: class 'CBattleArena' does not have any field named 'm_pEvent'
BattleArena.cpp: At global scope:
BattleArena.cpp:89: error: 'LPEVENT' was not declared in this scope
BattleArena.cpp:89: error: expected primary-expression before 'long'
BattleArena.cpp:89: error: initializer expression list treated as compound expression
BattleArena.cpp:90: error: expected ',' or ';' before '{' token
gmake: *** [Makefile:132: OBJDIR/BattleArena.o] Error 1
root@Metin2Teste:/usr/src/roke/game/src #
Ultima oară modificat 01 Oct 2016, 18:12 de către luv12345, modificat 1 dată în total.
Avatar utilizator
Taz
Nivel 2

Nivel 2
Mesaje: 158
Membru din: 14 Noi 2015, 14:26
Aprecieri: 13  
Mulţumiri: 61  
Medalii

nu ai tot ce trebuie instalat pentru compilare
Avatar utilizator
luv12345
Nivel 2

Nivel 2
Mesaje: 153
Membru din: 19 Noi 2014, 19:07
Server: Metin2DZ
Regat: Chunjo
Aprecieri: 16  
Mulţumiri: 1  
 Contact:
Medalii

Taz scrie:nu ai tot ce trebuie instalat pentru compilare
Am instalat cam tot ce am găsit la rezolvări pe net. Tot așa face.
Avatar utilizator
stilledanger
Mister Just4Metin

Mister Just4Metin
Mesaje: 993
Membru din: 31 Ian 2014, 22:30
Server: somthegame.com
Aprecieri: 5  
Mulţumiri: 100  
 Contact:
Medalii

Nu ai extern la sursa iti zice clar "g++"

[ Postat de pe Android ] Imagine
Player Unknown tot eu sunt
Fost Super Moderator / Moderator / Trial-Moderator la Just4Metin
Fost dezvoltator la Zearth2 & ThunderWorld2
Afișează semnătura
Avatar utilizator
[Andrew]
Fost Moderator

Fost Moderator
Mesaje: 1174
Membru din: 02 Mar 2015, 19:57
Server: KING2.RO
Regat: Chunjo
Aprecieri: 98  
Mulţumiri: 25  
Discord: Copiază ID
 Contact:
Medalii

"g++" lipsa.
Imagine
Imagine
Afișează semnătura
Avatar utilizator
luv12345
Nivel 2

Nivel 2
Mesaje: 153
Membru din: 19 Noi 2014, 19:07
Server: Metin2DZ
Regat: Chunjo
Aprecieri: 16  
Mulţumiri: 1  
 Contact:
Medalii

Și cum instalez g++?
Avatar utilizator
luv12345
Nivel 2

Nivel 2
Mesaje: 153
Membru din: 19 Noi 2014, 19:07
Server: Metin2DZ
Regat: Chunjo
Aprecieri: 16  
Mulţumiri: 1  
 Contact:
Medalii

UP!
Avatar utilizator
luv12345
Nivel 2

Nivel 2
Mesaje: 153
Membru din: 19 Noi 2014, 19:07
Server: Metin2DZ
Regat: Chunjo
Aprecieri: 16  
Mulţumiri: 1  
 Contact:
Medalii

UP!
Avatar utilizator
Lehel
Veteran

Veteran
Mesaje: 1632
Membru din: 21 Aug 2013, 08:42
Regat: Jinno
Aprecieri: 122  
Mulţumiri: 1212  
Medalii

Scrie asta in putty:
cd /usr/ports/lang/gcc49/ && make install clean
Imagine
Afișează semnătura
Avatar utilizator
luv12345
Nivel 2

Nivel 2
Mesaje: 153
Membru din: 19 Noi 2014, 19:07
Server: Metin2DZ
Regat: Chunjo
Aprecieri: 16  
Mulţumiri: 1  
 Contact:
Medalii

Lehel scrie:Scrie asta in putty:
cd /usr/ports/lang/gcc49/ && make install clean
Am făcut aia deja, îmi apare la fel..
Închis
Răspunsuri
2
Vizualizări
194
Răspunsuri
6
Vizualizări
244
Răspunsuri
2
Vizualizări
214
Răspunsuri
8
Vizualizări
446

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 21 vizitatori