Hi Thomas,<br><br>I hope someone will find the time to integrate the flext-based externals into<br>
the autobuild structure.<br><br>Sorry but I can&#39;t: it&#39;s beyond my skills.<br><br>I&#39;ve got another problem now (ubuntu 9.04 64-bit machine PD 0.42.5):<br><br>in the example buffer-1.pd (py/pyext) there&#39;s a strange behaviour:<br>
the message [mul array3 array1 array2&lt; works only on the first half of the array3<br>instead the message [add array3 array1 array2&lt;<br><br>the difference is in th buffer.py:<br><br>def mul(*args):<br>    # create buffer objects<br>
    # as long as these variables live the underlying buffers are locked<br>    c = pyext.Buffer(args[0])<br>    a = pyext.Buffer(args[1])<br>    b = pyext.Buffer(args[2])<br><br>    # slicing causes Python arrays (mapped to buffers) to be created<br>
    # note the c[:] - to assign contents you must assign to a slice of the buffer<br>    c[:] = a[:]*b[:]  <br>    <br>def add(*args):<br>    c = pyext.Buffer(args[0])<br>    a = pyext.Buffer(args[1])<br>    b = pyext.Buffer(args[2])<br>
<br>    # explicit casting to arrays is also possible<br>    c[:] = N.array(a,dtype=N.float32) + N.array(b,dtype=N.float32)<br><br>therefore I think that: <br>- the direct use of the buffer doesn&#39;t work well (printing the values give me something like &quot;0 0.123 0 0.234 0 0.345 etc.. &quot; - correct values followed by a zero)<br>
- the casting works well<br><br>My questions are: <br>- am I missing some basic concept?<br>- this behaviour is correct (I don&#39;t think so)?<br>- this behaviour is due to the 64-bit?<br><br>Thanks, ciao, Dario.<br><br>
PS: Sorry for the bad english.<br><br><br><div class="gmail_quote">2010/3/11 Thomas Grill <span dir="ltr">&lt;<a href="mailto:gr@grrrr.org">gr@grrrr.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">thanks for your kind words. I haven&#39;t given up the hope that someday<br>
someone will find the time to integrate the flext-based externals into<br>
the autobuild structure and, consequently, pd-extended.<br>
gr~~~<br>
<br>
2010/3/9 Dario Pedrioli &lt;<a href="mailto:dariopedrioli@gmail.com">dariopedrioli@gmail.com</a>&gt;:<br>
</div><div><div></div><div class="h5">&gt; Thanks a lot Thomas.<br>
&gt;<br>
&gt; Now it compile fine!<br>
&gt;<br>
&gt; I pick the occasion to say that your work for pd (flext, pool, py, etc...)<br>
&gt; is fantastic. Many many many thanks!<br>
&gt;<br>
&gt; ciao, Dario<br>
&gt;<br>
&gt; 2010/3/9 Thomas Grill &lt;<a href="mailto:gr@grrrr.org">gr@grrrr.org</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi Dario,<br>
&gt;&gt; please check out py from svn and try again.<br>
&gt;&gt; gr~~~<br>
&gt;&gt; Am 09.03.2010 um 09:48 schrieb Dario Pedrioli:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to compile py/pyext on ubuntu 9.04 64-bit machine PD 0.42.5<br>
&gt;&gt;<br>
&gt;&gt; with flext rev 3659 I&#39;ve got no problems.<br>
&gt;&gt;<br>
&gt;&gt; with flext rev 3723 I&#39;ve got the error below:<br>
&gt;&gt;<br>
&gt;&gt; ubuntu@ubuntu-desktop:~/pd/<br>
&gt;&gt; source/py_3723$ sh ../flext_3723/build.sh pd gcc<br>
&gt;&gt; make -f ../flext_3723/buildsys/gnumake-sub.mak  PLATFORM=lnx RTSYS=pd<br>
&gt;&gt; COMPILER=gcc BUILDPATH=../flext_3723/buildsys/ PKGINFO=package.txt<br>
&gt;&gt; BUILDCLASS=ext USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc<br>
&gt;&gt; TARGETMODE=release TARGETTYPE=multi THREADED=1 _build_<br>
&gt;&gt; make[1]: ingresso nella directory ?/home/ubuntu/pd/source/py_3723?<br>
&gt;&gt; mkdir -p pd-linux/release-multi/<br>
&gt;&gt; g++ -c     -pthread -fPIC -fvisibility-inlines-hidden -DPY_EXPORTS<br>
&gt;&gt; -DPY_NUMPY -DPY_USE_GIL -DNDEBUG -DFLEXT_THREADS -DFLEXT_SYS=2 -DPD<br>
&gt;&gt; -I/usr/include/python2.6 -I/home/ubuntu/pd/source/pd-0.42-5/src<br>
&gt;&gt; -I/usr/local/include/stk -I/usr/local/include/sndobj<br>
&gt;&gt; -I/usr/local/include/flext source/pybuffer.cpp -o<br>
&gt;&gt; pd-linux/release-multi/pybuffer.opp<br>
&gt;&gt; source/pybuffer.cpp:154: warning: deprecated conversion from string<br>
&gt;&gt; constant<br>
&gt;&gt; to ?char*?<br>
&gt;&gt; source/pybuffer.cpp: In function ?int buffer_ass_slice(PyObject*,<br>
&gt;&gt; Py_ssize_t, Py_ssize_t, PyObject*)?:<br>
&gt;&gt; source/pybuffer.cpp:406: error: no matching function for call to<br>
&gt;&gt; ?flext_multi::CopySamples(flext_multi::buffer::Element*, t_sample*, int&amp;)?<br>
&gt;&gt; /usr/local/include/flext/flsupport.h:425: note: candidates are: static<br>
&gt;&gt; void<br>
&gt;&gt; flext_multi::CopySamples(t_sample*, const t_sample*, int)<br>
&gt;&gt;<br>
&gt;&gt; Someone can help?<br>
&gt;&gt;<br>
&gt;&gt; PS: I&#39;m trying rev 3723 because of 64-bit buffer patch (<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://markmail.org/message/6v52tlvllwvcwilj#query:+page:1+mid:6hpplp4wfi4u6vkc+state:results" target="_blank">http://markmail.org/message/6v52tlvllwvcwilj#query:+page:1+mid:6hpplp4wfi4u6vkc+state:results</a>&lt;<a href="mailto:gr@grrrr.org">gr@grrrr.org</a>&gt;<br>

&gt;&gt; )<br>
&gt;&gt; My goal is to handle arrays directly in python, but with the rev 3659 I&#39;m<br>
&gt;&gt; only get half of the array inside py (the other half is set to zero). Am I<br>
&gt;&gt; on the right way to fix my problem?<br>
&gt;&gt;<br>
&gt;&gt; Thanks and ciao!<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pd-dev mailing list<br>
&gt;&gt; <a href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a><br>
&gt;&gt; <a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><div><div></div><div class="h5">--<br>
Thomas Grill<br>
<a href="http://grrrr.org" target="_blank">http://grrrr.org</a><br>
</div></div></blockquote></div><br>