View Single Post
  #28  
Old 05-26-2011, 11:52 AM
orkim
Sarnak
 
Join Date: Sep 2008
Location: -
Posts: 31
Default

For anyone interested in adding the EQEmuLoginServer to the autobuild scripts, I spent a few minutes working this out. Read below for how I did it.

Before building, you must extract the proper library from the appropriate zip in the ./EQEmuLoginServer/login_utils/linux/ directory. Update ./EQEmuLoginServer/Makefile.am as follows:

Code:
DEFAULT_INCLUDES=
AM_CPPFLAGS = -DEQLOGIN -DCOMBINED $(MYSQL_INCLUDES)

EQEMULOBINSERVER_INC = -L.
EQEMULOGINSERVER_LIBS = -lEQEmuAuthCrypto -lcryptopp
bindir=$(prefix)

bin_PROGRAMS = EQEmuLoginServer

EQEmuLoginServer_LDFLAGS = $(MYSQL_LIBS) $(LDFLAGS) -ldl $(EQEMULOBINSERVER_INC) $(EQEMULOGINSERVER_LIBS)

EQEmuLoginServer_SOURCES = \
    Client.cpp \
    Client.h \
    ClientManager.cpp \
    ClientManager.h \
    Config.cpp \
    Config.h \
    Database.h \
    DatabaseMySQL.h \
    DatabasePostgreSQL.h \
    ErrorLog.cpp \
    LoginServer.h \
    Main.cpp \
    ServerManager.cpp \
    WorldServer.cpp \
    DatabaseMySQL.cpp \
    DatabasePostgreSQL.cpp \
    EQCryptoAPI.h \
    ErrorLog.h \
    LoginStructures.h \
    Options.h \
    ServerManager.h \
    WorldServer.h \
    ../common/BasePacket.cpp \
    ../common/Condition.cpp \
    ../common/CRC16.cpp \
    ../common/crc32.cpp \
    ../common/debug.cpp \
    ../common/debug.h \
    ../common/emu_opcodes.cpp \
    ../common/EmuTCPConnection.cpp \
    ../common/EmuTCPServer.cpp \
    ../common/EQPacket.cpp \
    ../common/EQStream.cpp \
    ../common/EQStreamFactory.cpp \
    ../common/logsys.cpp \
    ../common/logsys_eqemu.cpp \
    ../common/misc.cpp \
    ../common/MiscFunctions.cpp \
    ../common/Mutex.cpp \
    ../common/opcodemgr.cpp \
    ../common/packet_dump.cpp \
    ../common/packet_functions.cpp \
    ../common/rdtsc.cpp \
    ../common/TCPConnection.cpp \
    ../common/TCPServer.cpp \
    ../common/timeoutmgr.cpp \
    ../common/timer.cpp \
    ../common/unix.cpp
You must also update the ./configure.am just a bit to include this make file as (addition in red):

Code:
# AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
        Makefile
        chatserver/Makefile
        EMuShareMem/Makefile
        EQEmuLoginServer/Makefile
        eqlaunch/Makefile
        mailserver/Makefile
        ucs/Makefile
        utils/Makefile
        utils/defaults/Makefile
        utils/defaults/templates/Makefile
        utils/defaults/templates/TMimages/Makefile
        world/Makefile
        zone/Makefile
])
Rerun 'autoreconf -fi' and then a './configure' and 'make' and the login server should be built properly.

-ork
Reply With Quote