On Fri, Jan 23, 2015 at 2:30 PM, Cyrille Henry <ch@chnry.net> wrote:


Le 23/01/2015 13:18, Alexandros Drymonitis a écrit :


On Fri, Jan 23, 2015 at 1:46 PM, IOhannes m zmölnig <zmoelnig@iem.at <mailto:zmoelnig@iem.at>> wrote:

    On 01/23/2015 10:06 AM, Alexandros Drymonitis wrote:
    > I've compiled Pd-0.46-4 from source, but I'd like to install some
    > libraries. Will apt-get work, or do I have to compile them as well?

    Pd goes to some length to stay binary compatible, so you can use the
    "pd-*" packages without a problem.

    the main obstacle will be the search path: your self-compiled Pd will
    most likely search the libraries in /usr/local/lib/pd/extra whereas the
    pd-* packages install to /usr/lib/pd/extra/

I had something like that in mind, but the Pd compiled from source didn't create a /usr/local/lib/pd directory. Everything is lying in it's own directory (in this case /home/pi/applications/pd-0.46-4/ ).
make is only compiling pd.
if you want to install pd, use make install (this require root privilege, so "sudo make install" will create the dir etc)
Did that and got this at the end:
/usr/bin/install: omitting directory `./doc/7.stuff/soundfile-tools'
/usr/bin/install: omitting directory `./doc/7.stuff/synth'
/usr/bin/install: omitting directory `./doc/7.stuff/tools'
Makefile:795: recipe for target 'install-nobase_dist_libpdDATA' failed
make[3]: *** [install-nobase_dist_libpdDATA] Error 1
make[3]: Leaving directory '/home/pi/applications/pd-0.46-4'
Makefile:1178: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/pi/applications/pd-0.46-4'
Makefile:847: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/pi/applications/pd-0.46-4'
Makefile:1172: recipe for target 'install' failed
make: *** [install] Error 2

/usr/local/bin/pd now exists, as well as  /usr/local/lib/pd, but there were some stuff missing from the latter. doc/7.stuff/ had only the synth/ directory (I copied all the missing stuff from /home/pi/applications/pd-0.46-4/doc/7/stuff) and 4.data.structures/ was missing altogether. Also bin/ had only pd and pd-watchdog, but no pdsend and pdreceive (also copied from /home/pi/applications/pd-0.46-4/bin).

Pd launches, but doesn't really work. I get this message in Pd's console when it starts :API 1 not supported, reverting to 2 (OSS)
and opening testtone.pd, results in these messages:
/dev/dsp (read/write): No such file or directory
(now will try write-only...)
/dev/dsp (writeonly): No such file or directory
/dev/dsp (readonly): No such file or directory
audio I/O stuck... closing audio

and the audio won't work...

Still, if I launch Pd from /home/pi/applications/pd-0.46-4/bin/pd everything works fine, except that it crashes with some externals I tried to use..

cheers
c

Should I create the /usr/local/lib directory?
Forgot to mention that I haven't installed Pd with apt-get, so there's no /usr/lib/pd either..


    simply adding /usr/lib/pd/extra to your search path should fix that.

    gfmrdsa
    IOhannes



    _______________________________________________
    Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list
    UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list




_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list