Problemă compilare GAME Subiect este rezolvat

Aici găsiţi problemele rezolvate.
Deconectat
Avatar utilizator
Lehel
Mister Just4Metin
Mister Just4Metin
Mesaje: 1383
Membru din: 21 Aug 2013
Localitate: Cluj-Napoca
Reputație: ---------------------------------------
► Fost Super Moderator
► c++ programmer
► Fost super ad moderator
► Fost lider helperi
---------------------------------------
Regat: Jinno
Mulțumiri acordate: 10
Mulțumiri primite: 16
Contact:

Re: Problemă compilare GAME

Mesajde Lehel » 19 Sep 2016, 17:21

Pune aici Makefile din game/src
Imagine

Deconectat
Avatar utilizator
luv12345
Nivel 1
Nivel 1
Mesaje: 96
Membru din: 19 Noi 2014
Status: La budă.
Server Metin2: Metin2Roke
Regat: Chunjo
Mulțumiri acordate: 5
Mulțumiri primite: 1
Contact:

Re: Problemă compilare GAME

Mesajde luv12345 » 20 Sep 2016, 14:25

Lehel scrie:Pune aici Makefile din game/src


PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3 | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
SVN_VERSION = 40250
WOLF_ENABLE = lycan

CC = g++

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = OBJDIR
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

# Standard Setting
LIBS = -pthread -lm -lmd
# Removed -fno-rtti
CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -D__SVN_VERSION__=\"$(SVN_VERSION)\"

ifeq ($(GCC_VERSION), 4)
CFLAGS += -mtune=i686 -fstack-protector-all
else
CFLAGS += -mcpu=i686
endif

# boost
INCDIR += -I../../../Extern/include/boost

# DevIL
INCDIR += -I../../libdevil
LIBDIR += -L../../libdevil
LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg

# MySQL
ifeq ($(BSD_VERSION), 7)
INCDIR += -I../../libmysql/7.x-5.1.35
LIBDIR += -L../../libmysql/7.x-5.1.35
else
INCDIR += -I../../libmysql/5.x-5.1.35
LIBDIR += -L../../libmysql/5.x-5.1.35
endif

LIBS += -lmysqlclient -lz

# Miscellaneous external libraries
INCDIR += -I../../../Extern/include
LIBDIR += -L../../../Extern/lib
LIBS += -lcryptopp -lgtest

# HackShield
INCDIR += -I../../libhackshield/include
LIBDIR += -L../../libhackshield/lib
LIBS += -lanticpxsvr

# XTrap
INCDIR += -I../../libxtrap/include

# openssl
#INCDIR += -I/usr/include
LIBS += -lssl

# Project Library
INCDIR += -I../../liblua/include
INCDIR += -I/usr/local/include
INCDIR += -I../../libserverkey
LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib -L../../libserverkey
LIBDIR += -L/usr/local/lib
LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lserverkey
USE_STACKTRACE = 0
ifeq ($(USE_STACKTRACE), 1)
LIBS += /usr/local/lib/libexecinfo.a
endif

TARGET = $(BINDIR)/game_r$(SVN_VERSION)_$(WOLF_ENABLE)

CFILE = minilzo.c

CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp acce.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 questlua_mysql.cpp offline_shop.cpp offlineshop_manager.cpp offlineshop_config.cpp


COBJS = $(CFILE:%.c=$(OBJDIR)/%.o)
CPPOBJS = $(CPPFILE:%.cpp=$(OBJDIR)/%.o)

MAINOBJ = $(OBJDIR)/main.o
MAINCPP = main.cpp

##TESTOBJ = $(OBJDIR)/test.o
##TESTCPP = test.cpp
##TEST_TARGET = $(BINDIR)/test

default: $(TARGET)
###$(TEST_TARGET)

$(OBJDIR)/minilzo.o: minilzo.c
@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
@echo compile $<

$(OBJDIR)/version.o: version.cpp
@$(CC) $(CFLAGS) -D__USER__=\"$(USER)\" -D__HOSTNAME__=\"$(HOSTNAME)\" -D__PWD__=\"$(PWD)\" -D__SVN_VERSION__=\"$(SVN_VERSION)\" -c $< -o $@
@echo compile $<

$(OBJDIR)/%.o: %.cpp
@echo compile $<
@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

limit_time:
@echo update limit time
@python update_limit_time.py

$(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
@echo linking $(TARGET)....
@$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)

##$(TEST_TARGET): $(TESTCPP) $(CPPOBJS) $(COBJS) $(TESTOBJ)
## @echo linking $(TEST_TARGET)
## @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(TESTOBJ) $(LIBS) -o ../test

clean:
@rm -f $(COBJS) $(CPPOBJS)
@rm -f $(BINDIR)/game_r* $(BINDIR)/conv
## @rm -f $(BINDIR)/test

tag:
ctags *.cpp *.h *.c

dep:
makedepend -f Depend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) $(TESTCPP) 2> /dev/null > Depend

sinclude Depend

Deconectat
Avatar utilizator
luv12345
Nivel 1
Nivel 1
Mesaje: 96
Membru din: 19 Noi 2014
Status: La budă.
Server Metin2: Metin2Roke
Regat: Chunjo
Mulțumiri acordate: 5
Mulțumiri primite: 1
Contact:

Re: Problemă compilare GAME

Mesajde luv12345 » 22 Sep 2016, 23:42

UP!

Deconectat
Avatar utilizator
luv12345
Nivel 1
Nivel 1
Mesaje: 96
Membru din: 19 Noi 2014
Status: La budă.
Server Metin2: Metin2Roke
Regat: Chunjo
Mulțumiri acordate: 5
Mulțumiri primite: 1
Contact:

Re: Problemă compilare GAME

Mesajde luv12345 » 24 Sep 2016, 15:38

Am rezolvat chestia aia, 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 #

Deconectat
Avatar utilizator
luv12345
Nivel 1
Nivel 1
Mesaje: 96
Membru din: 19 Noi 2014
Status: La budă.
Server Metin2: Metin2Roke
Regat: Chunjo
Mulțumiri acordate: 5
Mulțumiri primite: 1
Contact:

Re: Problemă compilare GAME

Mesajde luv12345 » 25 Sep 2016, 15:23

up

Deconectat
Avatar utilizator
luv12345
Nivel 1
Nivel 1
Mesaje: 96
Membru din: 19 Noi 2014
Status: La budă.
Server Metin2: Metin2Roke
Regat: Chunjo
Mulțumiri acordate: 5
Mulțumiri primite: 1
Contact:

Re: Problemă compilare GAME

Mesajde luv12345 » 26 Sep 2016, 13:49

up

Deconectat
Avatar utilizator
luv12345
Nivel 1
Nivel 1
Mesaje: 96
Membru din: 19 Noi 2014
Status: La budă.
Server Metin2: Metin2Roke
Regat: Chunjo
Mulțumiri acordate: 5
Mulțumiri primite: 1
Contact:

Re: Problemă compilare GAME

Mesajde luv12345 » 27 Sep 2016, 14:04

up

Deconectat
Avatar utilizator
stilledanger
Mister Just4Metin
Mister Just4Metin
Mesaje: 731
Membru din: 31 Ian 2014
Localitate: /usr/xsag/thw2/
Reputație: Fost dezvoltator la Zearth2 si ThunderWorld2
Status: http://survive-on-mars.com
Server Metin2: survive-on-mars.com
Mulțumiri acordate: 13
Mulțumiri primite: 48
Contact:

Re: Problemă compilare GAME

Mesajde stilledanger » 27 Sep 2016, 14:14

Nu ai bine instalat gcc ,foloseste vdi freebsd de pe dev.
Eu am stat 8 ore sa fac un vps sa pot compila sursa pe el :)) si nici nu recomand sa compilati sursa pe vps ca poate sa fie furata.
Administrator la Trebuie să fii logat sau înregistrat pentru a vedea acest link.
Fost dezvoltator şi administrator la ThunderWorld2
Tutoriale C++ in curs de dezvoltare Trebuie să fii logat sau înregistrat pentru a vedea acest link.

Deconectat
Avatar utilizator
luv12345
Nivel 1
Nivel 1
Mesaje: 96
Membru din: 19 Noi 2014
Status: La budă.
Server Metin2: Metin2Roke
Regat: Chunjo
Mulțumiri acordate: 5
Mulțumiri primite: 1
Contact:

Re: Problemă compilare GAME

Mesajde luv12345 » 28 Sep 2016, 19:03

stilledanger scrie:Nu ai bine instalat gcc ,foloseste vdi freebsd de pe dev.
Eu am stat 8 ore sa fac un vps sa pot compila sursa pe el :)) si nici nu recomand sa compilati sursa pe vps ca poate sa fie furata.

Am reinstalat gcc.
Sursa o compilez pe un freebsd 9.2.

Deconectat
Avatar utilizator
Tobii
Nivel 4
Nivel 4
Mesaje: 746
Membru din: 19 Apr 2016
Localitate: Afla singur , doar daca poti
Reputație: Helper Avansat ♠ 0.25/3
Fost Helper ♠ 2.2/3
Fost Trial Helper ♠
Status: Sunt bine mersi
Server Metin2: NU JOC
Mulțumiri acordate: 17
Mulțumiri primite: 33

Re: Problemă compilare GAME

Mesajde Tobii » 29 Sep 2016, 14:08

Mai bine complimezi sursa pe un freebsd din virtual box , iti instalezi freebsd9.2.vdi si lucrezi , pe vps nu recomand


Înapoi la “Probleme rezolvate”

Cine este conectat

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