Ho provato a compilare il mio progetto di informatica, sviluppato con wxWidgets e OpenGL sotto Linux (Ubuntu, 10.04) ma non funziona. Mi da i seguenti errori:

codice:
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o exerciceP13.o exerciceP13.cc
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o GUI.o GUI.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
                 from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
                 from Fenetre.h:5,
                 from GUI.cc:2:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Fenetre.o Fenetre.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
                 from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
                 from Fenetre.h:5,
                 from Fenetre.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Vue_OpenGL.o Vue_OpenGL.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
                 from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
                 from Vue_OpenGL.h:5,
                 from Vue_OpenGL.cc:1:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
In file included from Vue_OpenGL.cc:3:0:
Balle3D.h:31:2: error: ‘GLUquadric’ does not name a type
Balle3D.h: In destructor ‘virtual Balle3D::~Balle3D()’:
Balle3D.h:26:32: error: ‘sphere’ was not declared in this scope
Balle3D.h:26:38: error: ‘gluDeleteQuadric’ was not declared in this scope
In file included from Vue_OpenGL.cc:4:0:
PendulePlan3D.h: At global scope:
PendulePlan3D.h:29:2: error: ‘GLUquadric’ does not name a type
PendulePlan3D.h: In destructor ‘virtual PendulePlan3D::~PendulePlan3D()’:
PendulePlan3D.h:24:38: error: ‘sphere’ was not declared in this scope
PendulePlan3D.h:24:44: error: ‘gluDeleteQuadric’ was not declared in this scope
In file included from Vue_OpenGL.cc:7:0:
Ressort3D.h: At global scope:
Ressort3D.h:32:2: error: ‘GLUquadric’ does not name a type
Ressort3D.h: In destructor ‘virtual Ressort3D::~Ressort3D()’:
Ressort3D.h:27:34: error: ‘sphere’ was not declared in this scope
Ressort3D.h:27:40: error: ‘gluDeleteQuadric’ was not declared in this scope
In file included from Vue_OpenGL.cc:14:0:
Cylindre3D.h: At global scope:
Cylindre3D.h:38:2: error: ‘GLUquadric’ does not name a type
Cylindre3D.h: In destructor ‘virtual Cylindre3D::~Cylindre3D()’:
Cylindre3D.h:33:35: error: ‘cylindre’ was not declared in this scope
Cylindre3D.h:33:43: error: ‘gluDeleteQuadric’ was not declared in this scope
Vue_OpenGL.cc: In member function ‘void Vue_OpenGL::dessine(wxPaintEvent&)’:
Vue_OpenGL.cc:56:26: error: ‘gluLookAt’ was not declared in this scope
Vue_OpenGL.cc: In member function ‘void Vue_OpenGL::InitOpenGL()’:
Vue_OpenGL.cc:237:42: error: ‘gluPerspective’ was not declared in this scope
make: *** [Vue_OpenGL.o] Error 1
Il Makefile, se può aiutare, é il seguente:
codice:
CC  = g++gcc-4.6.x
CXX = g++gcc-4.6.x


CXXFLAGS= `wx-config --cxxflags` -g -std=c++0x
LDLIBS   = `wx-config --libs gl,core,base`

all: exerciceP13

exerciceP13: exerciceP13.o GUI.o Fenetre.o Vue_OpenGL.o Balle.o ChampForces.o Dessinable.o Exception.o Ressort.o Integrateur.o IntegrateurEuler.o ObjetMobile.o Obstacle.o Pendule.o PendulePlan.o PlanInfini.o Vecteur.o Systeme.o Balle3D.o PendulePlan3D.o Brique3D.o Brique.o PlanInfini3D.o Ressort3D.o Couleur.o IntegrateurNewmark.o Vent.o Ventilateur3D.o Trampoline3D.o IntRungKut.o ChampVitesse.o TapisRoulant3D.o PenduleSpherique.o Cylindre.o Cylindre3D.o

exerciceP13.o: exerciceP13.cc GUI.h

GUI.o: GUI.h GUI.cc Fenetre.h

Fenetre.o: Fenetre.h Fenetre.cc Vue_OpenGL.h

Vue_OpenGL.o: Vue_OpenGL.h Vue_OpenGL.cc Systeme.h Balle3D.h PendulePlan3D.h PlanInfini.h Brique3D.h PlanInfini3D.h Ressort3D.h IntegrateurEuler.h IntegrateurNewmark.h Ventilateur3D.h Trampoline3D.h Vent.h IntRungKut.h ChampVitesse.h TapisRoulant3D.h Cylindre3D.h

Balle.o: Balle.h Balle.cc ObjetMobile.h Vecteur.h

Brique.o: Brique.h Brique.cc Obstacle.h Vecteur.h ObjetMobile.h

ChampForces.o: ChampForces.h ChampForces.cc Vecteur.h Balle.h Dessinable.h

Dessinable.o: Dessinable.h Dessinable.cc

Exception.o: Exception.h Exception.cc

Integrateur.o: Integrateur.h Integrateur.cc ObjetMobile.h

IntegrateurEuler.o: IntegrateurEuler.h IntegrateurEuler.cc Integrateur.h ObjetMobile.h

ObjetMobile.o: ObjetMobile.h ObjetMobile.cc Vecteur.h Dessinable.h

Obstacle.o: Obstacle.h Obstacle.cc Vecteur.h ObjetMobile.h Dessinable.h

Pendule.o: Pendule.h Pendule.cc ObjetMobile.h Vecteur.h

PendulePlan.o: PendulePlan.h PendulePlan.cc Pendule.h Vecteur.h Balle.h

PlanInfini.o: PlanInfini.h PlanInfini.cc Vecteur.h Obstacle.h

Vecteur.o: Vecteur.h Vecteur.cc Exception.h

Systeme.o: Systeme.h Systeme.cc ObjetMobile.h Obstacle.h ChampForces.h Integrateur.h Dessinable.h

Balle3D.o: Balle3D.h Balle3D.cc Balle.h Couleur.h

PendulePlan3D.o: PendulePlan3D.h PendulePlan3D.cc PendulePlan.h Couleur.h

Brique3D.o: Brique3D.h Brique3D.cc Brique.h Couleur.h

PlanInfini3D.o: PlanInfini.h PlanInfini.cc PlanInfini.h Couleur.h

Ressort.o: Ressort.cc Ressort.h Vecteur.h ObjetMobile.h

Ressort3D.o: Ressort3D.cc Ressort3D.h Ressort.h Couleur.h

Couleur.o: Couleur.h Couleur.cc

IntegrateurNewmark.o: IntegrateurNewmark.h IntegrateurNewmark.cc Integrateur.h

Vent.o: Vent.cc Vent.h Vecteur.h Brique.h ObjetMobile.h ChampForces.h Ventilateur3D.h

Ventilateur3D.o: Ventilateur3D.h Ventilateur3D.cc Vecteur.h Vent.h Systeme.h Brique3D.h Dessinable.h

Trampoline3D.o: Trampoline3D.h Trampoline3D.cc Brique3D.h ObjetMobile.h Systeme.h Dessinable.h

ChampVitesse.o: ChampVitesse.h ChampVitesse.cc Vecteur.h ChampForces.h ObjetMobile.h Brique.h TapisRoulant3D.h

TapisRoulant3D.o: TapisRoulant3D.h TapisRoulant3D.cc  Vecteur.h Brique3D.h Systeme.h ChampVitesse.h Dessinable.h

IntRungKut.o: IntRungKut.h IntRungKut.cc Integrateur.h ObjetMobile.h Vecteur.h

PenduleSpherique.o: PenduleSpherique.h PenduleSpherique.cc Pendule.h Vecteur.h

Cylindre.o: Cylindre.h Cylindre.cc Vecteur.h Obstacle.h ObjetMobile.h

Cylindre3D.o: Cylindre3D.h Cylindre3D.cc Vecteur.h Couleur.h Cylindre.h

clean:
	rm -f *.o