[wxPython] wxPython 2.2.x on Solaris

Mark W. Alexander wrote:

FWIW, I've been having the same problem on Solaris. My first
attempt was with 2.2.2, so when it didn't work I immediately
fell back to 2.2.1. I still have the same problem. The only
difference I see from your list is that I've got gtk 1.2.8.
The point here being: I don't think it's distutils related.
I'll try to make some time next week to step through all you
points and try again.

I'm using glib 1.2.8 and gtk 1.2.8, wxGTK 2.2.2, and wxPython 2.2.1 on Solaris
2.6.

glib and gtk were configured using:

  ./configure --prefix=...

wxGTK was configured using:

  ./configure --with-gtk --enable-static --enable-permissive --prefix=...

wxPython was then built as instructed, with the WXWIN environment variable set
to the prefix previously given. I also had to make sure that my PATH variable
was set to point to the prefix's bin directory, and I think my LD_LIBRARY_PATH
was set to point to the prefix's lib directory.

Before I installed wxPython, I went into my Python site-packages directory and
removed the wxPython directory to ensure that it was a clean installation. You
might want to check in your Python lib directory for any wxPython shared
libraries; the Python lib directory also has to exist in your LD_LIBRARY_PATH
after installation in order to get wxPython programs working.

I was also advised to add -D_REENTRANT to my Python Makefile before rebuilding
Python, but I never needed to do this before and never experienced any negative
consequences, but I did it anyway. One definite Makefile change is the
definition of LINKFORSHARED in Python's Modules/Makefile to -Xlinker
--export-dynamic. Unless you start compiling everything with the -fPIC flag,
this definition seems to be essential to avoid complaints about unresolved
symbols from the Python executable itself.

As for the other components, it is also essential to use the --enable-permissive
when configuring wxGTK due to problems with Solaris' X headers. I never
specified --enable-static before, so I don't know how essential this flag is.

I hope this helps somewhat!

Regards,

Paul

ยทยทยท

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users