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_644. 以管理员身份运行windows命令行。
“gcc -v” 检查gcc版本及路径(指定的工具包路径)“perl -v” 检查perl版本“python” 检查python版本,Ctrl + z退出“sh” 确保此命令不执行,以免影响ming32-make5. 切换目录 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_static6. mingw32-make -j8 进行编译,根据机器的情况,分配jobs数量。
7. mingw32-make install8. 添加Qt Version,见“Qt Version添加”文档。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)