Hello! For various reasons I’m attempting to compile Pd on a headless raspberry pi 3 running Debian 11 (“bullseye”) (with no desktop environment).
It compiles just fine, and I can open a patch, but when I run Pd it can not find any audio or midi devices. I believe this is because of the settings when I compile. I get the following messages if I run a patch: error: audio input device number (0) out of range error: audio output device number (0) out of range
If I ask for the list of devices using “-listdev” it says:
no audio input devices found no audio output devices found API number 4 no MIDI input devices found no MIDI output devices found
When I configure the build, it gives me the following information: fftw: no wish(tcl/tk): wish watchdog: yes audio APIs: PortAudio OSS midi APIs: OSS libpd: no
In the build instructions it describes OSS as a "historical precursor to ALSA, generally not used”. So I imagine that it is best avoided.
One final clue - if I install Pd using apt-get, the audio works fine. However this is an older build (0.51.4) and I would like to use some of the new objects in the newer releases of Pd. I assume that this older build was compiled for alsa.
Assuming that this is the root of my issue (a big assumption), I can’t seem to find a way in the build settings to use alsa instead when I compile. Is there any way to set that up?
Otherwise, if I am misunderstanding the problem more generally I apologise and would gratefully taken any other suggestions.
Thanks!
Yann
On Tue, 2024-11-05 at 10:52 +0100, Yann Seznec wrote:
It compiles just fine, and I can open a patch, but when I run Pd it can not find any audio or midi devices.
For ALSA (and JACK) backends to be detected, you need the respective headers to be installed. For ALSA, you need libasound2-dev, for JACK you need libjack-jackd2-dev.
sudo apt install libasound2-dev libjack-jackd2-dev
Then run ./configure again and it should detect the backends.
Roman
On 11/5/24 12:04, reduzent@gmail.com wrote:
On Tue, 2024-11-05 at 10:52 +0100, Yann Seznec wrote:
It compiles just fine, and I can open a patch, but when I run Pd it can not find any audio or midi devices.
For ALSA (and JACK) backends to be detected, you need the respective headers to be installed. For ALSA, you need libasound2-dev, for JACK you need libjack-jackd2-dev.
sudo apt install libasound2-dev libjack-jackd2-dev
Then run ./configure again and it should detect the backends.
I think you should run ./configure --enagle-jack if you want it to detect jack.
That's perfect, thanks. I had previously attempted to install libasound2-dev, but only after I had configured. Doing this in the wrong order meant that (of course) it didn't work right! Starting again from scratch and installing libasound2-dev as you describe did the trick and it works now.