Hello,
As I noted on comp.lang.python, I have been having some difficulties building
wxPython 2.2.x on Solaris 2.6 with Python 1.5.2, wxGTK 2.2.2, and glib/gtk+
1.2.8, using gcc 2.95.1 and binutils 2.10. I have tried the following
combinations of flags and incantations:
* Use -fPIC throughout, even specifying it in Python's Makefile's OPT
variable, and making sure that the installed config/Makefile has it.
* Use -Xlinker --enable-dynamic in Python's Modules/Makefile's
LINKFORSHARED variable, and accepting the defaults for wxGTK (I think
it uses -fPIC) and wxPython.
Using either approach, the demo will start and show the initial window, but then
a segmentation fault occurs. When tracing with gdb, various wxWindows methods
are shown to be the location of the crash, sometimes in wxString::IsEmpty,
supposedly.
Without either of the above approaches, any attempt to load the wxPython.wxc
library will fail, listing various Python symbols as being missing; the second
approach above is given in the Python FAQ as the remedy for this problem on
Solaris 2.7.
Laurent Pasquer was kind enough to give some advice after my comp.lang.python
posting, recommending a clean rebuild of Python with the configure option
--with-thread and with -D_REENTRANT added to Python's Makefile's OPT variable
(which I never seemed to need before). He then recommended a rebuild of wxGTK
with the configure options --with-gtk --enable-static --enable-permissive (I
didn't use --enable-static before). Finally, he gave more or less standard
instructions for building wxPython 2.2.1.
His advice is appropriate for wxPython 2.2.1 (thanks Laurent!), but building
wxPython 2.2.2 doesn't get us to the same point. With wxPython 2.2.1, the demo
runs satisfactorily - there is some strange background colouring repainting
issues in the main pane of the demo window, but that could be me running the
programs remotely.
So, what could be the crucial difference?
Regards,
Paul
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users