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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2011, 08:59 AM
lanystvyl
Sarnak
 
Join Date: Jan 2010
Posts: 53
Default

Quote:
Originally Posted by lanystvyl View Post
that worked i can run through the steps., I can't figure out what to do next though.

thanks for the help!
must have been really tired last night :P I found the compiled executable. Should be able to put every thing where it belongs.

Awesome script - all my issues where due to not having the right programs loaded, really great job.
Reply With Quote
  #2  
Old 05-26-2011, 10:13 AM
orkim
Sarnak
 
Join Date: Sep 2008
Location: -
Posts: 31
Default

While working on a fresh SVN compile, I had some issues to work through.

Specifically, here's what I did to make the compile work:

prepare.sh needs to be updated. It did not remove these files:
./eqlaunch/makefile.vc2003
./world/makefile.vc2003
./EQEmuLoginServer/makefile
./EQEmuLoginServer/makefile.common
./ucs/makefile
./ucs/makefile.common
./zone/makefile.vc2003
./EMuShareMem/makefile.vc2003

Hand edited ./ucs/Makefile (this should be done with autocof I'm sure, but I didn't follow through editing those files):
old value: LIBS = -lpthread
new value: LIBS = -lpthread -ldl

Hand edited ./zone/Makefile (again, autoconf, but I got it working):
am_zone_OBJECTS = line
This was missing: "QuestParserCollection.$(OBJEXT)" so I added it.

Everything compiled and worked after these few edits. Just wanted to let you know for any updates that you might like to do.

-ork
Reply With Quote
  #3  
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
  #4  
Old 05-26-2011, 12:47 PM
orkim
Sarnak
 
Join Date: Sep 2008
Location: -
Posts: 31
Default

Follow up to my post to posts back. I took the time to edit the needed files in the build system to do the two problems I ran into automatically:

./configure.ac needs to be updated to reflect:

Code:
## Check for required libraries.
AC_CHECK_LIB( pthread, pthread_create, [],
    [LDFLAGS="-pthread $LDFLAGS"
     AC_TRY_LINK([char pthread_create();],
         pthread_create();,
         [], [AC_MSG_ERROR([Missing pthread])])
    ])

# dl
AC_CHECK_LIB( dl, dlopen, [],
    [LDFLAGS="-ldl $LDFLAGS"
     AC_TRY_LINK([char dlopen();],
         dlopen();,
         [], [AC_MSG_ERROR([Missing libdl])])
    ])

# Check for zlib
AC_CHECK_LIB( z, compress, [ZLIB=-lz],[AC_MSG_ERROR([Missing zlib])] )
./zone/Makefile.am needs to be updated to reflect:

Code:
        questmgr.cpp \
        questmgr.h \
        QuestParserCollection.cpp \
        QuestParserCollection.h \
        QGlobals.cpp \
        QGlobals.h \
'autoreconf -fi', './configure', 'make'.. etc etc..

-orkim
Reply With Quote
  #5  
Old 06-24-2011, 04:28 AM
erde
Sarnak
 
Join Date: Sep 2006
Location: Germany
Posts: 82
Default

Hi,

Mercurial repo: http://hg.codejunk.de/eqbuild/summary
current download http://hg.codejunk.de/eqbuild/archive/tip.tar.bz2
__________________
"Yes, the artwork is awful. I am an engineer, not an artist " - David H. Eberly
Reply With Quote
  #6  
Old 06-29-2011, 01:21 PM
amraist
Fire Beetle
 
Join Date: Aug 2005
Posts: 29
Default

I needed this patch to configure.ac in order to get it to work with FreeBSD
Code:
Index: configure.ac
===================================================================
--- configure.ac        (revision 370)
+++ configure.ac        (revision 371)
@@ -158,7 +158,7 @@
     ])

 # dl
-if test "$OSNAME" != "NetBSD"; then
+if test "$OSNAME" != "NetBSD" -a "$OSNAME" != "FreeBSD"; then
 AC_CHECK_LIB( dl, dlopen, [],
     [LDFLAGS="-ldl $LDFLAGS"
      AC_TRY_LINK([char dlopen();],
Reply With Quote
  #7  
Old 06-29-2011, 01:29 PM
erde
Sarnak
 
Join Date: Sep 2006
Location: Germany
Posts: 82
Default

Quote:
Originally Posted by amraist View Post
I needed this patch to configure.ac in order to get it to work with FreeBSD
Code:
Index: configure.ac
===================================================================
--- configure.ac        (revision 370)
+++ configure.ac        (revision 371)
@@ -158,7 +158,7 @@
     ])

 # dl
-if test "$OSNAME" != "NetBSD"; then
+if test "$OSNAME" != "NetBSD" -a "$OSNAME" != "FreeBSD"; then
 AC_CHECK_LIB( dl, dlopen, [],
     [LDFLAGS="-ldl $LDFLAGS"
      AC_TRY_LINK([char dlopen();],
added, thx
__________________
"Yes, the artwork is awful. I am an engineer, not an artist " - David H. Eberly
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:07 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