Jump to content

Game source compile - novaline - problem


Recommended Posts

  • Bronze

make a symbolic link from maineline boost and cryptopp to /usr/local/include

they are needed  (look at the depend file)

or you can also upload them to the path if you dont know who to make a symbolic link on freebsd

else you can also install boost-all

(i included the symbolic link to cryptopp so that you will need it to complie mainline_w2.1)

tip : to complie any game src look at the makefile first

some part are wrong/commented or you didnt install perfectly all the needed thing for the makefile

 

tip : there is one case where you will have to edit main.cpp so that you complie (dev/dev wolf branch) i dont rly remember

good luck

 

edit :

i recommed you having maineline boost inseted of downloading it or having from boost-all port

reason : some header file a missing

Edited by Night
  • Love 2
Link to comment
Share on other sites

ok, i fix it but i have next problem

 

LEOZuRt.jpg

 

@edit

 

in game/src is not shutdown_manager, i delete this from MakeFile and i have errors:

 

root@avandia:/usr/src/Server/game/src # gmake
compile minilzo.c
compile main.cpp
In file included from main.cpp:14:
shop_manager.h:40:7: warning: no newline at end of file
In file included from ../../../Extern/include/boost/regex.h:22,
                 from ../../../Extern/include/gtest/internal/gtest-port.h:277,
                 from ../../../Extern/include/gtest/internal/gtest-internal.h:40,
                 from ../../../Extern/include/gtest/gtest.h:57,
                 from main.cpp:82:
../../../Extern/include/boost/cregex.hpp:24:34: error: boost/regex/config.hpp: No such file or directory
../../../Extern/include/boost/cregex.hpp:27:37: error: boost/regex/v4/cregex.hpp: No such file or directory
In file included from ../../../Extern/include/gtest/internal/gtest-port.h:277,
                 from ../../../Extern/include/gtest/internal/gtest-internal.h:40,
                 from ../../../Extern/include/gtest/gtest.h:57,
                 from main.cpp:82:
../../../Extern/include/boost/regex.h:30: error: 'boost::regoff_t' has not been declared
../../../Extern/include/boost/regex.h:31: error: 'boost::regex_tA' has not been declared
../../../Extern/include/boost/regex.h:32: error: 'boost::regmatch_t' has not been declared
../../../Extern/include/boost/regex.h:33: error: 'boost::REG_BASIC' has not been declared
../../../Extern/include/boost/regex.h:34: error: 'boost::REG_EXTENDED' has not been declared
../../../Extern/include/boost/regex.h:35: error: 'boost::REG_ICASE' has not been declared
../../../Extern/include/boost/regex.h:36: error: 'boost::REG_NOSUB' has not been declared
../../../Extern/include/boost/regex.h:37: error: 'boost::REG_NEWLINE' has not been declared
../../../Extern/include/boost/regex.h:38: error: 'boost::REG_NOSPEC' has not been declared
../../../Extern/include/boost/regex.h:39: error: 'boost::REG_PEND' has not been declared
../../../Extern/include/boost/regex.h:40: error: 'boost::REG_DUMP' has not been declared
../../../Extern/include/boost/regex.h:41: error: 'boost::REG_NOCOLLATE' has not been declared
../../../Extern/include/boost/regex.h:42: error: 'boost::REG_ESCAPE_IN_LISTS' has not been declared
../../../Extern/include/boost/regex.h:43: error: 'boost::REG_NEWLINE_ALT' has not been declared
../../../Extern/include/boost/regex.h:44: error: 'boost::REG_PERL' has not been declared
../../../Extern/include/boost/regex.h:45: error: 'boost::REG_AWK' has not been declared
../../../Extern/include/boost/regex.h:46: error: 'boost::REG_GREP' has not been declared
../../../Extern/include/boost/regex.h:47: error: 'boost::REG_EGREP' has not been declared
../../../Extern/include/boost/regex.h:48: error: 'boost::REG_ASSERT' has not been declared
../../../Extern/include/boost/regex.h:49: error: 'boost::REG_INVARG' has not been declared
../../../Extern/include/boost/regex.h:50: error: 'boost::REG_ATOI' has not been declared
../../../Extern/include/boost/regex.h:51: error: 'boost::REG_ITOA' has not been declared
../../../Extern/include/boost/regex.h:53: error: 'boost::REG_NOTBOL' has not been declared
../../../Extern/include/boost/regex.h:54: error: 'boost::REG_NOTEOL' has not been declared
../../../Extern/include/boost/regex.h:55: error: 'boost::REG_STARTEND' has not been declared
../../../Extern/include/boost/regex.h:57: error: 'boost::reg_comp_flags' has not been declared
../../../Extern/include/boost/regex.h:58: error: 'boost::reg_exec_flags' has not been declared
../../../Extern/include/boost/regex.h:59: error: 'boost::regcompA' has not been declared
../../../Extern/include/boost/regex.h:60: error: 'boost::regerrorA' has not been declared
../../../Extern/include/boost/regex.h:61: error: 'boost::regexecA' has not been declared
../../../Extern/include/boost/regex.h:62: error: 'boost::regfreeA' has not been declared
../../../Extern/include/boost/regex.h:65: error: 'boost::regcompW' has not been declared
../../../Extern/include/boost/regex.h:66: error: 'boost::regerrorW' has not been declared
../../../Extern/include/boost/regex.h:67: error: 'boost::regexecW' has not been declared
../../../Extern/include/boost/regex.h:68: error: 'boost::regfreeW' has not been declared
../../../Extern/include/boost/regex.h:69: error: 'boost::regex_tW' has not been declared
../../../Extern/include/boost/regex.h:72: error: 'boost::REG_NOERROR' has not been declared
../../../Extern/include/boost/regex.h:73: error: 'boost::REG_NOMATCH' has not been declared
../../../Extern/include/boost/regex.h:74: error: 'boost::REG_BADPAT' has not been declared
../../../Extern/include/boost/regex.h:75: error: 'boost::REG_ECOLLATE' has not been declared
../../../Extern/include/boost/regex.h:76: error: 'boost::REG_ECTYPE' has not been declared
../../../Extern/include/boost/regex.h:77: error: 'boost::REG_EESCAPE' has not been declared
../../../Extern/include/boost/regex.h:78: error: 'boost::REG_ESUBREG' has not been declared
../../../Extern/include/boost/regex.h:79: error: 'boost::REG_EBRACK' has not been declared
../../../Extern/include/boost/regex.h:80: error: 'boost::REG_EPAREN' has not been declared
../../../Extern/include/boost/regex.h:81: error: 'boost::REG_EBRACE' has not been declared
../../../Extern/include/boost/regex.h:82: error: 'boost::REG_BADBR' has not been declared
../../../Extern/include/boost/regex.h:83: error: 'boost::REG_ERANGE' has not been declared
../../../Extern/include/boost/regex.h:84: error: 'boost::REG_ESPACE' has not been declared
../../../Extern/include/boost/regex.h:85: error: 'boost::REG_BADRPT' has not been declared
../../../Extern/include/boost/regex.h:86: error: 'boost::REG_EEND' has not been declared
../../../Extern/include/boost/regex.h:87: error: 'boost::REG_ESIZE' has not been declared
../../../Extern/include/boost/regex.h:88: error: 'boost::REG_ERPAREN' has not been declared
../../../Extern/include/boost/regex.h:89: error: 'boost::REG_EMPTY' has not been declared
../../../Extern/include/boost/regex.h:90: error: 'boost::REG_E_MEMORY' has not been declared
../../../Extern/include/boost/regex.h:91: error: 'boost::REG_E_UNKNOWN' has not been declared
../../../Extern/include/boost/regex.h:92: error: 'boost::reg_errcode_t' has not been declared
In file included from ../../../Extern/include/gtest/internal/gtest-internal.h:40,
                 from ../../../Extern/include/gtest/gtest.h:57,
                 from main.cpp:82:
../../../Extern/include/gtest/internal/gtest-port.h:870: error: 'regex_t' does not name a type
../../../Extern/include/gtest/internal/gtest-port.h:871: error: 'regex_t' does not name a type
In file included from main.cpp:93:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
gmake: *** [OBJDIR/main.o] Error 1
 

ok i fix it all haha im so stupid

 

i have the last problem:

 

compile minilzo.c
linking ../game_r1234_32....
/usr/bin/ld: cannot find -ltiff
gmake: *** [../game_r1234_32] Error 1
root@avandia:/usr/src/Server/game/src # mc

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

i have installed new boost, my MakeFile:

 

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)
P4_VERSION = 1234

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_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 += -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 -L/usr/local/lib/mysql -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 += -L/usr/local/lib/mysql
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  = /usr/home/game_compiled

CFILE    = minilzo.c

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


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__P4_VERSION__="$(P4_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

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
 

 

ps, now i have only this error:

root@avandia:/usr/src/Server/game/src # gmake
linking /usr/home/game_compiled....
/usr/bin/ld: cannot find -ltiff
gmake: *** [/usr/home/game_compiled] Error 1
root@avandia:/usr/src/Server/game/src #

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.