#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Somewhere over the Rainbow
    Posts
    128
    Rep Power
    12

    Trouble with wxPython


    Hi, I have a problem installing wxPython. When I try with: python setup.py build install the following error shows up error: command 'gcc' failed with exit status 1 .....

    contrib/glcanvas/gtk/glcanvas.cpp:937: `WX_GL_MIN_ACCUM_RED' undeclared (first use this function)
    contrib/glcanvas/gtk/glcanvas.cpp:938: `WX_GL_MIN_ACCUM_GREEN' undeclared
    (first use this function)
    contrib/glcanvas/gtk/glcanvas.cpp:939: `WX_GL_MIN_ACCUM_BLUE' undeclared (first use this function)
    contrib/glcanvas/gtk/glcanvas.cpp:940: `WX_GL_MIN_ACCUM_ALPHA' undeclared
    (first use this function)


    What could be the problem. Thanks a lot.
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Just a guess but i'd say that your C/C++ compiler can't compile the wxWindows source because this and that is not defined.. no idea how to fix this though sorry

    Mark.
    programming language development: www.netytan.com Hula

  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,641
    Rep Power
    4247
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Somewhere over the Rainbow
    Posts
    128
    Rep Power
    12
    Hey. Thanks both. I fixed it with the below line:

    python setup.py BUILD_GLCANVAS=0 build install

    Thanks a lot.

IMN logo majestic logo threadwatch logo seochat tools logo