Oppure

Loading
27/02/10 17:26
munkaka
ciao
per il secondo semestre dobbiamo fare una simulazione grafica in c++ e utilizzeremo wxwidget e opengl.
Il mio sistema è MacOSX 10.6. Per installare wxwidget ho scaricato una cartella da wxwidgets.org/downloads/ e ho seguito le istruzioni che cerano nel file install-mac.txt. All'inizio non compilava perchè c'era un problema con l architettura 64bit ma poi ho trovato la soluzione sul sito e sono riuscito a compilare e terminare l installazione. Ho provato a compilare uno degli esempi che danno loro (samples) e funziona, però se cerco di compilare qualcosa di mio non funziona. Mi restituisce questo:
Giacomo-Rosilho-De-Souza:untitled folder Giacomo$ make
c++ -c -o main.o main.cpp `wx-config --cxxflags`  `wx-config --libs gl,core,base`
In file included from /usr/include/wx-2.8/wx/mac/glcanvas.h:4,
                 from /usr/include/wx-2.8/wx/glcanvas.h:60,
                 from main.cpp:5:
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
/usr/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
main.cpp:41: error: ISO C++ forbids declaration of ‘GLUquadric’ with no type
main.cpp:41: error: expected ‘;’ before ‘*’ token
main.cpp: In destructor ‘virtual Vue_OpenGL::~Vue_OpenGL()’:
main.cpp:25: error: ‘sphere’ was not declared in this scope
main.cpp:25: error: ‘gluDeleteQuadric’ was not declared in this scope
main.cpp: In constructor ‘Vue_OpenGL::Vue_OpenGL(wxWindow*, const wxSize&, const wxPoint&)’:
main.cpp:98: error: class ‘Vue_OpenGL’ does not have any field named ‘sphere’
main.cpp:98: error: ‘gluNewQuadric’ was not declared in this scope
main.cpp: In member function ‘void Vue_OpenGL::dessine(wxPaintEvent&)’:
main.cpp:122: error: ‘gluLookAt’ was not declared in this scope
main.cpp:131: error: ‘sphere’ was not declared in this scope
main.cpp:131: error: ‘gluSphere’ was not declared in this scope
main.cpp: In member function ‘void Vue_OpenGL::InitOpenGL()’:
main.cpp:268: error: ‘gluPerspective’ was not declared in this scope
make: *** [main.o] Error 1


riuscite a vedere il problema?
Ultima modifica effettuata da munkaka 27/02/10 17:27
aaa