Explorar el Código

V0.2.1
1、修改了编译Qt的文件

apple hace 2 días
padre
commit
c75125cc1b
Se han modificado 1 ficheros con 26 adiciones y 15 borrados
  1. 26 15
      编译桌面端Qt.txt

+ 26 - 15
编译桌面端Qt.txt

@@ -2,8 +2,8 @@
 -debug-and-release \
 -confirm-license \
 -opensource \
--platform linux-g++ \
--prefix /data/home/Apple/Qt/Qt5.15.14 \
+-platform win32-msvc \
+-prefix D:\EngineeringSoftware\Qt\Qt5.15.16\5.15.16\msvc2019_64 \
 -qt-sqlite \
 -qt-pcre \
 -qt-zlib \
@@ -14,25 +14,36 @@
 -opengl desktop \
 -skip qtwebengine \
 -nomake tests \
--no-compile-examples
+-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 \
--confirm-license \
--opensource \
+-debug-and-release \
+-confirm-license -opensource \
 -platform linux-g++ \
--prefix /data/home/Apple/Qt/Qt5.15.14 \
--qt-sqlite \
--qt-pcre \
--qt-zlib \
--qt-libpng \
--qt-libjpeg \
--qt-freetype \
--qt-harfbuzz \
+-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
 
 
-如果执行configure的时候提示:bash: ./configure:/bin/sh^M:解释器错误: 没有那个文件或目录
-这是因为configure的换行符造成的,使用sed -i 's/\r$//' configure转换一下就可以了
+
+
+find . -type f -name "configure" -exec chmod a+x {} \;
+