使用 librt 构建 QT Embedded

发布于 2024-10-03 07:06:23 字数 147 浏览 1 评论 0原文

我正在为 OMAP3 平台构建 QT 嵌入式 4.7。在链接阶段,它失败,因为clock_gettime没有符号。在我过去的应用程序中,我通过链接 librt 解决了这个问题。我嵌入的 QT 配置错误吗?如何在不修改 make 脚本的情况下编译 librt?

多谢

I'm building QT embedded 4.7 for the OMAP3 platform. at the link stage, it fails because clock_gettime has no symbol. In my own applications in the past, i've solved this by linking in librt. Have i configured QT embedded wrong? how do i get librt to compile in without modifying the make scripts?

Thanks a lot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

断念 2024-10-10 07:06:23

我确实找到了答案。我将以下内容添加到 mkspec 中的 qmake.conf 中,并且它可以编译!

QMAKE_LIBS_THREAD = -lpthread -lrt

希望这对其他人有帮助。

I actually found the answer. I added the following to my qmake.conf in my mkspec, and it compiles!

QMAKE_LIBS_THREAD = -lpthread -lrt

Hope this helps someone else.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文