Tryn 97 Posted October 30, 2016 Share Posted October 30, 2016 Heyho guys, i just got a new root which i want to use as a development server. The server has FreeBSD 11.0 installed. I installed all requiered libs to compile the source. But now if i want to compile something it say's all times: My steps: 1. gmake clean (works) 2. gmake dep (do not works) gmake: *** [Makefile:80: dep] Error 127 In my makefile line 80 is: makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null 3. gmake (do not works) gmake: *** No rule to make target '/usr/include/c++/4.2/tr1/unordered_map', needed by '.obj/Config.o'. Stop. Does someone knows where my problem is? Because before it works fine for me as i used FreeBSD 10.3 64 Bit on my old development server..... Greetings and thanks in advance Tryn Link to comment Share on other sites More sharing options...
Tryn 97 Posted October 31, 2016 Author Share Posted October 31, 2016 Okey guy, i downgraded my server to FreeBSD 10.3, does anyone can tell me what i need to install to get the source running under 10.3, because as i told u above on 9.3 it was all working fine for me. I installed: cryptopp mysql57-server devil boost-libs (In that kind of order i had wrote them down. I just needed them for 9.3 so can anybody tell me what changed? Or what i need to install unter 10 now that it will work?) Thanks in advance Link to comment Share on other sites More sharing options...
Tryn 97 Posted November 5, 2016 Author Share Posted November 5, 2016 (edited) Still getting these Error: Here is my makefile: MAKE = gmake #CC = g++ CC = clang++ INCDIR = LIBDIR = BINDIR = ../Releases 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 less ../common/Dbversion.txt) $(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 # MySQL LIBDIR += -L/usr/local/lib/mysql # boost INCDIR += -I../../Z_Extern/include/boost LIBDIR += -L../../Z_Lib/libthecore/lib -L../../Z_Lib/libsql -L../../Z_Lib/libpoly -L../../Z_Lib/libgame/lib # Extern INCDIR += -I../../Z_Extern/include LIBDIR += -I../../Z_Extern/lib # Project Library INCDIR += -I/usr/local/include ifeq ($(BSD_VERSION), 7) INCDIR += -I../../Z_Lib/libmysql/7.x-5.1.35 LIBDIR += -L../../Z_Lib/libmysql/7.x-5.1.35 else INCDIR += -I../../Z_Lib/libmysql/5.x-5.1.35 LIBDIR += -L../../Z_Lib/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 ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp \ ItemIDRangeManager.cpp version.cpp ProtoReader.cpp CsvReader.cpp OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o) default: $(TARGET) $(TARGET): $(OBJS) @echo linking $(TARGET)... @$(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 Does anybody knows my problem? Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 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