本文作者原创,首发在本博客;CSDN 上的同名文章已标注为转载并回链到本页:https://blog.csdn.net/qq_30220519/article/details/141284156
法一
编译qt源码
进入源码目录,命令行输入,
./configure.bat -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++ -nomake examples -prefix %CD%\qtbase
大概10分钟就可以编译完毕
构建需要的模块
E:/Qt/Qt5.10.1/Tools/mingw530_32/bin/make.exe module-qtbase module-qtdeclarative
如果不需要裁剪,可以直接 E:/Qt/Qt5.10.1/Tools/mingw530_32/bin/make.exe
法二
1 | git clone https://github.com/korczis/emscripten-qt |
参考
https://www.cnblogs.com/chenchao521/articles/15493198.html
https://qtandeverything.blogspot.com/2017/06/qt-for-web-assembly.html
https://github.com/korczis/emscripten-qt
Index of /redmine/projects/emscripten-qt/wiki
创作不易,小小的支持一下吧!

