[PD] pyext compile ubuntu

patco pat at mamalala.org
Thu Sep 25 22:06:01 CEST 2008


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 at iem.at mailing list
> >>>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/
> >>>> listinfo/pd-list
> >>>
> >>
> >
> >
> > _______________________________________________
> > Pd-list at iem.at mailing list
> > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> > listinfo/pd-list
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pybuffer.cpp.patch
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080925/00e68e30/attachment.bin>


More information about the Pd-list mailing list