在 autotools 和 Qt 应用程序上使用 Mingw 进行交叉编译
所以我在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了这个问题,当我的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.