Changes between Version 5 and Version 6 of Compiling Quagents
- Timestamp:
- Jun 23, 2011 2:04:13 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Compiling Quagents
v5 v6 1 1 So you've got the source code and are looking to compile it so that it runs in sweet native glory. 2 2 3 Our code now compiles on Linux, Windows, and Mac. However, I'm having trouble getting SDL to link on Windows and MacOSX. Odd that I didn't have that problem under Linux... -Josh 3 Our code is derived from the [[ioquake3|http://www/ioquake3.org]] svn repository as of 23 June 2011. 4 {{{ 5 svn co svn://svn.icculus.org/quake3/trunk ioquake3 6 }}} 7 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. 4 8 5 9 == Linux == 6 10 According to ioquake3's website, you need [[http://www.libsdl.org/|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). 7 11 8 9 === Yacc vs Bison === 10 Compilation requires yacc. If you have bison you may have problems. Here's how I fixed those problems on the URCS machines: 11 12 Link yacc to bison (probably better to install yacc, but...) 13 {{{ 14 mkdir ~/bin 15 cd ~/bin 16 ln -T --symbolic yacc /usr/bin/bison 17 }}} 18 Restart terminal, then try to make 19 {{{ 20 cd ~/quagents/trunk/ioquake3 21 make 22 }}} 23 Make will fail. Patch up bison/yacc filename differences (FIXME: we should be able to have the Makefile do this, or configure bison to do it correctly? Or install yacc?). 24 {{{ 25 mv gram.tab.c y.tab.c 26 make 27 }}} 28 Make should complete successfully. 12 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. 29 13 30 14 == Mac OSX == … … 40 24 41 25 == Copy Assets Files == 26 [This needs to be elaborated -gf] 27 42 28 You need to put all our assets .pk3 files into your build/release-?????-????/quagents3 directory, or your build/release-?????-????/missionpack directory if you would prefer to run the Team Arena mod. 43 29 {{{