gcc compile errors ?
Hi, ive been trying to install BillardGL
www.billardgl.de i tried the binary rpm, it didnt like my glibc version, so i decided to compile from source, ( so it uses my version) redhat 9 fresh install. (oh yes, and im aware that the the gam needs Nvidia type cards to run, and i have a nvidia GeForce 4, im using the correct drivers, and opengl is loaded and functioning properly) anyway, i get lots of errors which apear t obe programming errors :( why is this ? since you can download the binary packages, the source must be able to compile, so what am i doing wrong rpmbuild --rebuild thesource.src.rpm here are my error messages, they dont pop up untill the buildstage. In file included from Anzeige.cpp:15: Anzeige.h:12: `GLfloat' was not declared in this scope Anzeige.h:12: invalid data member initialization Anzeige.h:12: (use `=' to initialize static data members) Anzeige.h:12: variable or field `setzeStossStaerke' declared void Anzeige.h:15: 'GLfloat' is used as a type, but is not defined as a type. In file included from Anzeige.cpp:19: createTexture.h:9: type specifier omitted for parameter `GLint' createTexture.h:9: type specifier omitted for parameter `GLint' createTexture.h:9: type specifier omitted for parameter `GLint' createTexture.h:10: type specifier omitted for parameter `GLint' createTexture.h:10: type specifier omitted for parameter `GLint' createTexture.h:10: type specifier omitted for parameter `GLint' createTexture.h:12: syntax error before `;' token Anzeige.cpp: In constructor `Anzeige::Anzeige()': Anzeige.cpp:26: `StossStaerke' undeclared (first use this function) Anzeige.cpp:26: (Each undeclared identifier is reported only once for each function it appears in.) Anzeige.cpp: In member function `void Anzeige::male()': Anzeige.cpp:38: `glPushMatrix' undeclared (first use this function) Anzeige.cpp:39: `GL_QUADS' undeclared (first use this function) Anzeige.cpp:39: `glBegin' undeclared (first use this function) Anzeige.cpp:40: `glColor4f' undeclared (first use this function) Anzeige.cpp:41: `glVertex2f' undeclared (first use this function) Anzeige.cpp:52: `glEnd' undeclared (first use this function) Anzeige.cpp:53: `glPopMatrix' undeclared (first use this function) Anzeige.cpp: At global scope: Anzeige.cpp:60: `GLfloat' was not declared in this scope Anzeige.cpp:60: parse error before `)' token Anzeige.cpp:60: no `void Anzeige::setzeStossStaerke(...)' member function declared in class `Anzeige' Anzeige.cpp: In member function `void Anzeige::setzeStossStaerke(...)': Anzeige.cpp:61: `neuStossStaerke' undeclared (first use this function) make: *** [Anzeige.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.5427 (%build) RPM build errors: user stefan does not exist - using root Bad exit status from /var/tmp/rpm-tmp.5427 (%build) |
Looks like the header gl.h was not included/found.
#include <GL/gl.h> is the usual way to include it. Looks like this isn't the only problem with the includes though. Perhaps this is somehow related to this "stefan" and maybe his home directory ? |
ThanX, ill try that
|
All times are GMT -5. The time now is 08:10 AM. |