经过今天研究,终于明白了dbus移植到arm后,使用流程。
往往第一次运行程序的时候会出现这个问题,
"?????????QDBusInterface?" "Failed to connect to socket /usr/local/arm/dbus-1.0.
2/var/run/dbus/system_bus_socket: Connection refused"
原因是dbus没有启用。
解决:cd /usr/local/arm/dbus-1.0.2/bin/,运行:
[root@FriendlyARM bin]#
./dbus-daemon --system
Failed to start message bus: The pid file "/usr/local/arm/dbus-1.0.2/var/run/mes
sagebus.pid" exists, if the message bus is not running, remove this file
切换到messagebus.pid所在的目录,rm删除它。再返回到dbus的bin运行./dbus-daemon --system这次便正常运行了!
(注意这里我昨天已经运行adduser命令了!请参照我昨天文章。)
再次切换到我的应用程序目录,运行后依然提示:
"?????????QDBusInterface?" "The name org.freedesktop.Hal was not provided by any
.service files"
org.freedesktop.Hal was not provided by any.service files 这究竟是什么意思?google了一圈无解。这应该不是的dbus的问题。难道tiny210开发板没有HAL????????????????????期待高人指点!
来源:CSDN
作者:yanzi1225627
链接:https://blog.csdn.net/yanzi1225627/article/details/7864189