I had some free time and thought it would be nice to have autobuild scripts for eqemu.
Ok, here it is! This will make the build process easier. For example to enable bots, simply configure with
Code:
configure --enable-bots --prefix=/path/to/install
thats it.
The build system is tested with
- Mac OS X 10.5.6 (Intel Mac)
- Debian GNU/Linux 5.0.1 32bit (Pentium 4)
- Debian GNU/Linux 5.0.1 64bit (Intel Quad Core)
Ok, some features:
- detect build system OS(Linux/FreeBSD/Darwin), architectur (32/64bit)
- detect mysql
- detect perl
- set install path
- installs all needed files!
- build options (Bots/Debug/LogLevel/Compile Warnings)
not yet implemented:
- detect libperl
here is a overview of the configure options:
Code:
--prefix path to install
--enable-debug Turn on debugging
--enable-warnings enable compile warnings
--enable-bots Turn on bots
--with-loglevel Set loglevel (default: 5)
// 0 <= Quiet mode Errors to file Status and Normal ignored
// 1 >= Status and Normal to console, Errors to file
// 2 >= Status, Normal, and Error to console and logfile
// 3 >= Lite debug
// 4 >= Medium debug
// 5 >= Debug release (Anything higher is not recommended for regular use)
// 6 == (Reserved for special builds) Login opcode debug All packets dumped
// 7 == (Reserved for special builds) Chat Opcode debug All packets dumped
// 8 == (Reserved for special builds) World opcode debug All packets dumped
// 9 == (Reserved for special builds) Zone Opcode debug All packets dumped
// 10 >= More than you ever wanted to know
Ok, now here is how it works:
cd into the EQEmulator Source directory
get the build system
Code:
wget http://quadfreunde-ergoldsbach.de/eqemu/eqbuild.tgz
unpack
Code:
tar xvzf eqbuild.tgz
run prepare.sh, this will remove all previous makefiles and create missing files.
run
create a directory for the build process
cd into the build directory
run configure
Code:
../configure --prefix=/path/to/install
This will build eqemu with the default options.
To enable bots configure with
Code:
../configure --enable-bots --prefix=/path/to/install
To set the loglevel to 3 "Status, Normal, and Error to console and logfile" do
Code:
../configure --with-loglevel=3 --prefix=/path/to/install
to compile simply do
to install everything
Have fun!