[Insight-users] Recent regression: can't wrap non-apple Python on Darwin/OS X
Zachary Pincus
zpincus at stanford.edu
Mon, 16 Feb 2004 14:22:25 -0800
> How big is _ITKBasicFiltersPython.so? I think this library has grown
> so large that the Mac cannot handle it anymore as a dynamically loaded
> library. We are currently making some major changes to help get Java
> support working, so when those are done we can split the library into
> multiple smaller libraries to work-around this problem.
The file is 47 megs (!).
Nevertheless, when ITK is linked against the Apple Python framework, as
opposed to my external python, I don't get the "Fatal Python error:
Interpreter not initialized (version mismatch?)" problem.
Instead, I get a "missing symbol" problem -- *this* problem may in fact
be related to the size of the shared library (since when I run nm, I
can see the symbol in the library...)
This is the same problem I got with ITK 1.6 when I linked it against my
external python.
In summary: There seem to be *two* problems (I think). The first is
that in the CVS ITK, you can't properly link the SWIG libraries against
a non-apple python. The second is that once you get them linked against
any python, the libraries can't load properly, possibly because of
their size.
Perhaps these are manifestations of the same problem, but they do
appear to be somewhat different.
Zach Pincus