2. 阅读源代码文件夹中的README,了解编译所需环境。
3. 设置环境变量及Path
添加环境变量_QTDIR 值为D:\
QtStaticLibraryCompilation\5.12.6
并在Path中添加路径:
%_QTDIR%\qt-everywhere-src-5.12.6
%_QTDIR%\qt-everywhere-src-5.12.6\qtbase\bin
%_QTDIR%\qt-everywhere-src-5.12.6\gnuwin32\bin
%_QTDIR%\Tools\mingw\mingw730_64
4. 以管理员身份运行windows命令行。
“gcc -v” 检查gcc版本及路径(指定的工具包路径)
“perl -v” 检查perl版本
“python” 检查python版本,Ctrl + z退出
“sh” 确保此命令不执行,以免影响ming32-make
5. 切换目录 cd /d D:\
QtStaticLibraryCompilation\5.12.6\Build\qt_build_mingw730_64_static
配置:
D:\QtStaticLibraryCompilation\5.12.6\qt-everywhere-src-5.12.6\configure -static -debug-and-release -opensource -confirm-license -platform win32-g++ -sql-sqlite -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype –compile-examples=no -nomake tests -nomake examples -skip qt3d -no-opengl -prefix D:\QtStaticLibraryCompilation\5.12.6\Library\mingw730_64_static
6. mingw32-make -j8 进行编译,根据机器的情况,分配jobs数量。
7. mingw32-make install
8. 添加Qt Version,见“Qt Version添加”文档。
- 上一篇: 游戏小程序有哪些(微信小程序游戏手游排行榜)
- 下一篇: 关于绩效考核方案建议(员工个人绩效考核细则)
本文暂时没有评论,来添加一个吧(●'◡'●)