naczelnynieuk 0 Posted December 13, 2014 Share Posted December 13, 2014 What should i do ? g++: directory": No such file or directory <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 gmake: *** [.obj/version.o] Error 1 gmake: *** Waiting for unfinished jobs.... Link to comment Share on other sites More sharing options...
Reboot 772 Posted December 14, 2014 Share Posted December 14, 2014 Open makefile an search : SVN_VERSION = Replace with : SVN_VERSION = 12345 Link to comment Share on other sites More sharing options...
naczelnynieuk 0 Posted December 14, 2014 Author Share Posted December 14, 2014 Ok with this i have another problem: usr/bin/ld: cannot find -lmysqlclient MAKEFILE: 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 = 12345 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 Link to comment Share on other sites More sharing options...
Reboot 772 Posted December 14, 2014 Share Posted December 14, 2014 Search this: P4_VERSION = $(shell svnversion -n .) Replace with this : P4_VERSION = xx_12 Link to comment Share on other sites More sharing options...
naczelnynieuk 0 Posted December 14, 2014 Author Share Posted December 14, 2014 Look at my updated post; I have now this problem : usr/bin/ld: cannot find -lmysqlclient Link to comment Share on other sites More sharing options...
Reboot 772 Posted December 14, 2014 Share Posted December 14, 2014 Look at my updated post; I have now this problem : usr/bin/ld: cannot find -lmysqlclient Open usr/src/your source/Srcs/Server an delete libmysql Then open novaline/server and copy libmysql folder on your path that you have deleted. Link to comment Share on other sites More sharing options...
Morphe 159 Posted December 14, 2014 Share Posted December 14, 2014 Look at my updated post; I have now this problem : usr/bin/ld: cannot find -lmysqlclient Open usr/src/your source/Srcs/Server an delete libmysql Then open novaline/server and copy libmysql folder on your path that you have deleted. facepalm Add LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz in makefile Link to comment Share on other sites More sharing options...
Reboot 772 Posted December 14, 2014 Share Posted December 14, 2014 Look at my updated post; I have now this problem : usr/bin/ld: cannot find -lmysqlclient Open usr/src/your source/Srcs/Server an delete libmysql Then open novaline/server and copy libmysql folder on your path that you have deleted. facepalm Add LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz in makefile Lord, another stupid romanian. No offence. Libraries already exist novaline / Server / Libmysl / No need to redirect location to the mysql libraries. Link to comment Share on other sites More sharing options...
Night 366 Posted December 14, 2014 Share Posted December 14, 2014 Look at my updated post; I have now this problem : usr/bin/ld: cannot find -lmysqlclient Open usr/src/your source/Srcs/Server an delete libmysql Then open novaline/server and copy libmysql folder on your path that you have deleted. facepalm Add LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz in makefile Lord, another stupid romanian. No offence. Libraries already exist novaline / Server / Libmysl / No need to redirect location to the mysql libraries. and why wouldnt he do that ? its better : saving space and the use of 100% compatible lib with your server Link to comment Share on other sites More sharing options...
Reboot 772 Posted December 14, 2014 Share Posted December 14, 2014 Look at my updated post; I have now this problem : usr/bin/ld: cannot find -lmysqlclient Open usr/src/your source/Srcs/Server an delete libmysql Then open novaline/server and copy libmysql folder on your path that you have deleted. facepalm Add LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz in makefile Lord, another stupid romanian. No offence. Libraries already exist novaline / Server / Libmysl / No need to redirect location to the mysql libraries. and why wouldnt he do that ? its better : saving space and the use of 100% compatible lib with your server If you do this, you need to redirect and mysql headers from /usr/local/include/mysql. The source lib and headers are used different. Believe me know what I mean. Libraries and header files used Ymir from mysl52. And what he wants is to redirect the mysl55 or 56. 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