在 autotools 和 Qt 应用程序上使用 Mingw 进行交叉编译

发布于 2024-12-18 17:23:07 字数 289 浏览 5 评论 0原文

所以我在 Fedora 上运行,并且我有一个可以为 Linux 编译的自动工具项目。我今天试图使用 mingw 对其进行交叉编译,但遇到了未定义的引用问题。事实证明,当我执行 ./configure --host=mingw... 时,我的 AC_CHECK_LIBS 因 -lQtCore 和其他一些库而失败。我整个早上都在谷歌上搜索,但毫无结果。

看来 TrollTech 希望人们使用 Qmake?但我读过的内容没有帮助。我已经安装了mingw-qt。有什么想法可能导致这个问题吗?让我知道我可以提供哪些额外的输出/信息来帮助您理解这个问题。

So I'm running on Fedora and I have a autotools project that compiles fine for linux. I was trying to get it to cross compile for windows today using mingw and I running into undefined reference problems. It turns out when I do my ./configure --host=mingw... my AC_CHECK_LIBS are failing for -lQtCore and a few others libs. I've been googling all morning to no avail.

It seems TrollTech wants people to use Qmake? But what I have read doesn't help. I have installed mingw-qt. Any ideas what might be causing the issue? Let me know what additional output/pieces of information I can provide to help you understand this question.

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

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

发布评论

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

评论(1

薔薇婲 2024-12-25 17:23:07

我解决了这个问题,当我的linux有qt4作为-lQtCore等时,mingw工具链期望-lQtCore4。

I solved the problem It was while my linux had qt4 as -lQtCore etc the mingw tool chain was expecting -lQtCore4.

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