12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- ../configure \
- -debug-and-release \
- -confirm-license \
- -opensource \
- -platform win32-msvc \
- -prefix D:\EngineeringSoftware\Qt\Qt5.15.16\5.15.16\msvc2019_64 \
- -qt-sqlite \
- -qt-pcre \
- -qt-zlib \
- -qt-libpng \
- -qt-libjpeg \
- -qt-freetype \
- -qt-harfbuzz \
- -opengl desktop \
- -skip qtwebengine \
- -nomake tests \
- -no-compile-examples \
- -mp
- Windows版本建议从github直接下载
- 在\qtbase\mkspecs\common\msvc-version.conf中设置msvc版本,第一行设置:QMAKE_MSC_VER = 1929
- 编译MSVC版本
- configure -debug-and-release -confirm-license -opensource -platform win32-msvc -prefix D:\EngineeringSoftware\Qt\Qt5.15.16\5.15.16\msvc2019_32 -qt-sqlite -qt-pcre -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -opengl dynamic -skip qtwebengine -nomake tests -no-compile-examples -mp
- 编译GCC版本
- ../configure -debug-and-release -confirm-license -opensource -platform win32-g++ -prefix D:\EngineeringSoftware\Qt\Qt5.15.16\5.15.16\mingw81_32 -qt-sqlite -qt-pcre -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -opengl desktop -skip qtwebengine -nomake tests -no-compile-examples
- 编译Linux版本,从Windows里拷贝的压缩包可能有问题,直接下载官方的压缩包
- ../configure \
- -debug-and-release \
- -confirm-license -opensource \
- -platform linux-g++ \
- -prefix /home/Apple/Qt/Qt5.15.16 \
- -qt-sqlite -qt-pcre -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz \
- -opengl desktop \
- -skip qtwebengine \
- -nomake tests \
- -no-compile-examples
- find . -type f -name "configure" -exec chmod a+x {} \;
|