hi Thomas and Patco, i had the same errors as you Patco but i finally managed to compile pyext on hardy, python2.5 this way: get sources from
svn co https://svn.grrrr.org/ext/trunk/flext svn co https://svn.grrrr.org/ext/trunk/py
compile flext compile py: cd py
bash ../flext/build.sh pd gcc edit config.txt # what is the base prefix of the Python installation? PYTHONPREFIX=/usr
# which Python version do you want to compile against? PYTHONVERSION=2.5
# uncomment if numpy/numarray/numeric support should be compiled in # for info see http://numeric.scipy.org # PY_NUMPY=1 PY_NUMARRAY=1 # PY_NUMERIC=1
# use thread-safe GIL functionality (do this for python version >= 2.3!) # PY_USE_GIL=1
# use inofficial (pure data) functionality # PY_USE_INOFFICIAL=1
best regards, vincent
Thomas Grill a écrit :
Hi, i just realized that you have numeric (and not numpy) installed. While py/pyext supports all three flavors of Python array packages
(numarray, numeric and numpy) methinks that numpy is the only
canonical choice at this time, while the others are outdated.
Therefore, the py/pyext build system is geared to numpy. gr~~~Am 25.09.2008 um 22:06 schrieb patco:
hello, I've got py working but it wasn't easy:
py/pyext 0.2.1pre - python script objects (C)2002-2008 Thomas Grill - http://grrrr.org/ext
using Python 2.5.2 (r252:60911, Jul 31 2008, 17:44:49) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
Python array support enabled
attached is a very dirty patch of file that misses Numeric path, sorry I don't know enough c++ to do something better.
Le jeudi 25 septembre 2008 à 18:28 +0200, Thomas Grill a écrit :
Ooops, sorry i missed the $ locate command. If adjusting things in config.txt doesn't work check out the scripts in the build folder that are relevant for your platform. gr~~~
Am 25.09.2008 um 17:30 schrieb Thomas Grill:
Hi, with the poor remainders of my knowledge of the french language i would suppose that you don't have "numerical Python" (numpy) installed. You can a) Install it and adjust the paths in config.txt b) comment out NUMPY=1 or whatever indicates usage of numpy in config.txt
gr~~~
Am 25.09.2008 um 15:59 schrieb patco:
Hello,
I've rebuilt flext with sources from https://svn.grrrr.org/ext/ trunk
and py with both sources from puredata svn and grrrr svn gives this error:
source/pybuffer.cpp:36:33: erreur: numpy/arrayobject.h : Aucun fichier ou dossier de ce type
$ locate arrayobject.h /usr/include/python2.4/Numeric/arrayobject.h /usr/include/python2.5/Numeric/arrayobject.h
thanks for answers
Le jeudi 25 septembre 2008 à 15:15 +0200, Thomas Grill a écrit :
Hi, from which svn did you download? The pd svn is outdated and not the authoritative source. Please follow the links on http://puredata.info/Members/thomas/ gr~~~
Am 24.09.2008 um 16:42 schrieb patco:
> hi, > > I've just downloaded flext and py sources from svn, and tried
> with > both > python 2.4 and 2.5, same errors: > > > $ bash ../flext/build.sh pd gcc build > make -f ../flext/buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd > COMPILER=gcc BUILDPATH=../flext/buildsys/ PKGINFO=package.txt > BUILDCLASS=ext USRCONFIG=config.txt USRMAKE=build/gnumake-lnx- > gcc.inc > TARGETMODE=release TARGETTYPE=multi THREADED=1 _build_ > make[1]: entrant dans le répertoire « /home/patco/Bureau/pd- > devel/ > py » > mkdir -p pd-linux/release-multi > mkdir -p pd-linux/release-multi/ > g++ -c -msse -mfpmath=sse -ffast-math -O3 -march=pentium4 - > pthread > -fPIC -DPY_EXPORTS -DPY_NUMPY -DPY_USE_GIL -DNDEBUG - > DFLEXT_THREADS > -DFLEXT_SYS=2 -DPD -I/usr/include/python2.5 > -I/home/patco/Bureau/pd-devel/pd/src -I/usr/include/stk > -I/usr/include/sndobj -I/usr/include/flext source/main.cpp -o > pd-linux/release-multi/main.opp > In file included from source/pybase.h:16, > from source/main.cpp:13: > source/main.h:34: erreur: expected class-name before «{» token > In file included from source/main.cpp:13: > /usr/include/flext/flcontainers.h: In member function «void > TypedFifo<T>::Put(T*) [with T = FifoEl]»: > source/pybase.h:181: instantiated from here > /usr/include/flext/flcontainers.h:456: erreur: no matching
> function > for > call to «TypedFifo<FifoEl>::Put(FifoEl*)» > /usr/include/flext/flcontainers.h:405: note: candidats sont: void > Fifo::Put(Lifo::Cell*) > /usr/include/flext/flcontainers.h: In member function «T* > TypedLifo<T>::Pop() [with T = FifoEl]»: > /usr/include/flext/flcontainers.h:466: instantiated from «T* > PooledFifo<T, M, O>::New() [with T = FifoEl, int M = 2, int O
> = 1]» > source/pybase.h:179: instantiated from here > /usr/include/flext/flcontainers.h:380: erreur: invalid
> static_cast > from > type «Lifo::Cell*» to type «FifoEl*» > make[1]: *** [pd-linux/release-multi/main.opp] Erreur 1 > make[1]: quittant le répertoire « /home/patco/Bureau/pd-devel/ > py » > make: *** [build-release-multi] Erreur 2 > > > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list >
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
<pybuffer.cpp.patch>
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list