<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hi Thomas and Patco,<br>
i had the same errors as you Patco<br>
but i finally managed to compile pyext on hardy, python2.5 this way:<br>
get sources from<br>
<pre class="code">svn co <a class="moz-txt-link-freetext" href="https://svn.grrrr.org/ext/trunk/flext">https://svn.grrrr.org/ext/trunk/flext</a>
svn co <a class="moz-txt-link-freetext" href="https://svn.grrrr.org/ext/trunk/py">https://svn.grrrr.org/ext/trunk/py</a>
</pre>
compile flext<br>
compile py:<br>
cd py<br>
<pre class="code">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 <a class="moz-txt-link-freetext" href="http://numeric.scipy.org">http://numeric.scipy.org</a>
# PY_NUMPY=1
PY_NUMARRAY=1
# PY_NUMERIC=1

# use thread-safe GIL functionality (do this for python version &gt;= 2.3!)
# PY_USE_GIL=1

# use inofficial (pure data) functionality
# PY_USE_INOFFICIAL=1


</pre>
best regards,<br>
vincent<br>
<br>
<br>
Thomas Grill a &eacute;crit&nbsp;:
<blockquote cite="mid:E0DCC28C-ECAF-44B5-99E3-32130D416381@grrrr.org"
 type="cite">
  <pre wrap="">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:

  </pre>
  <blockquote type="cite">
    <pre wrap="">hello, I've got py working but it wasn't easy:

py/pyext 0.2.1pre - python script objects
(C)2002-2008 Thomas Grill - <a class="moz-txt-link-freetext" href="http://grrrr.org/ext">http://grrrr.org/ext</a>

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 &agrave; 18:28 +0200, Thomas Grill a &eacute;crit :
    </pre>
    <blockquote type="cite">
      <pre wrap="">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:

      </pre>
      <blockquote type="cite">
        <pre wrap="">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:

        </pre>
        <blockquote type="cite">
          <pre wrap="">Hello,

I've rebuilt flext with sources from <a class="moz-txt-link-freetext" href="https://svn.grrrr.org/ext/">https://svn.grrrr.org/ext/</a> 
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 &agrave; 15:15 +0200, Thomas Grill a &eacute;crit :
          </pre>
          <blockquote type="cite">
            <pre wrap="">Hi,
from which svn did you download?
The pd svn is outdated and not the authoritative source. Please
follow the links on <a class="moz-txt-link-freetext" href="http://puredata.info/Members/thomas/">http://puredata.info/Members/thomas/</a>
gr~~~

Am 24.09.2008 um 16:42 schrieb patco:

            </pre>
            <blockquote type="cite">
              <pre wrap="">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&eacute;pertoire &laquo; /home/patco/Bureau/pd- 
devel/
py &raquo;
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 &laquo;{&raquo; token
In file included from source/main.cpp:13:
/usr/include/flext/flcontainers.h: In member function &laquo;void
TypedFifo&lt;T&gt;::Put(T*) [with T = FifoEl]&raquo;:
source/pybase.h:181:   instantiated from here
/usr/include/flext/flcontainers.h:456: erreur: no matching  
function
for
call to &laquo;TypedFifo&lt;FifoEl&gt;::Put(FifoEl*)&raquo;
/usr/include/flext/flcontainers.h:405: note: candidats sont: void
Fifo::Put(Lifo::Cell*)
/usr/include/flext/flcontainers.h: In member function &laquo;T*
TypedLifo&lt;T&gt;::Pop() [with T = FifoEl]&raquo;:
/usr/include/flext/flcontainers.h:466:   instantiated from &laquo;T*
PooledFifo&lt;T, M, O&gt;::New() [with T = FifoEl, int M = 2, int O  
= 1]&raquo;
source/pybase.h:179:   instantiated from here
/usr/include/flext/flcontainers.h:380: erreur: invalid  
static_cast
from
type &laquo;Lifo::Cell*&raquo; to type &laquo;FifoEl*&raquo;
make[1]: *** [pd-linux/release-multi/main.opp] Erreur 1
make[1]: quittant le r&eacute;pertoire &laquo; /home/patco/Bureau/pd-devel/ 
py &raquo;
make: *** [build-release-multi] Erreur 2



_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/">http://lists.puredata.info/</a>
listinfo/pd-list
              </pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/">http://lists.puredata.info/</a>
listinfo/pd-list
        </pre>
      </blockquote>
      <pre wrap="">&lt;pybuffer.cpp.patch&gt;
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->

_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>

  </pre>
</blockquote>
<br>
</body>
</html>