简体   繁体   中英

Cross Compiling using Mingw on an autotools and Qt Application

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.

我解决了这个问题,当时我的Linux将qt4设置为-lQtCore等,而mingw工具链期望使用-lQtCore4。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM