Jump to content
metin2dev
  • 0
Sign in to follow this  
ParadoxDEV

open Source Game Compile Error After Installing Pet System

Question

3df927a3b8e2c1dc5734ae9dcc79ce92.png

This is the error i am getting:

Spoiler

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

P4_VERSION = 40250

CC = g++49

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = OBJDIR
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
LIBS = -pthread -lm -lmd
CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_
CFLAGS += -mtune=i686 -fstack-protector-all
CFLAGS += -Wno-strict-aliasing -Wno-delete-non-virtual-dtor -Wno-unused-local-typedefs -Wno-conversion-null -std=c++11
INCDIR += -I../../../Extern/include/boost
INCDIR += -I../../libdevil
LIBDIR += -L../../libdevil
LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg
INCDIR += -I../../libmysql/7.x-5.1.35
LIBDIR += -L../../libmysql/7.x-5.1.35
LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz

INCDIR += -I../../../Extern/include
LIBDIR += -L../../../Extern/lib/c++11
LIBDIR += -L../../../Extern/lib/cryptopp
LIBS += -lcryptopp
INCDIR += -I../../libhackshield/include
LIBDIR += -L../../libhackshield/lib
LIBS += -lanticpxsvr
INCDIR += -I../../libxtrap/include
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  = $(BINDIR)/game
CFILE    = minilzo.c
CPPFILE    = $(shell ls *.cpp | grep -v "^main.cpp" | tr '\n' ' ')

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

MAINOBJ = $(OBJDIR)/main.o
MAINCPP = main.cpp
default: $(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 $@

$(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
    @echo EN: Creating $(TARGET)...
    @echo PT: Criando $(TARGET)...
    @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)
    @echo EN: Stripping $(TARGET)...
    @echo PT: Comprimindo $(TARGET)...
    @strip --strip-all $(TARGET)

clean:
    @rm -f $(COBJS) $(CPPOBJS) $(BINDIR)/game $(BINDIR)/conv Depend*

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) 2> /dev/null > Depend

sinclude Depend
 

I just added Pet System and this happened... not sure how to fix this been a while since i touched a metin2 source.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×