PDA

View Full Version : Problems with EmuShareMem


morpheus014
06-14-2003, 05:11 PM
Okay the world and zone built fine, and as I have in the past I am stuck with EMuShareMem. I think whatever the problem is is staring me in the face but I cant see it, I have been experimenting with the makefile since the 'stock' mysql path's didnt work, and neither did acolytes modified makefile. So here is what I have, if anyone can see what is probably obviously wrong with this please tell me!!

make
gcc -g -shared -Wl,-soname,libEMuShareMem.so -o libEMuShareMem.so MMFMutex.o Doors.o Items.o Spells.o NPCTypes.o NPCFactionLists.o MMF.o Loot.o ../common/timer.o ../common/unix.o ../common/EMuShareMem.o -L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/local/mysql/lib -lmysqlclient -ldl

This is all that I get now, nothing past the first GCC, here is my makefile:
Makefile:

# Generated automatically from Makefile.in by configure.
APP=libEMuShareMem.so
SF=MMFMutex.o Doors.o Items.o Spells.o NPCTypes.o NPCFactionLists.o MMF.o Loot.o ../common/timer.o ../common/unix.o ../common/EMuShareMem.o

CC=gcc
LD=ld

DFLAGS=-DDEBUG=1 -DSHAREMEM -DCATCH_CRASH
WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align

COPTS=$(WFLAGS) $(DFLAGS) -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `/usr/bin/mysql_config --cflags` -DEMUSHAREMEM
LINKOPTS=-L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/local/mysql/lib -lmysqlclient -ldl



all: $(APP)




$(APP): $(SF)

$(CC) -g -shared -Wl,-soname,$(APP) -o $(APP) $(SF) $(LINKOPTS)


clean:

rm -f $(SF) $(APP)


%.o: %.cpp

$(CC) $(COPTS) -c $< -o $@


.obj/debug.o: ../common/debug.h ../common/debug.cpp
mkdir -p .obj
$(CC) $(COPTS) -c ../common/debug.cpp -o .obj/debug.o

=/

Bigpull
06-14-2003, 07:05 PM
It's doing the final linking nothing abnormal about that, you really should run "make clean" when you switch from world to zone and zone to EMuShareMem however.

morpheus014
06-15-2003, 03:45 AM
Thanks a lot Bigpull! Compiled perfectly

naik
06-17-2003, 03:39 AM
gcc -g -shared -Wl,-soname,libEMuShareMem.so -o libEMuShareMem.so MMFMutex.o Doors.o Items.o Spells.o NPCTypes.o NPCFactionLists.o MMF.o Loot.o ../common/timer.o ../common/unix.o ../common/EMuShareMem.o -L. -lstdc++ -lm -lz `mysql_config --libs`
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [libEMuShareMem.so] Error 1


Anyone have any ideas? I tried make clean a few times. too.

Acolyte
06-17-2003, 06:28 AM
God it's amazing DID YOU MISS THE MYSQLCLIENT STICKY IN THIS FORUM?

http://forums.eqemu.net/viewtopic.php?t=8348

heh.