Lehel 14 Posted August 31, 2014 Share Posted August 31, 2014 I tried to compile db/src , but gives me an error . <command-line>: warning: missing terminating " character version.cpp:11: error: missing terminating " character version.cpp: In function 'void WriteVersion()': version.cpp:11: error: expected primary-expression before ')' token compile CsvReader.cpp gmake: *** [.obj/version.o] Error 1 gmake: *** Waiting for unfinished jobs.... Why ? Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted August 31, 2014 Share Posted August 31, 2014 give you makefile Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 MAKE = gmake CC = g++ INCDIR = LIBDIR = BINDIR = .. OBJDIR = .obj 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 = $(shell svnversion -n .) $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi) TARGET = $(BINDIR)/db_r$(P4_VERSION) CFLAGS = -g -Wall -O2 -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE ifeq ($(GCC_VERSION), 4) CFLAGS += -mtune=i686 else CFLAGS += -mcpu=i686 endif # boost INCDIR += -I../../boost LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib 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 = -lthecore -lmysqlclient -lsql -lpoly -lgame -lm -lz SRCS = Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp AuctionManager.cpp ProtoReader.cpp CsvReader.cpp OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o) default: $(TARGET) $(TARGET): $(OBJS) @echo linking ... @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET) @touch version.cpp $(OBJDIR)/%.o: %.cpp @echo compile $< @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ $(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): @mkdir $(OBJDIR) clean: @rm -f $(OBJS) $(BINDIR)/db_r* dep: @touch Depend makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null sinclude Depend It's mainline_released . =D Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted August 31, 2014 Share Posted August 31, 2014 this: P4_VERSION = $(shell svnversion -n .) change to P4_VERSION = 40250 Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 Now I have an another error /usr/bin/ld: cannot find -lmysqlclient Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted August 31, 2014 Share Posted August 31, 2014 LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib change to LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib -L/usr/local/lib/mysql Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 Thanks a lot . And the last error what I have . When I want to start the server on the vps , it gives me this error : Shared object "libIL.so.2" not found, required by "fk_x" fk_x is my game file . Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted August 31, 2014 Share Posted August 31, 2014 look here:http://metin2dev.org/board/topic/820-problemstart-a-server-with-the-new-game/ Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 Mysql is working , and right now I have installed the cd /usr/ports/graphics/devil/ . It is not working Can you help me please ? Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 Need I have the souce of metin2 on vps , because the source is on my vdi . Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted August 31, 2014 Share Posted August 31, 2014 (edited) network seetings https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif/ try this Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 The problem is on my vps , I don't have virtual box , only ssh acces , ftp, mysql , etc .. Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 Problem solved I had to download this : Http://onex.ws/libs.zip , and now works fine Link to comment Share on other sites More sharing options...
MaRRaTPL 3 Posted September 13, 2014 Share Posted September 13, 2014 @Lehel reupload link ? please Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now