Thanks. The 3 step fix you gave worked great. There were a couple of other
files that I had to change in a similar way. The files were misc2.cpp and
filesys.cpp. The MIPSPro flag for this I think is -no_auto_include, but it
didn't work right. Thanks so much for your help!
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, February 27, 2002 2:27 PM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] Problems loading wxPython on SGI
...
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!
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users