将依赖您的帮助。
我正在尝试创建一个 snap 包(通过snapcraft
),但由于以下原因,它的执行失败了:
# Fatal error in: ../../media/engine/adm_helpers.cc, line 39
# last system error: 88
# Check failed: 0 == adm->Init() (0 vs. -1)
# Failed to initialize the ADM.
据我了解https://groups.google.com/g/discuss-webrtc/c/C3o0-NWqdn4,这和WebRTC的使用相关。
你能帮忙将依赖项注入到snapcraft.yaml
配置文件中吗(没有找到任何相关信息https://snapcraft.io/docs/supported-interfaces):
name: fingrom
base: core22
grade: stable
confinement: strict
apps:
fingrom:
command: fingrom
plugs: [home, desktop, desktop-legacy, network, network-bind, opengl, x11]
extensions: [gnome]
parts:
app-finance:
source: .
plugin: flutter
build-packages: [libgtk-3-dev, ninja-build]
stage-packages: [libgtk-3-0]
flutter-target: lib/main.dart
提前致谢!
PS Devmode 没有帮助识别问题(snap install fingrom --devmode
),应用程序正在运行
答案1
该解决方案实际上并不明显,但audio-playback
对于 WebRTC 来说却是必需的
environment:
LD_LIBRARY_PATH: ${SNAP}/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
apps:
__:
plugs:
- audio-playback
stage-packages:
- libpulse0