wxPython 2.5 installation problem (gtkfeatures and glcanvas)

Hi,
I am experiencing few problems trying to install wxPython2.5. Could you help me
I am able to build it but when I try to install it using `python2.3 setup.py build_ext --debug --inplace` , I get these errors:

contrib/glcanvas/gtk/glcanvas_wrap.cpp: In function `void init_glcanvas()':
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1414: error: `WX_GL_RGBA' undeclared
   (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1415: error: `WX_GL_BUFFER_SIZE'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1416: error: `WX_GL_LEVEL' undeclared
   (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1417: error: `WX_GL_DOUBLEBUFFER'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1418: error: `WX_GL_STEREO' undeclared
   (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1419: error: `WX_GL_AUX_BUFFERS'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1420: error: `WX_GL_MIN_RED' undeclared
   (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1421: error: `WX_GL_MIN_GREEN'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1422: error: `WX_GL_MIN_BLUE' undeclared
   (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1423: error: `WX_GL_MIN_ALPHA'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1424: error: `WX_GL_DEPTH_SIZE'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1425: error: `WX_GL_STENCIL_SIZE'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1426: error: `WX_GL_MIN_ACCUM_RED'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1427: error: `WX_GL_MIN_ACCUM_GREEN'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1428: error: `WX_GL_MIN_ACCUM_BLUE'
   undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1429: error: `WX_GL_MIN_ACCUM_ALPHA'
   undeclared (first use this function)
error: command 'gcc' failed with exit status 1

Even if I do not compile the GLCANVAS module I get errors with the other modules (OGL, STC, ...).

And when I change the UNICODE and WXPORT to 1 and gtk2 respectively (what I would like) I get that error:
In file included from src/helpers.cpp:30:
/usr/local/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: No such file or directory
error: command 'gcc' failed with exit status

I have both version of gtk installed (1.2 and 2.2).

Thank you,
Mathieu

Mathieu Drapeau wrote:

Hi,
I am experiencing few problems trying to install wxPython2.5. Could you help me
I am able to build it but when I try to install it using `python2.3 setup.py build_ext --debug --inplace` , I get these errors:

contrib/glcanvas/gtk/glcanvas_wrap.cpp: In function `void init_glcanvas()':
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1414: error: `WX_GL_RGBA' undeclared
  (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1415: error: `WX_GL_BUFFER_SIZE'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1416: error: `WX_GL_LEVEL' undeclared
  (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1417: error: `WX_GL_DOUBLEBUFFER'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1418: error: `WX_GL_STEREO' undeclared
  (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1419: error: `WX_GL_AUX_BUFFERS'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1420: error: `WX_GL_MIN_RED' undeclared
  (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1421: error: `WX_GL_MIN_GREEN'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1422: error: `WX_GL_MIN_BLUE' undeclared
  (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1423: error: `WX_GL_MIN_ALPHA'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1424: error: `WX_GL_DEPTH_SIZE'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1425: error: `WX_GL_STENCIL_SIZE'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1426: error: `WX_GL_MIN_ACCUM_RED'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1427: error: `WX_GL_MIN_ACCUM_GREEN'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1428: error: `WX_GL_MIN_ACCUM_BLUE'
  undeclared (first use this function)
contrib/glcanvas/gtk/glcanvas_wrap.cpp:1429: error: `WX_GL_MIN_ACCUM_ALPHA'
  undeclared (first use this function)
error: command 'gcc' failed with exit status 1

Check the output of wxGTK's configure. It probably found that you don't have the GL headers installed or something and so skipped building it. Setting BUILD_GLCANVAS=0 is the right thing to do in this case.

Even if I do not compile the GLCANVAS module I get errors with the other modules (OGL, STC, ...).

Did you also build and install the 4 contrib libs as shown in step 2 of the build instructions?

And when I change the UNICODE and WXPORT to 1 and gtk2 respectively (what I would like) I get that error:
In file included from src/helpers.cpp:30:
/usr/local/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: No such file or directory
error: command 'gcc' failed with exit status

Did you build a gtk2/unicode version of wxGTK? The above error indicates that it is trying to use the gtk1 version. If you do have both versions installed then you probably need to tell setup.py to use different version of wx-config using the WX_CONFIG command line setting.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!