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 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 cd into the EQEmulator Source directory get the build system Code:
wget http://quadfreunde-ergoldsbach.de/eqemu/eqbuild.tgz Code:
tar xvzf eqbuild.tgz Code:
sh prepare.sh Code:
autoreconf -fi Code:
mkdir build Code:
cd build Code:
../configure --prefix=/path/to/install To enable bots configure with Code:
../configure --enable-bots --prefix=/path/to/install Code:
../configure --with-loglevel=3 --prefix=/path/to/install Code:
make Code:
make install |
Interesting. Is this something that has to be rebuilt with each revision, or will it automatically download new revision files?
|
the archive has a folder called EMUShareMem, should be called EMuShareMem, otherwise seems to work
|
Quote:
Quote:
Code:
configure --prefix=/path/to/install |
Dude, this is awesome. I have a script that I use to download and build everything but that is small potatoes compared to this. I may combine that with this to get a fully functional build.
|
I've been commissioned to take a look at this and possibly add it to the SVN, if that's alright, with you erde? This is exactly what *nix users of EQEmu have needed for some time!
|
Quote:
|
Is there an option to over-ride the gcc, g++ and library versions? Auto-detection will fail on my system.
|
Quote:
CC=gcc-4.0 CPP=cpp-4.0 ../configure |
Update the archive! There was a problem with the --with-loglevel option
|
Quote:
|
It looks like the m4 directory wasnt created. normally "autoreconf -fi" should create it.
could you rerun "autoreconf -fi" in the root source dir, if there is no m4 directory create one with "mkdir m4" and try again. Do you have libtool installed? |
Quote:
Currently in the works: - options to specify the path to mysql_config - cleanups - comments |
does eqemu compile on freebsd?
|
Quote:
|
Lol
This would have been awesome two weeks ago when I was configuring my server! I am going to try and redo this when I get time since I want to try out bots. Great Work!
|
Script update
- set the path to mysql_config works now --with-mysql=/path/to/mysql_config - found install bug only eqemu_config.xml.full gets installed, to prevent overwrite of an already edited config file |
|
|
If you have time can you add a
Code:
make install-autostart |
|
downloaded the eqbuild.tgz and extracted it to /home/lanys/eqemu/build I was able to run the prepare.sh file, i saw it add a few things to the build folder. but when I run autoreconf -fi I get an error;
[root@localhost build]# autoreconf -fi configure.ac:13: error: possibly undefined macro: AC_DISABLE_STATIC If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:26: error: possibly undefined macro: AC_PROG_LIBTOOL autoreconf: /usr/bin/autoconf failed with exit status: 1 [root@localhost build]# I am running centOS 5 new install, have apache php perl and mysql running. thanks for any help |
fixed the above error now it just bombs out when i try to (make)
make[1]: *** [dbcore.o] Error 1 make[1]: Leaving directory `/home/lanys/eqemu/build/build/chatserver' make: *** [all-recursive] Error 1 could use some help on this one can do make clean - it runs through fine, but make still has an error. Code:
[root@localhost build]# make |
It would appear you do not have the mysql development files installed, or it just didn't find them.
|
that worked i can run throug the steps., I can't figure out what to do next though.
thanks for the help! |
Quote:
Awesome script - all my issues where due to not having the right programs loaded, really great job. |
While working on a fresh SVN compile, I had some issues to work through.
Specifically, here's what I did to make the compile work: prepare.sh needs to be updated. It did not remove these files: ./eqlaunch/makefile.vc2003 ./world/makefile.vc2003 ./EQEmuLoginServer/makefile ./EQEmuLoginServer/makefile.common ./ucs/makefile ./ucs/makefile.common ./zone/makefile.vc2003 ./EMuShareMem/makefile.vc2003 Hand edited ./ucs/Makefile (this should be done with autocof I'm sure, but I didn't follow through editing those files): old value: LIBS = -lpthread new value: LIBS = -lpthread -ldl Hand edited ./zone/Makefile (again, autoconf, but I got it working): am_zone_OBJECTS = line This was missing: "QuestParserCollection.$(OBJEXT)" so I added it. Everything compiled and worked after these few edits. Just wanted to let you know for any updates that you might like to do. -ork |
For anyone interested in adding the EQEmuLoginServer to the autobuild scripts, I spent a few minutes working this out. Read below for how I did it.
Before building, you must extract the proper library from the appropriate zip in the ./EQEmuLoginServer/login_utils/linux/ directory. Update ./EQEmuLoginServer/Makefile.am as follows: Code:
DEFAULT_INCLUDES= Code:
# AC_CONFIG_HEADERS([config.h]) -ork |
Follow up to my post to posts back. I took the time to edit the needed files in the build system to do the two problems I ran into automatically:
./configure.ac needs to be updated to reflect: Code:
## Check for required libraries. Code:
questmgr.cpp \ -orkim |
Hi,
Mercurial repo: http://hg.codejunk.de/eqbuild/summary current download http://hg.codejunk.de/eqbuild/archive/tip.tar.bz2 |
I needed this patch to configure.ac in order to get it to work with FreeBSD
Code:
Index: configure.ac |
Quote:
|
All times are GMT -4. The time now is 10:06 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.