gpt4 book ai didi

linux - 什么是 dbus 守护进程以及为什么 vlc 需要它

转载 作者:IT王子 更新时间:2023-10-29 00:54:59 26 4
gpt4 key购买 nike

我使用 buildroot 交叉编译了 VLC(版本 2.1.2)媒体播放器作为臂板。我已经使用串行电缆将电路板连接到我的 Linux PC。当我尝试在 minicom 中使用“vlc”命令运行播放器时,它位于我的根文件系统的/usr/bin 中。我收到以下错误:

inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

任何人都可以澄清这个错误的含义,也可以告诉我什么是 dbus 以及为什么我的 VLC 播放器需要它。

感谢您的帮助。

最佳答案

我正在开发基于 buildroot 的最小 rootfs。在我将包“twm”包含在我的 rootfs 中后,这个错误就解决了。然后在开发板启动后,我在终端上运行以下命令:

export DISPLAY=:0
startx &

然后运行vlc

vlc

这样我就摆脱了这个错误。

关于linux - 什么是 dbus 守护进程以及为什么 vlc 需要它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21621409/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com