Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8425505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:17:20+00:00 2026-06-10T04:17:20+00:00

I’m trying to compile a project I made under Linux Ubuntu 10.4 with wxWidgets

  • 0

I’m trying to compile a project I made under Linux Ubuntu 10.4 with wxWidgets and OpenGL, written in C++ language, on my MacBook with Mac OS X 10.7 (Lion). I installed wxWidgets with this configuration:

$ arch_flags="-arch i386"
$ ../configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --enable-unicode --enable-debug --disable-shared --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 --with-opengl

Compiling, I obtains a lot of warnings. The compilation fails at the linking phase:

    [...]


    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   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

Here my Makefile et my includes on graphical classes headers:

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

Includes:

#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/glcanvas.h" // Pour combiner wxWidgets et OpenGL
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:17:22+00:00Added an answer on June 10, 2026 at 4:17 am

    I finally used Macports to install both GCC 4.7 +universal and wxWidgets. It worked very well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to select an H1 element which is the second-child in its group
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.