[wxPython] FreeBSD?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] FreeBSD?

Gregory Velichansky

  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
utilscmodule.so  wxcmodule.so
jennyanydots# python
Python 1.5.2 (#2, May 11 1999, 17:14:37)  [GCC 2.7.2.1] 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)
jennyanydots#

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.

Please, can anybody help? I need a clue.

Greg Velichansky



_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users




Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] FreeBSD?

Robin Dunn
>
> 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
>

Add misc2.o here.

--
Robin Dunn
Software Craftsman
[hidden email]
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!




_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users