Could Someone Test It Please?
FireStorm
Join Date: 2002-11-06 Member: 7390Members
I've compiled the <a href='http://www.unknownworlds.com/forums/index.php?act=ST&f=8&t=35833' target='_blank'>Private Message</a> plugin (version 0.2) for linux and I'd like someone to test it on his server. If it works, I'll compile the other plugins, rename the last versions to 1.0 and post everything at modns.
Thanks to CheezyPeteza for his makefile (that I modified to try to include some optimizations from the original one) <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
I used GCC 2.95.4 (I don't want to mess with GCC 3.3 - if [WHO]Them can't compile with it then a linux noob like me won't either <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> )
Makefile used - is it correct? Can I better optimize it?:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->CPP = gcc
CCOPT = -march=i586 -O3 -ffast-math -funroll-loops \
-fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
-malign-jumps=2 -malign-functions=2 -fno-exceptions -fno-rtti -s
CPPFLAGS = ${CCOPT} -m386 -w -I. -I../hlsdk/multiplayer/engine -I../hlsdk/multiplayer/common -I../hlsdk/multiplayer/pm_shared -I../hlsdk/multiplayer/dlls -I../metamod/metamod
OBJ = dllapi.o engine_api.o h_export.o meta_api.o sdk_util.o
pm_mm_i386.so: ${OBJ}
${CPP} -fPIC -shared -o $@ ${OBJ}
clean:
-rm -f *.o
-rm -f *.so
%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@
%.o: %.c
${CPP} ${CPPFLAGS} -c $< -o $@<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
I've changed 2 lines in the source code to compile it. GCC has different scopes for variables declared inside a 'for' than VC++.
Try it please and tell me if it works. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Thanks to CheezyPeteza for his makefile (that I modified to try to include some optimizations from the original one) <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
I used GCC 2.95.4 (I don't want to mess with GCC 3.3 - if [WHO]Them can't compile with it then a linux noob like me won't either <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> )
Makefile used - is it correct? Can I better optimize it?:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->CPP = gcc
CCOPT = -march=i586 -O3 -ffast-math -funroll-loops \
-fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
-malign-jumps=2 -malign-functions=2 -fno-exceptions -fno-rtti -s
CPPFLAGS = ${CCOPT} -m386 -w -I. -I../hlsdk/multiplayer/engine -I../hlsdk/multiplayer/common -I../hlsdk/multiplayer/pm_shared -I../hlsdk/multiplayer/dlls -I../metamod/metamod
OBJ = dllapi.o engine_api.o h_export.o meta_api.o sdk_util.o
pm_mm_i386.so: ${OBJ}
${CPP} -fPIC -shared -o $@ ${OBJ}
clean:
-rm -f *.o
-rm -f *.so
%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@
%.o: %.c
${CPP} ${CPPFLAGS} -c $< -o $@<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
I've changed 2 lines in the source code to compile it. GCC has different scopes for variables declared inside a 'for' than VC++.
Try it please and tell me if it works. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Comments
roger! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Ok thanks guys <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
But the point is that I want to compile it myself, so I can provide linux version for my next plugins myself. :/
If you want the source code it's in the thread I linked above, in the file pm_mm_0.2.zip
But you need to change:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->for( int j = 0; j < se; ++j )<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
to
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->int j;
for( j = 0; j < se; ++j )<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
in StringContains in dllapi.cpp (VC++ has an old-style 'for' scoping).
I'll change some things and I'll release 1.0 soon, for win and linux this time <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->