[wxPython] Problems loading wxPython on SGI

Please help me if you can. I am doing a software development plan for a
project and we are considering using wxPython, but I'm afraid I'll have to
choose another language. It works great on Linux, but I can't get it to
work on SGI's. I'm running IRIX 6.5 on an R10000. Using glib-1.2.10,
gtk+-1.2.10, wxGTK-2.3.2, Python, Python 2.2, and wxPython-2.3.2. Does
anybody have a list of the tricks to make this work? Currently I've forced
the links and stuff to use the MIPSPro C++ compiler version 7.2.1.2m (CC).
Here's the error that I get. Any ideas? Thanks.

~> python
Python 2.2 (#19, Feb 27 2002, 09:55:37) [C] on irix646
Type "help", "copyright", "credits" or "license" for more information.

from wxPython.wx import *

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/cfd/private/people/a60201/lib/python2.2/site-packages/wxPython/wx.py",
line 6, in ?
    from misc2 import *
  File
"/cfd/private/people/a60201/lib/python2.2/site-packages/wxPython/misc2.py",
line 16, in ?
    from utils import *
  File
"/cfd/private/people/a60201/lib/python2.2/site-packages/wxPython/utils.py",
line 2, in ?
    import utilsc
ImportError: 46009:python: rld: Fatal Error: unresolvable symbol in
/cfd/private/people/a60201/lib/python2.2/site-packages/wxPython/utilsc.so:
__vtbl__21wxwxStringPtrListNode

···

...

but I can't get it to
work on SGI's. I'm running IRIX 6.5 on an R10000. Using glib-1.2.10,
gtk+-1.2.10, wxGTK-2.3.2, Python, Python 2.2, and wxPython-2.3.2. Does
anybody have a list of the tricks to make this work? Currently I've

forced

the links and stuff to use the MIPSPro C++ compiler version 7.2.1.2m (CC).
Here's the error that I get. Any ideas? Thanks.

...

  File

"/cfd/private/people/a60201/lib/python2.2/site-packages/wxPython/utils.py",

line 2, in ?
    import utilsc
ImportError: 46009:python: rld: Fatal Error: unresolvable symbol in
/cfd/private/people/a60201/lib/python2.2/site-packages/wxPython/utilsc.so:
__vtbl__21wxwxStringPtrListNode
>>>

If it's getting to utilsc then it has already imported wxc.so which has
imported the wxGTK shared library. That's usually the spot where errors
like this show up if they are going to, so you've gotten further along that
you probably think...

Of course that knowledge doesn't help you much so the real trick is to
figure out why the error is happening and how to fix it... wxStringPtrList
and *Node are not used at all in the utilsc module, but they are declared in
a header that is included by it. So does anybody know if MIPSPro C++
requires to have implementations available for classes it has declatations
for? If so that seems like a broken compiler to me... If you can please
check the docs for the compiler to see if there is any flag or anything that
can be set to turn this off. Otherwise you could try the following:

1. Edit wxPython/src/helpers.h and cut the section containing
"WX_DECLARE_LIST(wxString, wxStringPtrList);" and "class wxPyInputStream
{...}" and paste it into a new file, say pyistream.h.

2. Edit wxPython/src/gtk/streams.cpp and wxPython/src/gtk/filesys.cpp and in
both files right after the '#include "helpers.h"' add a line containing
'#include "pyistream.h"'

3. Go back to the root wxPython directory, remove the build subdir, and then
rebuild wxPython.

HTH,

···

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

2. Edit wxPython/src/gtk/streams.cpp and wxPython/src/gtk/filesys.cpp and

in

both files right after the '#include "helpers.h"' add a line containing
'#include "pyistream.h"'

You will also need to add it to wxPython/src/helpers.cpp

···

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