|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|

03-07-2011, 08:59 AM
|
Sarnak
|
|
Join Date: Jan 2010
Posts: 53
|
|
Quote:
Originally Posted by lanystvyl
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.
|

05-26-2011, 10:13 AM
|
Sarnak
|
|
Join Date: Sep 2008
Location: -
Posts: 31
|
|
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
|
 |
|
 |

05-26-2011, 11:52 AM
|
Sarnak
|
|
Join Date: Sep 2008
Location: -
Posts: 31
|
|
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
|
 |
|
 |

05-26-2011, 12:47 PM
|
Sarnak
|
|
Join Date: Sep 2008
Location: -
Posts: 31
|
|
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
|

06-24-2011, 04:28 AM
|
Sarnak
|
|
Join Date: Sep 2006
Location: Germany
Posts: 82
|
|
__________________
"Yes, the artwork is awful. I am an engineer, not an artist  " - David H. Eberly
|

06-29-2011, 01:21 PM
|
Fire Beetle
|
|
Join Date: Aug 2005
Posts: 29
|
|
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();],
|

06-29-2011, 01:29 PM
|
Sarnak
|
|
Join Date: Sep 2006
Location: Germany
Posts: 82
|
|
Quote:
Originally Posted by amraist
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
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 04:07 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |