I'm trying to get wxPython working on FreeBSD. I finally got it built
but it doesn't work. Here are the details...
trying to "import wcx" produces an error:
jennyanydots# cd /usr/local/lib/python1.5/wxPython/
jennyanydots# ls *.so
Python 1.5.2 (#2, May 11 1999, 17:14:37) [GCC 220.127.116.11] on freebsd3
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import wxc
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: ./wxcmodule.so: Undefined symbol "initmisc2c"
>>> [Ctrl-D is pressed here]
Bus error (core dumped)
I'm using FreeBSD 3.2; the kernel, wxGTK, and wxPython were built with gcc
2.95. Python was installed from the package included with FreeBSD.
wxPython is version 2.1b2, wxGTK is 2.1.0-b8.
The makefile rule to link wxcmodule.so had to be modified to:
c++ -shared wx.o helpers.o windows.o events.o misc.o gdi.o mdi.o
controls.o controls2.o windows2.o cmndlgs.o frames.o stattool.o windows3.o
-DSEPARATE -L/home/hmaon/wxGTK/lib/Linux -L/usr/X11R6/lib -lwx_gtk-2.1
-lgtk12 -lgdk12 -lglib12 -lXext -lX11 -o wxcmodule.so
Come to think of it, '/home/hmaon/wxGTK/lib/Linux' doesn't exist but the
wxWindows libraries are installed in /usr/local/lib. Changing -lgtk12,
etc. to -lgtk10, etc. has no effect.
Of course, initmisc2c() is found in wx.i on line 136 and again on 168 but
I'm not familiar with swig yet and can't infer much from that file.