Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:50 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3