Discussion:
error building rogue - the usual or something new? tried fixes
Philip Dillon-Thiselton
2005-02-24 10:23:41 UTC
Permalink
When I try to compile the rogue extention i get this error:

gcc -Wall -pipe -Dstricmp=strcasecmp -O2 -ffast-math -funroll-loops
-falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing
-DLINUX_VERSION='"3.21+r0.16"' -fPIC -o releasei386/rogue/dm_ball.o -c
src/rogue/dm_ball.c
In file included from src/rogue/dm_ball.c:5:
src/rogue/g_local.h:25:17: nan.h: No such file or directory
src/rogue/dm_ball.c: In function `DBall_PostInitSetup':
src/rogue/dm_ball.c:182: warning: suggest parentheses around assignment
used as truth value
src/rogue/dm_ball.c:191: warning: suggest parentheses around assignment
used as truth value
src/rogue/dm_ball.c: In function `PickBallStart':
src/rogue/dm_ball.c:368: warning: suggest parentheses around assignment
used as truth value
make[1]: *** [releasei386/rogue/dm_ball.o] Error 1
make[1]: Leaving directory
`/var/abs/quake/quake2-rogue/src/quake2-r0.16.1'
make: *** [build_release] Error 2
==> ERROR: Build Failed. Aborting...

I know the docs say to try altering some values in the Makefile if the
build fails but does not say why the build might fail. Nonetheless i
tried those changes and i still get the build error - i have q2 and xatrix
running just fine :D
Fabrice Colin
2005-02-24 13:51:53 UTC
Permalink
Post by Philip Dillon-Thiselton
gcc -Wall -pipe -Dstricmp=strcasecmp -O2 -ffast-math -funroll-loops
-falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing
-DLINUX_VERSION='"3.21+r0.16"' -fPIC -o releasei386/rogue/dm_ball.o -c
src/rogue/dm_ball.c
src/rogue/g_local.h:25:17: nan.h: No such file or directory
...
I use the following patch to build my RPMs on Linux :

--- src/rogue/g_local.h Sun Dec 1 13:18:40 2002
+++ src/rogue/g_local.h Sun Dec 1 13:19:35 2002
@@ -22,13 +22,13 @@
//==================================================================

#ifndef _WIN32
-#include <nan.h>
+#include <bits/nan.h>
#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) > (b) ? (a) : (b))
#ifdef __sun__
#define _isnan(a) (NaN((a)))
#else
-#define _isnan(a) ((a)==NAN)
+#define _isnan(a) isnan(a)
#endif
#endif

I hope this helps.

Fabrice
Nick Warne
2005-02-24 20:27:14 UTC
Permalink
Post by Fabrice Colin
Post by Philip Dillon-Thiselton
src/rogue/g_local.h:25:17: nan.h: No such file or directory
...
--- src/rogue/g_local.h Sun Dec 1 13:18:40 2002
+++ src/rogue/g_local.h Sun Dec 1 13:19:35 2002
@@ -22,13 +22,13 @@
//==================================================================
#ifndef _WIN32
-#include <nan.h>
+#include <bits/nan.h>
#define min(a,b) ((a) < (b) ? (a) : (b))
#define max(a,b) ((a) > (b) ? (a) : (b))
#ifdef __sun__
#define _isnan(a) (NaN((a)))
#else
-#define _isnan(a) ((a)==NAN)
+#define _isnan(a) isnan(a)
#endif
#endif
I hope this helps.
Ah yes. I remember now I had same problems. After a 'locate nan.h' I just
copied

/usr/include/bits/nan.h

to my rogue directory

/home/nick/rogue/nan.h

and all built fine.

Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
David Mehrmann
2005-03-10 22:39:28 UTC
Permalink
See here...

http://uk.geocities.com/symmetricdragon/
m0gely
2005-03-10 22:49:29 UTC
Permalink
Post by David Mehrmann
See here...
http://uk.geocities.com/symmetricdragon/
"Sorry, this site is temporarily unavailable!"
--
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike
David Mehrmann
2005-03-10 23:09:10 UTC
Permalink
In reply to m0gely

M> "Sorry, this site is temporarily unavailable!"

Strange. Works fine for me, right now. Anyway, here is what this is
about, copy and paste:

Overview A modification of Quake 2 that adds realistic shadows and
lighting to the game. Infinite shadow volumes are rendered using a
stencil buffer technique. OpenGL Shading Language vertex and fragment
shaders are employed to perform bumpmapping including terms for diffuse
lighting, specular highlights, light swamping and attenuation.

Motivation It has been my experience that coding these various things
gets little to no appreciation from family and friends, irrelevant of
the time, effort and skill (or lack of) required to do them. A small
animation of a green block man walking across the screen or a raytracing
of a blue teapot just doesn't seem to impress. One of the problems I
find is a lack of high quality free art resources, but then you wouldn't
expect high quality art to be free. One could be a game engine coding
genius (which, of course, I am not), but without model and level data
you don't have a game. To be a coder, modeller and level designer at the
same time is a very big ask and unfortunately, knocking up shoddy test
media won't do justice to any game engine. Thankfully, the nice people
at id Software have made the source code to their amazing DOOM and Quake
games (apart from Quake 3 and DOOM 3) available for free! You can thus
use their source code as a 'playground' for trying out new graphics
techniques, for example, and see the results immediately by playing the
game itself. This is far more interesting to family and friends who
will gasp in awe at your amazing skill (well, actually, maybe not,
but nevermind eh). Hence, inspired by Tenebrae, a truly brilliant
modification of Quake, I took it upon myself to add realistic shadows to
the game by using a stencil buffer technique (which is well documented
in graphics literature), and better lighting by employing GLSL vertex
and fragment shaders.
Marc Poulhiès
2005-03-11 16:00:52 UTC
Permalink
Hi,
Post by David Mehrmann
M> "Sorry, this site is temporarily unavailable!"
Strange. Works fine for me, right now. Anyway, here is what this is
Not strange, stupid. Geocities limits the bandwidth usage for every
website they host. You need to wait until the website gets new
"bandwidth credit" (every hour or so).

Marc
Matthias Schuh
2005-03-12 16:13:19 UTC
Permalink
Post by Marc Poulhiès
Hi,
Post by David Mehrmann
M> "Sorry, this site is temporarily unavailable!"
Strange. Works fine for me, right now. Anyway, here is what this is
Not strange, stupid. Geocities limits the bandwidth usage for every
website they host. You need to wait until the website gets new
"bandwidth credit" (every hour or so).
Marc
Can somebody post the URl again ?

Thx

tuXist
David Mehrmann
2005-03-18 17:44:32 UTC
Permalink
In reply to Matthias Schuh


MS> Can somebody post the URl again ?

http://uk.geocities.com/symmetricdragon/

Loading...