wiki:Compiling Quagents

Version 11 (modified by jpawlick, 13 years ago) (diff)

--

Compiling Quagents

Our code is derived from the http://www/ioquake3.org svn repository as of 23 June 2011.

    svn co svn://svn.icculus.org/quake3/trunk ioquake3

Possibly this was revision 2053. There doesn't appear to a tag or branch in the repo corresponding to exactly the code used for the available binaries, which simply say "built from Subversion 1.36 branch." The branch viewed in TRAC shows no recent changes.

The best way to compile is to either use the install.sh bash script located in the trunk directory, which will invoke "make release tidy relocate", or to invoke "make release tidy relocate" yourself. The script will compile the executibles and vm code, remove unnecessary files, and copy some .pk3 files (zip archives) from other areas of the repository into the proper directory.

Linux

According to ioquake3's website, you need SDL and the associated development packages, but I've never had to do anything for this step under Linux. Perhaps I was already set up? Well, anyways, that issue aside, just run make and then copy the assets files (as described below).

It seems that GNU make on some distros expects to use yacc for .y files when GNU bison is the modern standard. We modified the ioquake3 Makefile to do the right thing.

Mac OSX

There's another shell script to compile for OSX in the top level directory, and it seems to compile fine up until SDL. I don't think I did the right thing to install SDL. :( Maybe someone who has clocked more than 2 hours on a Mac in their life can help me on this one...

Windows

Using MinGW worked well for me - the hard step is linking in the SDL libraries. Try http://wiki.ioquake3.org/Building_ioquake3 and the ioquake3 readme for instructions.

Everthing Else

You're currently on your own, sorry. Give the makefile a shot and see what happens.