[PD] pb with pyext and readanysf~ on OSX
Thomas Grill
gr at grrrr.org
Mon Dec 19 21:05:25 CET 2005
Hi Vincent,
>
> Pyext and readanysf~ compiled fine on osx with flext 0.5.1.
>
> Readanysf~ compilation needs a bit of tuning though, in the Makefiles:
> - FLEXT_NOGLOBALNEW should be replaced by FLEXT_USE_CMEM
> - and -lflext should be replaced by -lflext-pd
>
in case one is using the flext cvs version, right!
> by the way (this is not that important here), i can't compile pyext
> with pynumarray:
> /System/Library/Frameworks/Python.framework/Headers/numarray/
> nummacro.h:27: error: parse
> error before `;' token
> make[1]: *** [pd-darwin/release-multi/pybuffer.opp] Error 1
> make: *** [build-release-multi] Error 2
>
> it looks like it comes from this line
>
> typedef struct
> {
>
>
> PyObject_HEAD
>
> PyObject *operator; /* ufunc name */
>
well, i'll have to look at that... which numarray version are you using?
>
> It is possible to launch pd39.2 with readanysf or pyext separetely
> but when i try to load both, i get;
> ------------------------------------------------
> py/pyext 0.2.1pre - python script objects
> (C)2002-2005 Thomas Grill - http://grrrr.org/ext
>
> using Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)]
> ------------------------------------------------
>
> link error 0 dyld: /Applications/pd39.app/Contents/Resources/bin/pd
> multiple definitions of symbol _initialized
> /data/pdlibs/py.pd_darwin definition of _initialized
> /usr/local/lib/libflext-pd.dylib(flthr.opp) definition of _initialized
>
> readanysf~: can't load library
that's a known problem....
http://sourceforge.net/tracker/index.php?
func=detail&aid=1378927&group_id=55736&atid=478072
There are two workarounds:
- change the options to NSLinkModule in s_loader.c as described above
and recompile pd
- build all flext externals using the flext shared library (build.sh pd
gcc build-release-shared)
greetings,
Thomas
More information about the Pd-list
mailing list