Jump to content

Problem with compile game


Recommended Posts

Hi !

When I try to compile the game it give me this errors:

root@lonekek-dev:/usr/src/metin2source/game/src # gmake -j20
compile acce.cpp
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile arena.cpp
char.cpp:7474:124: warning: trigraph ??) ignored, use -trigraphs to enable
char.cpp:7474:248: warning: trigraph ??) ignored, use -trigraphs to enable
char.cpp:7474:278: warning: trigraph ??) ignored, use -trigraphs to enable
compile char_cards.cpp
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)':
acce.cpp:87: warning: unused variable 'count'
compile char_skill.cpp
compile char_state.cpp
acce.cpp: In function 'bool Acce_InformationInitialize()':
acce.cpp:943: warning: comparison between signed and unsigned integer expressions
compile PetSystem.cpp
compile cmd.cpp
compile cmd_emotion.cpp
char.cpp: In member function 'void CHARACTER::CostumeBonusTransfer(DWORD, DWORD)':
char.cpp:2844: warning: suggest parentheses around && within ||
char.cpp:2855: warning: suggest parentheses around && within ||
compile cmd_general.cpp
compile cmd_gm.cpp
char_cards.cpp: In member function 'void CHARACTER::Cards_pullout()':
char_cards.cpp:76: warning: comparison between signed and unsigned integer expressions
char_cards.cpp: In member function 'void CHARACTER::CardsAccept(DWORD)':
char_cards.cpp:171: warning: comparison between signed and unsigned integer expressions
char_cards.cpp:178: warning: comparison between signed and unsigned integer expressions
compile cmd_oxevent.cpp
compile config.cpp
cmd_gm.cpp:2154:9: warning: multi-character character constant
compile constants.cpp
compile crc32.cpp
compile cube.cpp
compile db.cpp
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5468: warning: unused variable 'wCell'
char_item.cpp:5469: warning: unused variable 'window_type'
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
compile desc.cpp
compile desc_client.cpp
compile desc_manager.cpp
compile desc_p2p.cpp
compile dev_log.cpp
/usr/local/include/boost/functional/hash/extensions.hpp: In member function 'size_t boost::hash<T>::operator()(const T&) const [with T = VID]':
/usr/local/include/boost/unordered/detail/buckets.hpp:599:   instantiated from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>, T = VID, SizeT = unsigned int]'
/usr/local/include/boost/unordered/detail/table.hpp:758:   instantiated from 'size_t boost::unordered::detail::table<Types>::hash(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
/usr/local/include/boost/unordered/detail/table.hpp:784:   instantiated from 'boost::unordered::iterator_detail::iterator<typename Types::node> boost::unordered::detail::table<Types>::find_node(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
/usr/local/include/boost/unordered/unordered_map.hpp:1212:   instantiated from 'typename boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const K&) [with K = VID, T = unsigned int, H = boost::hash<VID>, P = std::equal_to<VID>, A = std::allocator<std::pair<const VID, unsigned int> >]'
char_skill.cpp:3620:   instantiated from here
/usr/local/include/boost/functional/hash/extensions.hpp:262: error: no matching function for call to 'hash_value(const VID&)'
Makefile:129: recipe for target 'OBJDIR/char_skill.o' failed
gmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
db.cpp: In member function 'void DBManager::Query(const char*, ...)':
db.cpp:93: warning: comparison between signed and unsigned integer expressions
db.cpp: In member function 'SQLMsg* DBManager::DirectQuery(const char*, ...)':
db.cpp:105: warning: comparison between signed and unsigned integer expressions
cmd_general.cpp: In function 'void do_cards(CHARACTER*, const char*, int, int)':
cmd_general.cpp:2503: warning: 'safemode' may be used uninitialized in this function
cmd_general.cpp:2517: warning: 'destroy_index' may be used uninitialized in this function
cmd_general.cpp:2525: warning: 'accpet_index' may be used uninitialized in this function
cmd_general.cpp:2533: warning: 'restore_index' may be used uninitialized in this function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6626: warning: 'pBuff' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_costume_bonus_transfer(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:2856: warning: 'cell2' may be used uninitialized in this function
root@lonekek-dev:/usr/src/metin2source/game/src #

 

 

What should I do ? I'm beginner. Thank you !
 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

13 hours ago, Croparox said:

 

root@lonekek-dev:/usr/src/metin2source/game/src # gmake -j20
compile acce.cpp
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile arena.cpp
char.cpp:7474:124: warning: trigraph ??) ignored, use -trigraphs to enable
char.cpp:7474:248: warning: trigraph ??) ignored, use -trigraphs to enable
char.cpp:7474:278: warning: trigraph ??) ignored, use -trigraphs to enable
compile char_cards.cpp
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)':
acce.cpp:87: warning: unused variable 'count'
compile char_skill.cpp
compile char_state.cpp
acce.cpp: In function 'bool Acce_InformationInitialize()':
acce.cpp:943: warning: comparison between signed and unsigned integer expressions
compile PetSystem.cpp
compile cmd.cpp
compile cmd_emotion.cpp
char.cpp: In member function 'void CHARACTER::CostumeBonusTransfer(DWORD, DWORD)':
char.cpp:2844: warning: suggest parentheses around && within ||
char.cpp:2855: warning: suggest parentheses around && within ||
compile cmd_general.cpp
compile cmd_gm.cpp
char_cards.cpp: In member function 'void CHARACTER::Cards_pullout()':
char_cards.cpp:76: warning: comparison between signed and unsigned integer expressions
char_cards.cpp: In member function 'void CHARACTER::CardsAccept(DWORD)':
char_cards.cpp:171: warning: comparison between signed and unsigned integer expressions
char_cards.cpp:178: warning: comparison between signed and unsigned integer expressions
compile cmd_oxevent.cpp
compile config.cpp
cmd_gm.cpp:2154:9: warning: multi-character character constant
compile constants.cpp
compile crc32.cpp
compile cube.cpp
compile db.cpp
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5468: warning: unused variable 'wCell'
char_item.cpp:5469: warning: unused variable 'window_type'
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
compile desc.cpp
compile desc_client.cpp
compile desc_manager.cpp
compile desc_p2p.cpp
compile dev_log.cpp
/usr/local/include/boost/functional/hash/extensions.hpp: In member function 'size_t boost::hash<T>::operator()(const T&) const [with T = VID]':
/usr/local/include/boost/unordered/detail/buckets.hpp:599:   instantiated from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>, T = VID, SizeT = unsigned int]'
/usr/local/include/boost/unordered/detail/table.hpp:758:   instantiated from 'size_t boost::unordered::detail::table<Types>::hash(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
/usr/local/include/boost/unordered/detail/table.hpp:784:   instantiated from 'boost::unordered::iterator_detail::iterator<typename Types::node> boost::unordered::detail::table<Types>::find_node(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
/usr/local/include/boost/unordered/unordered_map.hpp:1212:   instantiated from 'typename boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const K&) [with K = VID, T = unsigned int, H = boost::hash<VID>, P = std::equal_to<VID>, A = std::allocator<std::pair<const VID, unsigned int> >]'
char_skill.cpp:3620:   instantiated from here
/usr/local/include/boost/functional/hash/extensions.hpp:262: error: no matching function for call to 'hash_value(const VID&)'
Makefile:129: recipe for target 'OBJDIR/char_skill.o' failed
gmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
db.cpp: In member function 'void DBManager::Query(const char*, ...)':
db.cpp:93: warning: comparison between signed and unsigned integer expressions
db.cpp: In member function 'SQLMsg* DBManager::DirectQuery(const char*, ...)':
db.cpp:105: warning: comparison between signed and unsigned integer expressions
cmd_general.cpp: In function 'void do_cards(CHARACTER*, const char*, int, int)':
cmd_general.cpp:2503: warning: 'safemode' may be used uninitialized in this function
cmd_general.cpp:2517: warning: 'destroy_index' may be used uninitialized in this function
cmd_general.cpp:2525: warning: 'accpet_index' may be used uninitialized in this function
cmd_general.cpp:2533: warning: 'restore_index' may be used uninitialized in this function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6626: warning: 'pBuff' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_costume_bonus_transfer(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:2856: warning: 'cell2' may be used uninitialized in this function
root@lonekek-dev:/usr/src/metin2source/game/src #
 

HELP

  • Love 1
Link to comment
Share on other sites

I have the same "metin2source" and there are no errors on compilation .. only warnings. When you have compile problems do this:

cd /usr/src/metin2source/game/src

gmake clean

gmake dep

gmake

 

With "gmake" you will compile one by one and when you have a problem he will stops right there.. with "gmake -j20" is quickly and maybe you can't see where is the problem.

Open  char_skill.cpp  and paste here some the line   3620

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.