交叉编译Qt/E中添加dbus的支持,但是无法配置成功。
目前需要让Qt程序之间,以及Qt和linux内核之间互通信息,采取DBus作为通信的渠道。
Dbus的1.2版本,我已经交叉编译好了。我需要在Qt/E中配置的时候添加进dbus支持:
-dbus -Idbus头路径 -L路径
但是它提示:
Creating qmake. Please wait...
gmake: Nothing to be done for `first'.
The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found.
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.
我很纳闷,基本可以确定问题出在了dbus的位置不能被检测。
查看configure脚本,里面有如下:
# flags for libdbus-1
QT_CFLAGS_DBUS=
QT_LIBS_DBUS=
于是我分别赋值:
# flags for libdbus-1
QT_CFLAGS_DBUS=........................./include
QT_LIBS_DBUS=...................../lib
再次配置,错误依旧。寻边qt文档,没有说这个问题的。搜尽互联网也没有找到相关的解决方案。
无奈,来社区寻求帮助