且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Linux上使用Qt为Windows创建可执行文件

更新时间:2023-08-21 18:35:22

如果要在Linux上构建Windows二进制文件,则需要交叉编译.这意味着您需要安装Windows交叉编译器,以及要与使用交叉编译器构建的库链接的库.对于基本的Qt程序,这意味着您至少需要交叉编译的Qt.

If you want to build a windows binary on linux you need to cross-compile. This means you need to have a windows cross-compiler installed plus the libraries you are linking with built with the cross compiler. For a basic Qt program this means you need at least a cross-compiled Qt.

交叉编译与Eclipse或Qt Creator无关.我不认为两者都支持开箱即用的交叉编译功能,但我想您可以让他们这样做.

Cross-compiling has nothing to do with Eclipse or Qt Creator. I don't think both support cross compiling out of the box but I guess you could make them to do so.