Visualizzazione dei risultati da 1 a 9 su 9
  1. #1

    [Mac OS X] wxWidgets

    Ciao a tutti.
    Sto provando ad installare wxWidgets su Mac OS X 10.7 ma mi da dei problemi, malgrado io abbia seguito passo a passo questo wiki:

    WxWidgets_With_MacOS_X

    Ho lanciato questo comando:
    codice:
    ../configure --with-opengl --enable-debug
    Che ha dato il risultato seguente (e fin qui mi sembra tutto a posto):
    codice:
    Configured wxWidgets 2.8.12 for `i686-apple-darwin11.4.0'
    
      Which GUI toolkit should wxWidgets use?                 mac
      Should wxWidgets be compiled into single library?       no
      Should wxWidgets be compiled in debug mode?             yes
      Should wxWidgets be linked as a shared library?         yes
      Should wxWidgets be compiled in Unicode mode?           no
      What level of wxWidgets compatibility should be enabled?
                                           wxWidgets 2.4      no
                                           wxWidgets 2.6      yes
      Which libraries should wxWidgets use?
                                           jpeg               builtin
                                           png                builtin
                                           regex              sys
                                           tiff               builtin
                                           zlib               sys
                                           odbc               no
                                           expat              sys
                                           libmspack          no
                                           sdl                no
    Poi ho lanciato il comando make, ma la compilazione si interrompe con l'errore seguente:

    codice:
    In file included from ../include/wx/mac/private.h:4,
                     from ../src/common/dynlib.cpp:48:
    ../include/wx/mac/carbon/private.h:1459: error: ‘Cursor’ does not name a type
    ../include/wx/mac/carbon/private.h:1488: error: ‘ClassicCursor’ does not name a type
    make: *** [basedll_dynlib.o] Error 1
    Qualcuno più spiegarmi questo errore e come fare a risolverlo?

    Grazie.
    K. L. Thompson
    You can't trust code that you did not totally create yourself.
    A. Bogk
    UNIX is user-friendly, it just chooses its friends.

  2. #2
    Cercando un po' in google ho trovato questa linea di codice da aggiungere alle opzioni di configure:

    codice:
    --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6
    L'ho utilizzata tale e quale (anche se io sono su 10.7), perché cambiando in 10.7 la versione non cambiava niente. Così l'errore é scomparso ma ne ottengo un'altro...

    codice:
    ../src/common/intl.cpp: In static member function ‘static int wxLocale::GetSystemLanguage()’:
    ../src/common/intl.cpp:2060: error: ‘smScriptLang’ was not declared in this scope
    ../src/common/intl.cpp:2060: error: ‘GetScriptVariable’ was not declared in this scope
    ../src/common/intl.cpp:2061: warning: ‘GetScriptManagerVariable’ is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:993)
    ../src/common/intl.cpp:2061: warning: ‘GetScriptManagerVariable’ is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h:993)
    make: *** [basedll_intl.o] Error 1
    K. L. Thompson
    You can't trust code that you did not totally create yourself.
    A. Bogk
    UNIX is user-friendly, it just chooses its friends.

  3. #3
    La risposta al tuo problema qui
    ...

  4. #4
    Originariamente inviato da Caiodark
    La risposta al tuo problema qui
    Funziona. Grazie mille!!!
    K. L. Thompson
    You can't trust code that you did not totally create yourself.
    A. Bogk
    UNIX is user-friendly, it just chooses its friends.

  5. #5
    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
    K. L. Thompson
    You can't trust code that you did not totally create yourself.
    A. Bogk
    UNIX is user-friendly, it just chooses its friends.

  6. #6
    L'errore potrebbe essere il fatto che GLUquadric andrebbe chiamato GLUQuadric.
    ...

  7. #7
    Originariamente inviato da Caiodark
    L'errore potrebbe essere il fatto che GLUquadric andrebbe chiamato GLUQuadric.
    Ho cambiato e apparentemente ottengo lo stesso errore:
    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
    Utilizzo l'inclusione seguente se può servire:
    codice:
    #include "wx/wxprec.h"
    #ifndef WX_PRECOMP
    #include "wx/wx.h"
    #endif
    #include "wx/glcanvas.h" // Pour combiner wxWidgets et OpenGL
    K. L. Thompson
    You can't trust code that you did not totally create yourself.
    A. Bogk
    UNIX is user-friendly, it just chooses its friends.

  8. #8
    Ho aggiunto

    codice:
    #include<glut/glut.h>
    ai miei include e ora mi riconosce GLUquadric e varie. Però la compilazione continua ad avere un sacco di warnings e fallisce nella fase di linkaggio...


    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]
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Balle.o Balle.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o ChampForces.o ChampForces.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Dessinable.o Dessinable.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Exception.o Exception.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Ressort.o Ressort.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Integrateur.o Integrateur.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o IntegrateurEuler.o IntegrateurEuler.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o ObjetMobile.o ObjetMobile.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Obstacle.o Obstacle.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Pendule.o Pendule.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o PendulePlan.o PendulePlan.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o PlanInfini.o PlanInfini.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Vecteur.o Vecteur.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Systeme.o Systeme.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Balle3D.o Balle3D.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 Balle3D.h:13,
                     from Balle3D.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 PendulePlan3D.o PendulePlan3D.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 PendulePlan3D.h:10,
                     from PendulePlan3D.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 Brique3D.o Brique3D.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 Brique3D.cc:7:
    /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 Brique.o Brique.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o PlanInfini3D.o PlanInfini3D.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 PlanInfini3D.cc:7:
    /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 Ressort3D.o Ressort3D.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 Ressort3D.h:9,
                     from Ressort3D.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 Couleur.o Couleur.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 Couleur.cc:7:
    /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 IntegrateurNewmark.o IntegrateurNewmark.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Vent.o Vent.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Ventilateur3D.o Ventilateur3D.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Trampoline3D.o Trampoline3D.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o IntRungKut.o IntRungKut.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o ChampVitesse.o ChampVitesse.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o TapisRoulant3D.o TapisRoulant3D.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o PenduleSpherique.o PenduleSpherique.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Cylindre.o Cylindre.cc
    g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x   -c -o Cylindre3D.o Cylindre3D.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 Cylindre3D.h:8,
                     from Cylindre3D.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   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  `wx-config --libs gl,core,base` -o exerciceP13
    g++gcc-4.6.x: error: i386: No such file or directory
    g++gcc-4.6.x: error: unrecognized option ‘-arch’
    make: *** [exerciceP13] Error 1
    Qualche idea in merito?
    K. L. Thompson
    You can't trust code that you did not totally create yourself.
    A. Bogk
    UNIX is user-friendly, it just chooses its friends.

  9. #9
    Ho continuato un po' le mie ricerche e alla fine mi sembra di aver capito dov'é il problema...

    wxWidgets sotto Mac OS X ha bisogno dell'opzione -arch=i386 (come spiegato nel wiki ufficiale) per evitare alcuni errori di compilazione (che effettivamente ottenevo inizialmente). Però a quanto pare questa opzione funziona solo con un compilatore Apple (GCC modificato). Non sapevo nemmeno che vi fosse differenza tra i compilatori GCC scaricati dal sito ufficiale il il compilatore GCC (anche se é super vecchio) scaricato con XCode.

    codice:
    $ g++ --version
    i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
    Copyright (C) 2007 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    codice:
    $ g++gcc-4.6.x --version
    g++gcc-4.6.x (GCC) 4.6.2
    Copyright (C) 2011 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    La differenza, a parte il numero di versione, é la stringa seguente:
    codice:
    i686-apple-darwin11-llvm-
    A quanto pare solo il primo compilatore é in grado di gestire l'opzione arch=i386 (nessuna idea di cosa sia!), perché probabilmente é un opzione che ha aggiunto Apple.

    Il problema é che io ho utilizzato molte novità del C++11 nel mio programma e devo quindi utilizzare la versione 4.6.x di GCC (e quello della Apple é davvero obsoleto)...

    Qualcuno ha idea di come poter aggirare il problema? O almeno qualcuno può confermarmi che il problema é proprio questo (e magari consigliarmi di lasciar perdere)?

    Grazie.
    K. L. Thompson
    You can't trust code that you did not totally create yourself.
    A. Bogk
    UNIX is user-friendly, it just chooses its friends.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.