准备:
qt-everywhere-src-5.15.0.zip
jom_1_1_3.zip
LLVM-10.0.0-win64.exe
VS2019:需要安装win10 SDK,也有自带的clang,没安装;
开始:
1、打开 x64 Native Tools Command Prompt
2、configure.bat -release -confirm-license -opensource -prefix "D:\Library\Qt5" -platform win32-clang-msvc -nomake examples -nomake tests -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtlottie -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquick3d -skip qtquickcontrols -skip qtquickcontrols2 -skip qtquicktimeline -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebv

本文详细介绍了如何在Windows环境下使用Clang编译器从源码编译Qt5.15.0,包括所需准备的软件、具体的配置步骤及编译过程,对比了win32-clang-g++与win32-clang-msvc生成的dll文件大小及执行效率。
最低0.47元/天 解锁文章
1231

被折叠的 条评论
为什么被折叠?



