ich habe ein Problem mit bzflag. Weil ich erst seit Kurzem mit Debian arbeite weiss ich nicht wo ich ansetzen soll.
System:
Kernel 2.6.0-test9
Xfree 4.3.0 mit Nvidia Treiber
gcc 3.3.2
Ich habe mir bzflag installiert.
Code: Alles auswählen
bzflag -window -geometry 800x600
Nun zu meinem Problem.
Ich habe mir die Sources runtergeladen um das Spiel selber zu compilieren.
Beim make erhalte ich folgende Fehlermeldung:
Code: Alles auswählen
<cut>
make[4]: Entering directory `/opt/src/bzflag/bzflag-1.7g2/src/geometry/models'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/opt/src/bzflag/bzflag-1.7g2/src/geometry/models'
make[3]: Leaving directory `/opt/src/bzflag/bzflag-1.7g2/src/geometry/models'
make[3]: Entering directory `/opt/src/bzflag/bzflag-1.7g2/src/geometry'
c++ -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/include -D_BSD_SOURCE -D_POSIX_SOURCE -I../../include -Wall -W -mcpu=i686 -fno-exceptions -O2 -ffast-math
-fomit-frame-pointer -fexpensive-optimizations -c ViewFrustum.cxx
In file included from ViewFrustum.cxx:16:
../../include/bzfgl.h:35:19: GL/gl.h: No such file or directory
../../include/bzfgl.h:36:20: GL/glu.h: No such file or directory
In file included from ../../include/ViewFrustum.h:21,
from ViewFrustum.cxx:17:
../../include/bzfgl.h:35:19: GL/gl.h: No such file or directory
../../include/bzfgl.h:36:20: GL/glu.h: No such file or directory
In file included from ViewFrustum.cxx:17:
../../include/ViewFrustum.h:31: error: ISO C++ forbids declaration of `GLfloat'
with no type
../../include/ViewFrustum.h:31: error: parse error before `*' token
../../include/ViewFrustum.h:32: error: ISO C++ forbids declaration of `GLfloat'
with no type
../../include/ViewFrustum.h:32: error: declaration of `const int
ViewFrustum::GLfloat'
</cut>
/usr/share/doc/NVIDIA_GLX-1.0/include/GL/gl.h
Die GL/glu.h ist gar nicht vorhanden. Den Xserver habe ich aus dem experimental Zweig.
Was habe ich übersehen?
Der Xserver wurde mit
Code: Alles auswählen
apt-get install xserver-xfree86