Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
OSX - problema installazione WxWidget
Forum - OSX - problema installazione WxWidget

Avatar
munkaka (Member)
Pro


Messaggi: 119
Iscritto: 07/09/2008

Segnala al moderatore
Postato alle 18:26
Sabato, 27/02/2010
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 http://www.wxwidgets.org/downloads/#latest_stable 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:
Codice sorgente - presumibilmente Delphi

  1. Giacomo-Rosilho-De-Souza:untitled folder Giacomo$ make
  2. c++ -c -o main.o main.cpp `wx-config --cxxflags`  `wx-config --libs gl,core,base`
  3. In file included from /usr/include/wx-2.8/wx/mac/glcanvas.h:4,
  4.                  from /usr/include/wx-2.8/wx/glcanvas.h:60,
  5.                  from main.cpp:5:
  6. /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)
  7. /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)
  8. main.cpp:41: error: ISO C++ forbids declaration of ‘GLUquadric’ with no type
  9. main.cpp:41: error: expected ‘;’ before ‘*’ token
  10. main.cpp: In destructorvirtual Vue_OpenGL::~Vue_OpenGL():
  11. main.cpp:25: error: ‘sphere’ was not declared in this scope
  12. main.cpp:25: error: ‘gluDeleteQuadric’ was not declared in this scope
  13. main.cpp: In constructor ‘Vue_OpenGL::Vue_OpenGL(wxWindow*, const wxSize&, const wxPoint&):
  14. main.cpp:98: error: class ‘Vue_OpenGL’ does not have any field named ‘sphere’
  15. main.cpp:98: error: ‘gluNewQuadric’ was not declared in this scope
  16. main.cpp: In member function ‘void Vue_OpenGL::dessine(wxPaintEvent&):
  17. main.cpp:122: error: ‘gluLookAt’ was not declared in this scope
  18. main.cpp:131: error: ‘sphere’ was not declared in this scope
  19. main.cpp:131: error: ‘gluSphere’ was not declared in this scope
  20. main.cpp: In member function ‘void Vue_OpenGL::InitOpenGL():
  21. main.cpp:268: error: ‘gluPerspective’ was not declared in this scope
  22. make: *** [main.o] Error 1



riuscite a vedere il problema?

Ultima modifica effettuata da munkaka il 27/02/2010 alle 18:27
PM Quote