Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-29-2009, 04:18 PM
erde
Sarnak
 
Join Date: Sep 2006
Location: Germany
Posts: 82
Default autobuild for Linux, FreeBSD, OS X

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.
Code:
sh prepare.sh
run
Code:
autoreconf -fi
create a directory for the build process
Code:
mkdir build
cd into the build directory
Code:
cd build
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
Code:
make
to install everything
Code:
make install
Have fun!
__________________
"Yes, the artwork is awful. I am an engineer, not an artist " - David H. Eberly
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:08 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3