Showing posts with label Mangos. Show all posts
Showing posts with label Mangos. Show all posts

Thursday, September 16, 2010

How to compile pseuwow under Linux

Pseuwow is widely known as a client emulator for mangos project, it allows you sent chat text to players in game through command line in console which is just like a bot. It officially announce it is 99% support Linux, however due to the author does not familiar with Linux, the Makefile become the 1% which is causes some minor problem.

Prepare

git clone http://github.com/fgenesis/pseuwow.gitmv  pseuwow/src/dep/include/openssl  pseuwow/src/dep/include/opensslx

You need to create a Makefile.am in pseuwow/src/dep/src/irrKlang/

INCLUDES = -I../../include/irrklang -I../../includelibdir=$(top_builddir)/src/dep/lib/linux-gccnoinst_LIBRARIES = libIrrKlang.alibIrrKlang_a_SOURCES = \irrKlang.cpp

and modify pseuwow/src/dep/src/Makefile.am

SUBDIRS = irrlicht zlib zthread irrKlangThen modify pseuwow/src/Client/Makefile.am

Fix the line

../dep/lib/linux-gcc/libIrrKlang.so\

to the correct path

Then

$aclocal$autoreconf$automake$./configure --prefix=/opt/pseuwow$make$make install

at last, you need to copy the entire “dep” direictory & “conf” directory to /opt/pseuwow/bin/

Pseuwow is widely known as a client emulator for mangos project, it allows you sent chat text to players in game through command line in console which is just like a bot. It officially announce it is 99% support Linux, however due to the author does not familiar with Linux, the Makefile become the 1% which is causes some minor problem.

How to speed up compile with "make" in Linux

There is an option which is

make -jx

x=the number of concurrent  jobs

For a Dual Core 2 2.0 GHZ CPU, make -j5 will be a feasible choice.

CAUTION: it will cost much more CPU usage while the number increases,  please be careful to use this in any live environment.