I'm a newbie in Linux and have installed Ubuntu 12.04. I have a running Pd vanilla (0.44-3), but wanting to use jack, I got the latest version (0.45-4) and recompiled.
My steps for both versions were: extract the downloaded file to my home directory (I've made a directory there called 'apps'), and cd to that directory, ./autogen.sh then ./configure --enable-jack (btw, at the end of configure, there was a JACK....no), then make and sudo make install. If I type pd in a terminal I get Pd-0.44-3 working fine (without jack). My question is, how do I get to open Pd-0.45.4? Is pd a symbolic link pointing at the pd binary? If so, how do I make it point at the newer version? And where is this link located?
Also, in the beginning I installed Pd-extended but then uninstalled it, and had some compiling efforts with vanilla that didn't work. Going through my system, I see that there are some pd files in /usr/bin/, in /etc/alternatives/, in /usr/share/man/man1, some of which are broken symbolic links (some from the extended installation), maybe some places else too...with a proper compilation aren't things supposed to go to /usr/local/ ? Should I remove any file that's in the directories above?
On 2013-12-29 12:03, Alexandros Drymonitis wrote:
I'm a newbie in Linux and have installed Ubuntu 12.04. I have a running Pd vanilla (0.44-3), but wanting to use jack, I got the latest version (0.45-4) and recompiled.
My steps for both versions were: extract the downloaded file to my home directory (I've made a directory there called 'apps'), and cd to that directory, ./autogen.sh then ./configure --enable-jack (btw, at the end of configure, there was a JACK....no),
you are probably missing the jack development packages. run $ sudo aptitude install libjack-jackd2-dev
(alternatively, just install all the packages needed to build the puredata package: "sudo aptitude build-depends puredata"; note however that the puredata package is built against jack1 (and can be used with jack2) - but the development packages of jack1 might conflict with your jack2 installation)
then make and sudo make install.
good.
If I type pd in a terminal I get Pd-0.44-3 working fine (without jack). My
bad.
question is, how do I get to open Pd-0.45.4? Is pd a symbolic link pointing at the pd binary? If so, how do I make it point at the newer version? And where is this link located?
probably you messed with your path. after successfully running "make install" the "pd" binary should be installed to "/usr/local/bin/pd" (unless you changed that when running configure; in any case you should examine the output of "make install", as it will show where it installed the files to).
but: when running "pd", your system will search in it's PATH for the first "pd" binary it can find.
what's the output of the following command: $ which pd what's the output of: $ echo $PATH
you can force to run a given binary by specifying it's full path: $ /usr/local/bin/pd or $ /usr/bin/pd
the alternatives stuff,... is only used by the deb-packages of puredata and pdx.
gfmdra IOhannes
On Sun, Dec 29, 2013 at 2:49 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 2013-12-29 12:03, Alexandros Drymonitis wrote:
I'm a newbie in Linux and have installed Ubuntu 12.04. I have a running
Pd
vanilla (0.44-3), but wanting to use jack, I got the latest version (0.45-4) and recompiled.
My steps for both versions were: extract the downloaded file to my home directory (I've made a directory there called 'apps'), and cd to that directory, ./autogen.sh then ./configure --enable-jack (btw, at the end
of
configure, there was a JACK....no),
you are probably missing the jack development packages. run $ sudo aptitude install libjack-jackd2-dev
did it, though my version of jack is 1.9.8, so I guess there will be a conflict? I reinstalled pd and can open it with the -jack flag, but I get these errors in the terminal
Cannot connect to server socket err = No such file or directory Cannot connect to server socket jackdmp 1.9.8 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2011 Grame. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Cannot create thread 1 Operation not permitted Cannot create thread 1 Operation not permitted Cannot create thread 1 Operation not permitted JACK server starting in realtime mode with priority 10 Cannot lock down 82241434 byte memory area (Cannot allocate memory) control device hw:0 control device hw:0 audio_reservation_init Acquire audio card Audio0 creating alsa driver ... hw:0|hw:0|1024|3|44100|0|0|nomon|swmeter|-|32bit control device hw:0 configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 3 periods ALSA: final selected sample format for capture: 32bit integer little-endian ALSA: use 3 periods for capture ALSA: final selected sample format for playback: 32bit integer little-endian ALSA: use 3 periods for playback Cannot use real-time scheduling (RR/10)(1: Operation not permitted) AcquireSelfRealTime error Cannot lock down 82241434 byte memory area (Cannot allocate memory) open: /etc/pd/gem.conf: No such file or directory open: /home/alexandros/.pd/gem.conf: No such file or directory open: ./gem.conf: No such file or directory
and in the pd console:
JACKerror: Cannot use real-time scheduling (RR/5)(1: Operation not permitted) JACKerror: JackClient::AcquireSelfRealTime error
when trying the test audio and midi patch I get sound but from my laptop speakers...
(alternatively, just install all the packages needed to build the puredata package: "sudo aptitude build-depends puredata"; note however that the puredata package is built against jack1 (and can be used with jack2) - but the development packages of jack1 might conflict with your jack2 installation)
then make and sudo make install.
good.
If I type pd in a terminal I get Pd-0.44-3 working fine (without jack).
My
bad.
question is, how do I get to open Pd-0.45.4? Is pd a symbolic link
pointing
at the pd binary? If so, how do I make it point at the newer version? And where is this link located?
probably you messed with your path. after successfully running "make install" the "pd" binary should be installed to "/usr/local/bin/pd" (unless you changed that when running configure; in any case you should examine the output of "make install", as it will show where it installed the files to).
but: when running "pd", your system will search in it's PATH for the first "pd" binary it can find.
It appears that all the pd file in /usr/local/ (either lib/ or bin/)were overwritten by the new installation. If I type pd I get the 0.45-4 version.
what's the output of the following command: $ which pd what's the output of: $ echo $PATH
you can force to run a given binary by specifying it's full path: $ /usr/local/bin/pd or $ /usr/bin/pd
the alternatives stuff,... is only used by the deb-packages of puredata and pdx.
gfmdra IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 29/12/13 16:35, Alexandros Drymonitis wrote:
JACKerror: Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
you should configure your system to allow jack to use RT scheduling: http://jackaudio.org/linux_rt_config
cheers, y
On Sun, Dec 29, 2013 at 5:34 PM, yvan volochine yvan.pd@gmail.com wrote:
On 29/12/13 16:35, Alexandros Drymonitis wrote:
JACKerror: Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
you should configure your system to allow jack to use RT scheduling: http://jackaudio.org/linux_rt_config
I guess that did the trick! Thanks a lot guys
cheers, y
-- http://yvanvolochine.com http://soundcloud.com/yvanvolochine http://soundcloud.com/elgusanorojo http://github.com/gusano http://vimeo.com/yv
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
On Sun, Dec 29, 2013 at 6:09 PM, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 2013-12-29 16:35, Alexandros Drymonitis wrote:
Cannot connect to server socket err = No such file or directory Cannot connect to server socket
start jack first. then start Pd with "-jack".
Now this is a bit weird, I start jack with the realtime and firewire flags, and pd might or might not start up wth jack (with "-jack"). I tried it and it worked the first and second time, but now pd just can't see jack...
fgmadsr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Sun, Dec 29, 2013 at 6:31 PM, Alexandros Drymonitis adrcki@gmail.comwrote:
On Sun, Dec 29, 2013 at 6:09 PM, IOhannes m zmölnig zmoelnig@iem.atwrote:
On 2013-12-29 16:35, Alexandros Drymonitis wrote:
Cannot connect to server socket err = No such file or directory Cannot connect to server socket
start jack first. then start Pd with "-jack".
Now this is a bit weird, I start jack with the realtime and firewire flags, and pd might or might not start up wth jack (with "-jack"). I tried it and it worked the first and second time, but now pd just can't see jack...
I'm trying with specified the realtime mode in jack or without. Without specifying I start jack and I get these messages
jackdmp 1.9.8 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2011 Grame. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details JACK server starting in realtime mode with priority 10 libffado 2.999.0- built Feb 17 2012 15:52:28
It seems to be working, right?
But when I start pd with -jack I get this
Cannot connect to server socket err = No such file or directory Cannot connect to server socket jack server is not running or cannot be started
How can it be that pd run a couple of times with jack and all was fine and now it just can't start with jack again?
fgmadsr
IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I've realized that I need to open pd with sudo in order to have it work with jack (I also have to open jack with sudo in order to use the firewire). There's still some strange behaviour though. Sometimes pd will open but without jack. What I get in jack's terminal window when pd can't see jack is:
JackProcessSync::LockedTimedWait error usec = 426660 err = Connection timed out JackEngine::ClientActivate wait error ref = 2 name = pure_data_0 JackEngine::XRun: client = pure_data_0 was not run: state = 1 JackAudioDriver::ProcessGraphAsyncMaster: Process error
And in the pd console I get: cannot activate client
Most of the times though, pd will open and it will work fine with jack. Never the less, these two lines appear in the jack terminal window:
JackEngine::XRun: client = pure_data_0 was not run: state = 2 JackAudioDriver::ProcessGraphAsyncMaster: Process
and when I close pd (after it has opened with jack) this will appear in jack's terminal:
JackEngine::XRun: client = pure_data_0 was not run: state = 1 JackAudioDriver::ProcessGraphAsyncMaster: Process error
and the following line will be printed seven times:
Cannot write socket fd = 51 err = Broken pipe
I guess I can live with that, but it's a bit strange and it would be nice if I had the reason this is happening explained.. Just to refresh, I'm on ubuntu 12.04 with pd-0.45-4 and jack 1.9.8 I run this $ sudo aptitude install libjack-jackd2-dev tha Iohannes suggested and followed this http://jackaudio.org/linux_rt_config as yvan suggested
On Sun, Dec 29, 2013 at 8:19 PM, Alexandros Drymonitis adrcki@gmail.comwrote:
On Sun, Dec 29, 2013 at 6:31 PM, Alexandros Drymonitis adrcki@gmail.comwrote:
On Sun, Dec 29, 2013 at 6:09 PM, IOhannes m zmölnig zmoelnig@iem.atwrote:
On 2013-12-29 16:35, Alexandros Drymonitis wrote:
Cannot connect to server socket err = No such file or directory Cannot connect to server socket
start jack first. then start Pd with "-jack".
Now this is a bit weird, I start jack with the realtime and firewire flags, and pd might or might not start up wth jack (with "-jack"). I tried it and it worked the first and second time, but now pd just can't see jack...
I'm trying with specified the realtime mode in jack or without. Without specifying I start jack and I get these messages
jackdmp 1.9.8 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2011 Grame. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details JACK server starting in realtime mode with priority 10 libffado 2.999.0- built Feb 17 2012 15:52:28
It seems to be working, right?
But when I start pd with -jack I get this
Cannot connect to server socket err = No such file or directory Cannot connect to server socket jack server is not running or cannot be started
How can it be that pd run a couple of times with jack and all was fine and now it just can't start with jack again?
fgmadsr
IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 2013-12-30 14:29, Alexandros Drymonitis wrote:
I've realized that I need to open pd with sudo in order to have it work with jack (I also have to open jack with sudo in order to use the firewire).
both the jack server (jackd) and it's clients (pd) *must* run as the same user.
you definitely should *not* use sudo for starting either jack nor pd. find out how to use jack/firewire as an ordinary user (in the relevant forums; or maybe somebody else here can give you advice; me, i don't use firewire soundcards atm).
fmdadsr IOhannes
On 30/12/13 14:29, Alexandros Drymonitis wrote:
I've realized that I need to open pd with sudo in order to have it work with jack (I also have to open jack with sudo in order to use the firewire).
as IOhannes said, you _should not_ do that..
(if you do it could mean that you did not add yourself to the audio
group, as suggested by my previous link)
how do you start jack? can you post here the full command?
y
On Mon, Dec 30, 2013 at 4:12 PM, yvan volochine yvan.pd@gmail.com wrote:
On 30/12/13 14:29, Alexandros Drymonitis wrote:
I've realized that I need to open pd with sudo in order to have it work with jack (I also have to open jack with sudo in order to use the firewire).
as IOhannes said, you _should not_ do that.. (if you do it could mean that you did not add yourself to the
audio
group, as suggested by my previous link)
Ok, I was opening jack with sudo before you posted the link, now I can indeed open it without sudo and it will see the firewire, no prob. So I'm also opening pd without sudo, but I get the same behaviour. Sometimes it works, sometimes it doesn't.
how do you start jack? can you post here the full command?
jack -d firewire (I use & if I want to open pd from the same terminal window, but don't really know how to turn off jack afterwards..)
y
-- http://yvanvolochine.com http://soundcloud.com/yvanvolochine http://soundcloud.com/elgusanorojo http://github.com/gusano http://vimeo.com/yv
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
On 30/12/13 15:30, Alexandros Drymonitis wrote:
Ok, I was opening jack with sudo before you posted the link, now I can indeed open it without sudo and it will see the firewire, no prob. So I'm also opening pd without sudo, but I get the same behaviour. Sometimes it works, sometimes it doesn't.
what happens when you launch jack and in another terminal run pd
"normally", i.e. just pd
..
don't you have "jack" in the "media" menu?
y
On Mon, Dec 30, 2013 at 4:30 PM, yvan volochine yvan.pd@gmail.com wrote:
On 30/12/13 15:30, Alexandros Drymonitis wrote:
Ok, I was opening jack with sudo before you posted the link, now I can indeed open it without sudo and it will see the firewire, no prob. So I'm also opening pd without sudo, but I get the same behaviour. Sometimes it works, sometimes it doesn't.
what happens when you launch jack and in another terminal run pd "normally", i.e. just
pd
.. don't you have "jack" in the "media" menu?
True, just tried twice, once I got the : 'cannot activate client' in pd's console, and the other not. Audio run both times fine (actually I played a bit before and had a few drop outs. Could it be cause of the big block size used by jack by default?). What if I want to open Pd -nogui? use audio-dialog would work?
y
-- http://yvanvolochine.com http://soundcloud.com/yvanvolochine http://soundcloud.com/elgusanorojo http://github.com/gusano http://vimeo.com/yv
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
On 30/12/13 15:44, Alexandros Drymonitis wrote:
what happens when you launch jack and in another terminal run pd
"normally", i.e. just
pd
.. don't you have "jack" in the "media" menu?True, just tried twice, once I got the : 'cannot activate client' in pd's console, and the other not.
well I dunno what's going on..
maybe rebuild pd just for a try? (and check that it says "Jack YES"
after configure --enable-jack
)
it works flawlessly for me with jackdmp-1.9.9.5 and pd-0.45.0
cheers, y
On 2013-12-30 15:41, yvan volochine wrote:
On 30/12/13 15:44, Alexandros Drymonitis wrote:
what happens when you launch jack and in another terminal run pd
"normally", i.e. just
pd
.. don't you have "jack" in the "media" menu?True, just tried twice, once I got the : 'cannot activate client' in pd's console, and the other not.
well I dunno what's going on.. maybe rebuild pd just for a try? (and check that it says "Jack YES" after
configure --enable-jack
)
no this cannot be it. either Pd is built with jack support or without. if it has been build without jack support, then there won't be a "jack" option at all.
it works flawlessly for me with jackdmp-1.9.9.5 and pd-0.45.0
so alexandros: does it work reliably with *other* applications? (supercollider, vlc, mplayer,...)
gfdsar IOhannes