ALSA lib return error cannot open shared library .../libasound_module_pcm_pulse.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am trying to use ALSA according to this site https:/
After snapping I get the following error:
ALSA lib control.
ALSA lib control.
ALSA lib control.
ALSA lib dlmisc.
ALSA lib dlmisc.
Fail to open PortAudio stream, error message is Device unavailable.
If you need some code to try I can create public project in github
snapcraft.yaml :
name: app-name
base: core18
version: '0.2' # Just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
#grade: stable # must be 'stable' to release into candidate/stable channels
#confinement: strict # use 'strict' once you have the right plugs and slots
grade: devel # Must be 'stable' to release into candidate/stable channels
confinement: devmode
#architectures: [all]
parts:
alsa-mixin:
plugin: nil
source: https:/
override-pull: |
cat > asound.conf <<EOF
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
EOF
cat > alsa-launch <<EOF
#!/bin/bash
export ALSA_CONFIG_
if [ -d "\$SNAP/
export LD_LIBRARY_
elif [ -d "\$SNAP/
export LD_LIBRARY_
fi
export LD_LIBRARY_
# Make PulseAudio socket available inside the snap-specific \$XDG_RUNTIME_DIR
if [ -n "\$XDG_RUNTIME_DIR" ]; then
if [ -S "\$pulseaudio_
fi
fi
exec "\$@"
EOF
chmod +x alsa-launch
override-build: |
snapcraftctl build
install -m644 -D -t $SNAPCRAFT_
install -m755 -D -t $SNAPCRAFT_
build-packages:
- libasound2-dev
stage-packages:
- libasound2
- libasound2-plugins
app-name:
after: [alsa-mixin]
plugin: dump
source: .
override-build: |
# some code here that I have deleted for the post
snapcraftctl build
build-packages:
- wget
- unzip
- git
- gcc
- make
# - python3-pyaudio
- python3-pip
- libevent-dev
# - python-dev
# - libpcre3
# - libpcre3-dev
- libperl-dev
# - libasound2
# - libasound2-dev
- libatlas-base-dev
- libasound2-plugins
# - alsa-utils
# - pulseaudio
- libasound-dev
stage-packages:
# - python3-pyaudio
# - sox
# - python-setuptools
- libatlas-base-dev
- libevent-dev
# - python3-pip
# - python-dev
# - libpcre3
# - libpcre3-dev
# - libperl-dev
# - libasound2
# - libasound2-dev
# - alsa-utils
# - pulseaudio
apps:
demo:
command-chain: ["snap/
command: scripts/
plugs: [network, network-bind, gpio, hardware-observe, audio-playback, audio-record, pulseaudio, alsa]
Changed in snapd: | |
status: | New → Invalid |
I have created a project that have only the ALSA parts that I use, hope it will help debugging
https:/ /github. com/guyluz11/ Alsa-snap- not-working