针对 Linux/MIPS 交叉编译 QtDbus 应用程序
我正在尝试为 Linux/MIPS 设备交叉编译 dbus-chat 示例(包含在 qt-everywhere-opensource-src-4.6.2 中)。我在构建时遇到以下错误:
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so: undefined reference to `inotify_init@GLIBC_2.4'
.../qt-everywhere-opensource- src-4.6.2/lib/libQtGui.so:未定义 引用“__floatundisf@GCC_4.2.0”
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so:未定义 引用“inotify_rm_watch@GLIBC_2.4”
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so:未定义 引用“inotify_add_watch@GLIBC_2.4”
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so:未定义 引用 `__floatundidf@GCC_4.2.0'collect2
: ld returned 1 exit status
我使用 mipsel-linux-gcc-3.4.4 和 dbus-1.0.0 为 QT 交叉编译 dbus 库。 我不确定缺少哪个库或者可能是 dbus 版本不兼容。我能够编译简单的 dbus 应用程序。
I am trying to cross-compile dbus-chat example (included in qt-everywhere-opensource-src-4.6.2) for Linux/MIPS device. I am getting following error while building:
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so: undefined reference to `inotify_init@GLIBC_2.4'
.../qt-everywhere-opensource-src-4.6.2/lib/libQtGui.so: undefined
reference to `__floatundisf@GCC_4.2.0'
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so: undefined
reference to `inotify_rm_watch@GLIBC_2.4'
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so: undefined
reference to `inotify_add_watch@GLIBC_2.4'
.../qt-everywhere-opensource-src-4.6.2/lib/libQtCore.so: undefined
reference to `__floatundidf@GCC_4.2.0'
collect2: ld returned 1 exit status
I used mipsel-linux-gcc-3.4.4 and dbus-1.0.0 for cross-compiling dbus library for QT.
I am not sure which library is missing or may be the dbus version is not compatible. I am able to compile simple dbus application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论