How do you compile Nexuiz from source?

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators


  • As it hasn't been copied form the old forum, any chance of a guide on compiling from source along with different optimisation options?
    Ed
    Forum addon
     
    Posts: 1172
    Joined: Wed Mar 01, 2006 12:32 am
    Location: UK

Fri Mar 03, 2006 12:02 pm

  • are you thinking the nexuiz quakec source, or darkplaces c source? (im tihnking nex quakec, but i thought it better to ask)
    Chozabu
    Member
     
    Posts: 24
    Joined: Wed Mar 01, 2006 12:29 am

Fri Mar 03, 2006 12:50 pm

  • How to compile on Linux and OS X:

    First, you extract the sources. These are included in the ZIP or, if you want the current work inprogress sources, available via SVN and CVS.

    I'll explain the SVN/CVS part here. There will be some minor differences when compiling 1.5, but these will go away when 1.5.1 gets released ;)

    First, you need the program "fteqcc", available from http://www.fteqw.com/index.php?d=download or as a package in your favorite Linux distribution. I won't explain how to compile this one since this is included with every good Linux distribution anyway (it's available as a package for at least Debian, Gentoo and even - although it isn't a Linux distribution - FreeBSD).

    Then, you need to compile and install DarkPlaces. This goes like this:
    Code: Select all
    $ cvs -d:pserver:anonymous@cvs.icculus.org:/cvs/cvsroot/twilight login
    Password: anonymous
    $ cvs -d:pserver:anonymous@cvs.icculus.org:/cvs/cvsroot/twilight -z3 checkout darkplaces

    To update and compile a new version, this is what you do:
    Code: Select all
    $ cd darkplaces
    $ cvs -z3 update -dP
    $ make nexuiz
    $ cd ..

    If you get error messages about something missing, you probably need to install packages named like libsdl-dev, libvorbis-dev, libpng-dev or libjpeg-dev. -dev means that you also need the .h files belonging to these libraries - some distributions use -devel instead, and Gentoo always includes this information, so on Gentoo, you just install the libraries if they are missing. Use your distribution's search facility to find the names of the missing packages.

    The other part you need is Nexuiz, that is, the game data and the game code. DarkPlaces is "just" the engine. Downloading Nexuiz SVN works like this:
    Code: Select all
    $ svn checkout svn://svn.icculus.org/nexuiz/trunk/ nexuiz

    To update and compile, you will do:
    Code: Select all
    $ cd nexuiz
    $ svn update
    $ ( cd data/menuqc && fteqcc )
    $ ( cd data/qcsrc/server && fteqcc )
    $ cd ..

    Then you can play bleeding-edge current Nexuiz by doing this:
    Code: Select all
    $ cd nexuiz
    $ ../darkplaces/nexuiz-sdl

    Note that you won't be able to play on 1.5 servers with this because of a network code change.
    Last edited by divVerent on Sat Mar 04, 2006 12:02 am, edited 1 time in total.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Fri Mar 03, 2006 10:42 pm

  • divVerent wrote:
    Code: Select all
    $ ( cd data/qcsrc/client && fteqcc )


    You don't wanna do this :)
    csqc code is svn is just a template and it likely that it'll break things or at least cause cause some bugs.
    If you already compiled it, delete Nexuiz/data/csprogs.*
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Wed Mar 22, 2006 10:01 pm

  • I noticed the linux section of the makefile does not take environment variables like CFLAGS into account. The makefile sets its own and custom settings are ignored.
    DrDoom
    Member
     
    Posts: 20
    Joined: Tue Mar 21, 2006 1:40 pm

Thu Dec 20, 2007 2:39 am

Thu Dec 20, 2007 6:07 am

  • and DP uses SVN now.
    Code: Select all
    svn co svn://svn.icculus.org/twilight/trunk twilight
    :)
    Keyboard killer
     
    Posts: 590
    Joined: Tue Feb 28, 2006 9:09 pm



Return to Nexuiz - Support / Bugs




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest