Permanent error in compiling Nexuiz SVN

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators


  • There is a permanent error in the svn trunk, every time I try to check out and compile it (I use FruitieX script for ubuntu, I don't know if it could be a problem), it returns me that error:


    Code: Select all
    compiling sbar.qc
    in function Sbar_Score (line 1287),
    sbar.qc:1291: warning: RETURN VALUE ALREADY IN USE
    sbar.qc:1301: warning: RETURN VALUE ALREADY IN USE
    in function Sbar_ShowAcceleration (line 1951),
    sbar.qc:1988: error: type mismatch for -
    in function CSQC_ctf_hud (line 27),
    sbar.qc:2655: error: Unknown value "redflag_prevframe".
    sbar.qc:2655: error: type mismatch for != (float and __variant)

    ************ ERROR ************
    Errors have occured

    Error in sbar.qc on line 2851
    make[1]: *** [csprogs.dat] Error 1
    make[1]: Leaving directory `/home/toneddu/games/Nexuiz/trunk/data'
    make: *** [qc] Error 2
    Failed to build Nexuiz

    What could it be?

    EDIT: no one can answer me? I think this is a big deal, because I've always updated Nexuiz without efforts. Could it be a problem in the SVN trunk? Someone, please says something!!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Sat Sep 19, 2009 9:54 am

  • What version of fteqcc are you using? If you download the 'latest' build of it, Nexuiz will not build. Instead you need to pull the latest fteqcc code from SVN and build it. There is a thread somewhere on this issue.
    Ed
    Forum addon
     
    Posts: 1172
    Joined: Wed Mar 01, 2006 12:32 am
    Location: UK

Sat Sep 19, 2009 11:28 am

  • thx Ed!But I'm still confused!
    If you download the 'latest' build of it, Nexuiz will not build. Instead you need to pull the latest fteqcc code from SVN and build it.

    I didn't understand. Which has to be the 'latest' one?Fteqcc or Nexuiz?I commit svn check out of Nexuiz SVN at this address

    http://svn.icculus.org/nexuiz/
    Could you please post the link of the thread?
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Sat Sep 19, 2009 11:50 am

  • Your fteqcc is clearly outdated, you can get the one used in the official build there :
    http://rm.endoftheinternet.org/~nexuiz/builds/

    nexuizsource****.zip is the smaller archive (3.2 MB), it includes the file Nexuiz/sources/fteqcc-binaries-and-source-rev***.zip with binaries for all platform (windows, mac, and linux).

    The official svn repo is :
    Code: Select all
    svn checkout https://fteqw.svn.sourceforge.net/svnroot/fteqw/trunk/engine/qclib fteqcc
    Ronan
    Alien trapper
     
    Posts: 292
    Joined: Tue Mar 20, 2007 10:25 pm
    Location: France

Sat Sep 19, 2009 4:32 pm

  • a huge thanks Ronan! It was fteqcc that was outdated! The only thing I don't understand is why devs used inside the SVN trunk an outdated version of fteqcc, instead of use the updated version!
    thx again!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Sat Sep 19, 2009 8:56 pm

  • It's not outdated???

    Fteqcc had some bugs that need to be fixed to work on nexuiz.

    The best source to use for nexuiz is the nexuiz branch of http://github.com/Blub/qclib (if you know how to use git).
    If you don't, just use the binary Ronan linked to :)
    Meh.
    User avatar
    Mr. Bougo
    Keyboard killer
     
    Posts: 760
    Joined: Mon Sep 10, 2007 3:29 pm

Sun Sep 20, 2009 8:25 am

Mon Sep 21, 2009 6:05 am

  • Mr. Bougo wrote:It's not outdated???

    Fteqcc had some bugs that need to be fixed to work on nexuiz.

    The best source to use for nexuiz is the nexuiz branch of http://github.com/Blub/qclib (if you know how to use git).
    If you don't, just use the binary Ronan linked to :)

    Well actually, the latest FTEQCC from spikes checkout is perfectly stable now thanks to Blub.. The link is here: svn://fteqw.svn.sourceforge.net/svnroot ... nk/engine/ --- And uses SVN, which is much easier to set up.
    But anyway, do whichever you want. I personally prefer the SVN one because i'm on Windows and don't have easy access to use Git.
    Do it yourself, or stop complaining.
    (Developer Tracker) | (Nexuiz Roadmap)
    User avatar
    Samual
    Keyboard killer
     
    Posts: 508
    Joined: Mon May 25, 2009 7:22 pm
    Location: Pittsburgh, PA

Mon Sep 21, 2009 6:19 am

  • Samual wrote:Well actually, the latest FTEQCC from spikes checkout is perfectly stable now thanks to Blub.. The link is here: svn://fteqw.svn.sourceforge.net/svnroot ... nk/engine/ --- And uses SVN, which is much easier to set up.
    But anyway, do whichever you want. I personally prefer the SVN one because i'm on Windows and don't have easy access to use Git.


    Sure, but for future developments the Git repo is certain to compile Nexuiz without errors.
    Meh.
    User avatar
    Mr. Bougo
    Keyboard killer
     
    Posts: 760
    Joined: Mon Sep 10, 2007 3:29 pm

Mon Sep 21, 2009 8:25 am

Wed Sep 23, 2009 4:25 am

  • Something is broken in the SVN build system. It was working not long ago, but something got changed in whatever gets dl'd. Getting that sbar.qc error. The build system downloads the latest fteqcc from https://fteqw.svn.sourceforge.net/svnro ... gine/qclib fteqcc.
    Equal opportunity fragger
    Irritant
    Advanced member
     
    Posts: 88
    Joined: Mon Sep 11, 2006 3:22 pm

Wed Sep 23, 2009 6:54 am

  • yeah, in fact. I use fruitieX script that's very useful, but it downloads fteqcc from this address, then the script recompiles fteqcc and errors start. I resolved using address that Ronan kindly posted. I want to learn git, and it would be great if fruitieX tells me how to change script to overwrite SVN with GIT. There's a line in the script that said:

    echo "--- Checking out fteqcc from svn ---";error_reason="Failed to checkout fteqcc"
    # -r 3177 is a temporary fix here because of a fteqcc compiler bug
    svn co -r 3177 https://fteqw.svn.sourceforge.net/svnro ... ine/qclib/

    So , If I understood right, it uses the 3177 version, and not the updated one. But It continues to sound strange to me, because today after compiling, it returns me that error:
    Code: Select all
    Error in constants.qh on line 178

    And now I'm using the update fteqcc one!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Sun Nov 01, 2009 6:44 pm

  • well, solved! :D If someone were interested to compile again with fruitieX script just modify the script to the line 46 and replace 3177 with 3400 (current SVN release)
    And it will search current release instead of 3177 and it will compile!
    Now, if you want to compile with ode support (compile ode libs -most uptodate version of course- first!! )
    just go to line 76
    and replace make with:
    Code: Select all
    make DP_MAKE_TARGET=linux DP_ODE_STATIC_LIBDIR=/usr/local/lib cl-nexuiz

    cheers!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy



Return to Nexuiz - Development




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