Changes between Version 5 and Version 6 of Compiling Quagents


Ignore:
Timestamp:
Jun 23, 2011 2:04:13 PM (13 years ago)
Author:
ferguson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Compiling Quagents

    v5 v6  
    11So you've got the source code and are looking to compile it so that it runs in sweet native glory.
    22
    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
     3Our 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}}}
     7There 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.
    48
    59== Linux ==
    610According 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).
    711
    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.
     12It 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.
    2913
    3014== Mac OSX ==
     
    4024
    4125== Copy Assets Files ==
     26[This needs to be elaborated -gf]
     27
    4228You 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.
    4329{{{