[P] ERR COMPILARE SURSA

În cazul în care aveţi o nelămurire postaţi aici, de asemenea este locul unde puteţi găsi posibile rezolvări la problemele dvs.
Deconectat
Avatar utilizator
cosmogryg
Nivel 1
Nivel 1
Mesaje: 62
Membru din: 22 Mar 2015
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 12
Mulțumiri primite: 0

[P] ERR COMPILARE SURSA

Mesajde cosmogryg » 01 Mai 2019, 09:28

*Problemă: EROARE LA COMPILARE
Tipologie server:
*Resursă folosită: Sursa by valentino 2009
*ServerFiles utilizat: SF by valentino 2009
*Syserr:
Poză:
*Detalii suplimentare: Imi da eroare asta cand o compilez ->
root@localhost:/usr/src/source/game/src # gmake clean
root@localhost:/usr/src/source/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkConvert.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkImage.cpp
compile MarkManager.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
compile TrafficProfiler.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile blend_item.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char.cpp
compile char_affect.cpp
compile char_change_empire.cpp
compile char_battle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from stdafx.h:39,
from MarkImage.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from ani.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compilation terminated.
compilation terminated.
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake: *** [Makefile:140: OBJDIR/MarkImage.o] Error 1
In file included from stdafx.h:39,
from buffer_manager.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** Waiting for unfinished jobs....
gmake: *** [Makefile:140: OBJDIR/ani.o] Error 1
In file included from stdafx.h:39,
from blend_item.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from MarkManager.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/buffer_manager.o] Error 1
In file included from stdafx.h:39,
from battle.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from OXEvent.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from castle.cpp:12:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from arena.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/MarkManager.o] Error 1
compilation terminated.
compilation terminated.
In file included from stdafx.h:39,
from TrafficProfiler.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/blend_item.o] Error 1
compilation terminated.
In file included from stdafx.h:39,
from building.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/castle.o] Error 1
compilation terminated.
In file included from stdafx.h:39,
from block_country.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/battle.o] Error 1
In file included from stdafx.h:39,
from BattleArena.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from MarkConvert.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/arena.o] Error 1
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/building.o] Error 1
gmake: *** [Makefile:140: OBJDIR/block_country.o] Error 1
In file included from stdafx.h:39,
from char.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from banword.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from char_battle.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/TrafficProfiler.o] Error 1
compilation terminated.
compilation terminated.
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/OXEvent.o] Error 1
gmake: *** [Makefile:140: OBJDIR/MarkConvert.o] Error 1
In file included from stdafx.h:39,
from char_affect.cpp:2:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/char_battle.o] Error 1
In file included from stdafx.h:39,
from char_change_empire.cpp:2:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/char.o] Error 1
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/banword.o] Error 1
gmake: *** [Makefile:140: OBJDIR/char_affect.o] Error 1
gmake: *** [Makefile:139: OBJDIR/BattleArena.o] Error 1
gmake: *** [Makefile:139: OBJDIR/char_change_empire.o] Error 1


Makefile e asta:

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 = $(shell cat ../version)
SVN_VERSION = 40250
#$(shell svnversion -n .)

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 -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_

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
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
#LIBS += /usr/lib/libssl.a

# 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
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz
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_r40k

CFILE = minilzo.c

CPPFILEx = questlua_item.cpp

CPPFILE = BattleArena.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 offline_shop.cpp offlineshop_manager.cpp offlineshop_config.cpp

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

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

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

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


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


$(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
@echo game_r$(SVN_VERSION)_x$(PLATFORM) is Compiled
@echo
# @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

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


Vă rugăm să scanaţi întotdeauna fişierele pe care le descărcaţi cu VirusTotal.

Conectat
Avatar utilizator
.Turcoas
Nivel 1
Nivel 1
Mesaje: 127
Membru din: 22 Apr 2018
Status: .
Server Metin2: n-am
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 34

Re: [P] ERR COMPILARE SURSA

Mesajde .Turcoas » 01 Mai 2019, 10:22

cosmogryg scrie:*Problemă: EROARE LA COMPILARE
Tipologie server:
*Resursă folosită: Sursa by valentino 2009
*ServerFiles utilizat: SF by valentino 2009
*Syserr:
Poză:
*Detalii suplimentare: Imi da eroare asta cand o compilez ->
root@localhost:/usr/src/source/game/src # gmake clean
root@localhost:/usr/src/source/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkConvert.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkImage.cpp
compile MarkManager.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
compile TrafficProfiler.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile blend_item.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char.cpp
compile char_affect.cpp
compile char_change_empire.cpp
compile char_battle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from stdafx.h:39,
from MarkImage.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from ani.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compilation terminated.
compilation terminated.
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake: *** [Makefile:140: OBJDIR/MarkImage.o] Error 1
In file included from stdafx.h:39,
from buffer_manager.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** Waiting for unfinished jobs....
gmake: *** [Makefile:140: OBJDIR/ani.o] Error 1
In file included from stdafx.h:39,
from blend_item.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from MarkManager.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/buffer_manager.o] Error 1
In file included from stdafx.h:39,
from battle.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from OXEvent.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from castle.cpp:12:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from arena.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/MarkManager.o] Error 1
compilation terminated.
compilation terminated.
In file included from stdafx.h:39,
from TrafficProfiler.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/blend_item.o] Error 1
compilation terminated.
In file included from stdafx.h:39,
from building.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/castle.o] Error 1
compilation terminated.
In file included from stdafx.h:39,
from block_country.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/battle.o] Error 1
In file included from stdafx.h:39,
from BattleArena.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from MarkConvert.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/arena.o] Error 1
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/building.o] Error 1
gmake: *** [Makefile:140: OBJDIR/block_country.o] Error 1
In file included from stdafx.h:39,
from char.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from banword.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from char_battle.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/TrafficProfiler.o] Error 1
compilation terminated.
compilation terminated.
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/OXEvent.o] Error 1
gmake: *** [Makefile:140: OBJDIR/MarkConvert.o] Error 1
In file included from stdafx.h:39,
from char_affect.cpp:2:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/char_battle.o] Error 1
In file included from stdafx.h:39,
from char_change_empire.cpp:2:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/char.o] Error 1
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/banword.o] Error 1
gmake: *** [Makefile:140: OBJDIR/char_affect.o] Error 1
gmake: *** [Makefile:139: OBJDIR/BattleArena.o] Error 1
gmake: *** [Makefile:139: OBJDIR/char_change_empire.o] Error 1


Makefile e asta:

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 = $(shell cat ../version)
SVN_VERSION = 40250
#$(shell svnversion -n .)

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 -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_

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
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
#LIBS += /usr/lib/libssl.a

# 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
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz
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_r40k

CFILE = minilzo.c

CPPFILEx = questlua_item.cpp

CPPFILE = BattleArena.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 offline_shop.cpp offlineshop_manager.cpp offlineshop_config.cpp

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

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

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

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


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


$(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
@echo game_r$(SVN_VERSION)_x$(PLATFORM) is Compiled
@echo
# @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

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


Trebuie să fii logat sau înregistrat pentru a vedea acest link.
Ţi-am pus notepad-uri în arhivă, scrie în ele unde trebuie băgate cele 2 fişiere.
-prinţu' din dubai.
Imagine
---------------------------------------------------------------------------------------
E mai bine să nu ai idei deloc, decât să ai idei proaste.
Mai bine să nu crezi în nimic, decât să crezi în ceva greşit — Thomas Jefferson

---------------------------------------------------------------------------------------

Deconectat
Avatar utilizator
cosmogryg
Nivel 1
Nivel 1
Mesaje: 62
Membru din: 22 Mar 2015
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 12
Mulțumiri primite: 0

Re: [P] ERR COMPILARE SURSA

Mesajde cosmogryg » 01 Mai 2019, 11:58

.Turcoas scrie:
cosmogryg scrie:*Problemă: EROARE LA COMPILARE
Tipologie server:
*Resursă folosită: Sursa by valentino 2009
*ServerFiles utilizat: SF by valentino 2009
*Syserr:
Poză:
*Detalii suplimentare: Imi da eroare asta cand o compilez ->
root@localhost:/usr/src/source/game/src # gmake clean
root@localhost:/usr/src/source/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkConvert.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkImage.cpp
compile MarkManager.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
compile TrafficProfiler.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile blend_item.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile char.cpp
compile char_affect.cpp
compile char_change_empire.cpp
compile char_battle.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from stdafx.h:39,
from MarkImage.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from ani.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compilation terminated.
compilation terminated.
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake: *** [Makefile:140: OBJDIR/MarkImage.o] Error 1
In file included from stdafx.h:39,
from buffer_manager.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** Waiting for unfinished jobs....
gmake: *** [Makefile:140: OBJDIR/ani.o] Error 1
In file included from stdafx.h:39,
from blend_item.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from MarkManager.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/buffer_manager.o] Error 1
In file included from stdafx.h:39,
from battle.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from OXEvent.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from castle.cpp:12:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from arena.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/MarkManager.o] Error 1
compilation terminated.
compilation terminated.
In file included from stdafx.h:39,
from TrafficProfiler.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/blend_item.o] Error 1
compilation terminated.
In file included from stdafx.h:39,
from building.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/castle.o] Error 1
compilation terminated.
In file included from stdafx.h:39,
from block_country.cpp:10:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/battle.o] Error 1
In file included from stdafx.h:39,
from BattleArena.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from stdafx.h:39,
from MarkConvert.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/arena.o] Error 1
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/building.o] Error 1
gmake: *** [Makefile:140: OBJDIR/block_country.o] Error 1
In file included from stdafx.h:39,
from char.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from banword.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from stdafx.h:39,
from char_battle.cpp:1:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/TrafficProfiler.o] Error 1
compilation terminated.
compilation terminated.
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/OXEvent.o] Error 1
gmake: *** [Makefile:140: OBJDIR/MarkConvert.o] Error 1
In file included from stdafx.h:39,
from char_affect.cpp:2:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:140: OBJDIR/char_battle.o] Error 1
In file included from stdafx.h:39,
from char_change_empire.cpp:2:
event.h:10:10: fatal error: boost/intrusive_ptr.hpp: No such file or directory
#include <boost/intrusive_ptr.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/char.o] Error 1
compilation terminated.
gmake: *** [Makefile:140: OBJDIR/banword.o] Error 1
gmake: *** [Makefile:140: OBJDIR/char_affect.o] Error 1
gmake: *** [Makefile:139: OBJDIR/BattleArena.o] Error 1
gmake: *** [Makefile:139: OBJDIR/char_change_empire.o] Error 1


Makefile e asta:

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 = $(shell cat ../version)
SVN_VERSION = 40250
#$(shell svnversion -n .)

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 -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_

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
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
#LIBS += /usr/lib/libssl.a

# 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
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz
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_r40k

CFILE = minilzo.c

CPPFILEx = questlua_item.cpp

CPPFILE = BattleArena.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 offline_shop.cpp offlineshop_manager.cpp offlineshop_config.cpp

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

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

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

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


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


$(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
@echo game_r$(SVN_VERSION)_x$(PLATFORM) is Compiled
@echo
# @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

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


Trebuie să fii logat sau înregistrat pentru a vedea acest link.
Ţi-am pus notepad-uri în arhivă, scrie în ele unde trebuie băgate cele 2 fişiere.


Am luat alt vdi si merge acum, o compileaza dar mai da unele warning-uri, dar imi face game-ul(Scuze poate pun unele intrebari tampite dar asa invat si eu, nu am mai lucrat cu o sursa pana acum:)) ). Astea sunt-->
root@:~ # cd /usr/src/source/game/src
root@:/usr/src/source/game/src # gmake clean
root@:/usr/src/source/game/src # gmake -j20
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 arena.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 char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
compile char_manager.cpp
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char.cpp:62:
PetSystem.h:163:31: warning: no newline at end of file
In file included from char.cpp:69:
offlineshop_config.h:33:7: warning: no newline at end of file
char.cpp:7685: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7709:2: warning: no newline at end of file
compile char_quickslot.cpp
compile char_resist.cpp
In file included from char_item.cpp:45:
belt_inventory_helper.h:108:42: warning: no newline at end of file
compile char_skill.cpp
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:638: warning: comparison is always false due to limited range of data type
char_item.cpp:664: warning: comparison is always false due to limited range of data type
compile char_state.cpp
compile PetSystem.cpp
compile cmd.cpp
compile cmd_emotion.cpp
compile cmd_general.cpp
In file included from PetSystem.cpp:8:
PetSystem.h:163:31: warning: no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
cmd_general.cpp:2718:2: warning: no newline at end of file
compile cmd_gm.cpp
compile cmd_oxevent.cpp
cmd_gm.cpp:4521:2: warning: no newline at end of file
compile config.cpp
compile constants.cpp
compile crc32.cpp
compile cube.cpp
constants.cpp:291: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:292: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:293: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:294: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:295: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:296: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:297: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:298: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:299: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:300: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:301: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:302: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:303: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:304: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:305: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:306: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:307: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:308: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:309: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:310: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:311: warning: this decimal constant is unsigned only in ISO C90
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:373: warning: NULL used in arithmetic
config.cpp:397: warning: NULL used in arithmetic
config.cpp:421: warning: NULL used in arithmetic
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3986: warning: NULL used in arithmetic
compile db.cpp
compile desc.cpp
compile desc_client.cpp
compile desc_manager.cpp
compile desc_p2p.cpp
compile dev_log.cpp
compile dungeon.cpp
compile empire_text_convert.cpp
compile entity.cpp
compile entity_view.cpp
compile event.cpp
compile event_queue.cpp
compile exchange.cpp
compile file_loader.cpp
compile fishing.cpp
compile gm.cpp
compile guild.cpp
compile guild_manager.cpp
compile guild_war.cpp
compile horse_rider.cpp
compile horsename_manager.cpp
compile input.cpp
compile input_auth.cpp
compile input_db.cpp
In file included from input_db.cpp:13:
shop_manager.h:40:7: warning: no newline at end of file
In file included from input_db.cpp:50:
offlineshop_config.h:33:7: warning: no newline at end of file
input_db.cpp:2778:2: warning: no newline at end of file
compile input_login.cpp
compile input_main.cpp
compile input_p2p.cpp
compile input_teen.cpp
compile input_udp.cpp
In file included from input_main.cpp:16:
shop_manager.h:40:7: warning: no newline at end of file
In file included from input_main.cpp:44:
belt_inventory_helper.h:108:42: warning: no newline at end of file
compile ip_ban.cpp
compile item.cpp
compile item_addon.cpp
In file included from item.cpp:22:
belt_inventory_helper.h:108:42: warning: no newline at end of file
item.cpp:2081:2: warning: no newline at end of file
compile item_attribute.cpp
compile item_manager.cpp
compile item_manager_idrange.cpp
compile locale.cpp
compile locale_service.cpp
compile log.cpp
compile login_data.cpp
compile lzo_manager.cpp
compile marriage.cpp
compile matrix_card.cpp
compile messenger_manager.cpp
compile mining.cpp
compile mob_manager.cpp
compile monarch.cpp
compile motion.cpp
compile over9refine.cpp
monarch.cpp:276:2: warning: no newline at end of file
compile p2p.cpp
compile packet_info.cpp
compile party.cpp
compile passpod.cpp
compile pcbang.cpp
compile polymorph.cpp
compile priv_manager.cpp
compile pvp.cpp
compile questevent.cpp
compile questlua.cpp
compile questlua_affect.cpp
compile questlua_arena.cpp
compile questlua_ba.cpp
compile questlua_building.cpp
compile questlua_danceevent.cpp
compile questlua_dungeon.cpp
compile questlua_forked.cpp
compile questlua_game.cpp
compile questlua_global.cpp
compile questlua_guild.cpp
compile questlua_horse.cpp
compile questlua_pet.cpp
compile questlua_item.cpp
compile questlua_marriage.cpp
In file included from questlua_pet.cpp:11:
PetSystem.h:163:31: warning: no newline at end of file
questlua_pet.cpp:157:2: warning: no newline at end of file
compile questlua_mgmt.cpp
compile questlua_monarch.cpp
compile questlua_npc.cpp
In file included from questlua_npc.cpp:9:
shop_manager.h:40:7: warning: no newline at end of file
compile questlua_oxevent.cpp
compile questlua_party.cpp
compile questlua_pc.cpp
compile questlua_quest.cpp
compile questlua_target.cpp
compile questmanager.cpp
compile questnpc.cpp
compile questpc.cpp
compile refine.cpp
compile regen.cpp
compile safebox.cpp
compile sectree.cpp
compile sectree_manager.cpp
compile sequence.cpp
compile shop.cpp
compile skill.cpp
compile start_position.cpp
compile target.cpp
compile text_file_loader.cpp
compile trigger.cpp
compile utils.cpp
In file included from trigger.cpp:8:
shop_manager.h:40:7: warning: no newline at end of file
compile vector.cpp
utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)':
utils.cpp:248: warning: NULL used in arithmetic
utils.cpp:260: warning: NULL used in arithmetic
utils.cpp:274: warning: NULL used in arithmetic
compile war_map.cpp
compile wedding.cpp
compile xmas_event.cpp
compile version.cpp
compile panama.cpp
compile threeway_war.cpp
compile map_location.cpp
compile auth_brazil.cpp
compile BlueDragon.cpp
compile BlueDragon_Binder.cpp
compile DragonLair.cpp
compile questlua_dragonlair.cpp
compile HackShield.cpp
compile HackShield_Impl.cpp
compile char_hackshield.cpp
compile skill_power.cpp
compile affect.cpp
compile SpeedServer.cpp
compile questlua_speedserver.cpp
compile XTrapManager.cpp
compile auction_manager.cpp
compile FileMonitor_FreeBSD.cpp
compile ClientPackageCryptInfo.cpp
compile cipher.cpp
FileMonitor_FreeBSD.cpp:136:2: warning: compile buff_on_attributes.cpp
no newline at end of file
compile check_server.cpp
compile dragon_soul_table.cpp
compile DragonSoul.cpp
compile group_text_parse_tree.cpp
In file included from dragon_soul_table.cpp:4:
dragon_soul_table.h:74:7: warning: no newline at end of file
In file included from DragonSoul.cpp:9:
dragon_soul_table.h:74:7: warning: no newline at end of file
compile char_dragonsoul.cpp
compile questlua_dragonsoul.cpp
compile shop_manager.cpp
compile shopEx.cpp
char_dragonsoul.cpp:143:2: warning: no newline at end of file
compile item_manager_read_tables.cpp
In file included from shop_manager.cpp:22:
shop_manager.h:40:7: warning: no newline at end of file
compile offline_shop.cpp
compile offlineshop_manager.cpp
compile offlineshop_config.cpp
In file included from offlineshop_config.cpp:5:
offlineshop_config.h:33:7: warning: no newline at end of file
offlineshop_config.cpp:248:2: warning: no newline at end of file
compile minilzo.c
compile main.cpp
compile test.cpp
In file included from main.cpp:4:
offlineshop_config.h:33:7: warning: no newline at end of file
In file included from main.cpp:15:
shop_manager.h:40:7: warning: no newline at end of file
In file included from offlineshop_manager.cpp:29:
offlineshop_config.h:33:7: warning: no newline at end of file
offlineshop_manager.cpp:1077:2: warning: no newline at end of file
linking ../game_r40k....

game_r40250_x32 is Compiled

Conectat
Avatar utilizator
Cibirichi
Super Moderator
Super Moderator
Mesaje: 764
Membru din: 20 Sep 2015
Autentificat prin: iPhone
Mulțumiri acordate: 5
Mulțumiri primite: 99
Contact:

Re: [P] ERR COMPILARE SURSA

Mesajde Cibirichi » 02 Mai 2019, 01:44

warning: no newline at end of file -> mergi la sfarsitul fiserului, dai un enter dupa ultima linie si salveaza
NULL used in arithmetic -> inlocuieste NULL de la linia care iti spune cu 0
this decimal constant is unsigned only in ISO C90 -> adauga un u inainte de virgula spre exemplu (123, devine 123u,)
comparison is always false due to limited range of data type -> modifica type-ul mai mic intr-unul mai mare ca sa poata fi comparat cu unul mai mare


Înapoi la “Probleme şi Întrebări”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Darcky, HFM-Hosting, Reme, Stayll, ZeNu și 2 vizitatori