Clam-NetworkEditor

I've been trying to compile clam-networkeditor-1.4.0 on gentoo. When I run scons I get this error:

In file included from src/widgets/generated/moc_QFirstPerson.cxx:10:0: src/widgets/generated/../QFirstPerson.hxx:348:15: error: function definition does not declare parameters src/widgets/generated/../QFirstPerson.hxx: In member function ‘virtual void QFirstPerson::paintScene()’: src/widgets/generated/../QFirstPerson.hxx:202:21: error: ‘((QFirstPerson*)this)->QFirstPerson::sphere’ cannot be used as a function src/widgets/generated/../QFirstPerson.hxx: In member function ‘void QFirstPerson::drawLight(float*, float*, const char*, const QColor&)’: src/widgets/generated/../QFirstPerson.hxx:231:20: error: ‘((QFirstPerson*)this)->QFirstPerson::sphere’ cannot be used as a function scons: * [src/widgets/generated/generated/moc_QFirstPerson.os] Error 1 scons: building terminated because of errors.

line 202:
virtual void paintScene()
{
glMaterialfv(GL_FRONT, GL_DIFFUSE, vColor("white"));
glMaterialfv(GL_FRONT, GL_AMBIENT, vColor("white"));
glMaterialfv(GL_FRONT, GL_SPECULAR, vColor("#333"));
glMaterialf(GL_FRONT, GL_SHININESS, 0);
glColor4fv(vColor(Qt::white));
roomWall(-1.75, -1);
roomWall(-1, 0);
roomWall(0, 1);
roomWall(1, 1.75);
qglColor(Qt::yellow);
drawPlane(-1.75);
glColor4fv(vColor("#aaa"));
drawPlane(+1.75);
qglColor(QColor("#ffa"));
renderText(0., 1, 10.-1, "North (+Y)");
renderText(0., 1, -10.+1, "South (-Y)");
renderText(10.-1, 1, 0., "East (+X)");
renderText(-10.+1, 1, 0., "West (-X)");
glPushMatrix();
glColor4fv(vColor("#b22"));
glTranslatef(_sourceX,0,_sourceY);
renderText(0., 1, 0., "Source");
glBegin(GL_LINES);
glVertex3f(0.,1.,0.);
glVertex3f(0.,0.,0.);
glEnd();
gluSphere(sphere(), 0.5f, 40, 20);
glPopMatrix();
}

line 231:
void drawLight(float * position, float * direction, const char * label, const QColor & color)
{
glPushMatrix();
glColor4fv(vColor(color));
glTranslatef(position[0],position[1],position[2]);
renderText(0., 2, 0., label);
glMaterialfv(GL_FRONT, GL_EMISSION, vColor(color));
glBegin(GL_LINES);
glVertex3f(0.,0.,0.);
glVertex3fv(direction);
glVertex3f(0.,2.,0.);
glVertex3f(0.,0.,0.);
glEnd();
gluSphere(sphere(), 0.2f, 40, 20);
glMaterialfv(GL_FRONT, GL_EMISSION, vColor("black"));
glPopMatrix();
}


line 348:
private:
GLUquadric * sphere
{
if (!_sphere) _sphere = gluNewQuadric();
return _sphere;
}

S0 what do I need to do to fix it.
Last edited on
Topic archived. No new replies allowed.