针对 Linux/MIPS 交叉编译 QtDbus 应用程序

发布于 2025-01-01 23:10:12 字数 779 浏览 2 评论 0原文

我正在尝试为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文