4 Commits 67803d608c ... 30cb12252f

Tác giả SHA1 Thông báo Ngày
  apple 30cb12252f V0.2.2 3 ngày trước cách đây
  apple c75125cc1b V0.2.1 9 tháng trước cách đây
  Apple 0063e27513 V0.2 10 tháng trước cách đây
  Apple abf2739ad2 1、修改了ffmpeg的编译文件 1 năm trước cách đây
5 tập tin đã thay đổi với 64 bổ sung20 xóa
  1. 8 3
      编译CURL.txt
  2. 4 2
      编译FFMPEG.txt
  3. 4 0
      编译SPDLOG.txt
  4. 22 0
      编译libssh2.txt
  5. 26 15
      编译桌面端Qt.txt

+ 8 - 3
编译CURL.txt

@@ -17,13 +17,18 @@ cmake .. \
 -DBUILD_SHARED_LIBRARY=ON \
 
 #使用configure编译
+设置外置路径,在这里设置libssh2和openssl的路径,设置的是其中的pkgconfig的路径
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/Apple/Design/Library_Project/Library_Project/External/Libraries/libssh2/lib/pkgconfig \
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/Apple/Design/Library_Project/Library_Project/External/Libraries/OpenSSL-1.1.1/lib/pkgconfig
+
 ../configure \
 --with-pic \
---prefix=/home/Apple/Lib/SRC/CURL \
+--prefix=/home/Apple/Design/Library_Project/Library_Project/External/Libraries/CURL \
 CC=/usr/bin/gcc \
---with-openssl=/home/Apple/Lib/SRC/openssl \
---with-zlib=/home/Apple/Lib/SRC/zlib
+--with-openssl \
+--with-libssh2
 
+--with-zlib \
 
 make
 make install

+ 4 - 2
编译FFMPEG.txt

@@ -1,9 +1,11 @@
 ../configure \
---prefix=/home/Apple/Libs/ffmpeg4.4.5 \
+--prefix=/home/Apple/Lib/ffmpeg4.4.5 \
 --target-os=linux \
 --arch=x86_64 \
 --disable-x86asm \
 --enable-shared \
---enable-openssl
+--enable-openssl \
+--extra-cflags="-I/home/Apple/Lib/Standard_Library/Libraries/OpenSSL-1.1.1/include -I/home/Apple/Lib/SRC/ffmpeg-4.4.5/ffmpeg-4.4.5/build/include -fPIC" \
+--extra-ldflags="-L/home/Apple/Lib/Standard_Library/Libraries/OpenSSL-1.1.1/lib -lssl -lcrypto -L/home/Apple/Lib/SRC/ffmpeg-4.4.5/ffmpeg-4.4.5/build/lib"
 
 编译FFMPEG,启用openssl

+ 4 - 0
编译SPDLOG.txt

@@ -14,7 +14,11 @@ cmake .. \
 编译成静态库
 cmake .. \
 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
+<<<<<<< HEAD
+-DCMAKE_INSTALL_PREFIX="/data/home/Apple/Lib/SRC/spdlog-1.14.1" \
+=======
 -DCMAKE_INSTALL_PREFIX="/data/home/Apple/Libs/ZIP/spdlog-1.14.1" \
+>>>>>>> 67803d608c27dd5b77746b5b0c68a2344c793d85
 -DCMAKE_BUILD_TYPE=Release \
 -DSPDLOG_BUILD_SHARED=OFF \
 -DSPDLOG_BUILD_EXAMPLE=OFF \

+ 22 - 0
编译libssh2.txt

@@ -0,0 +1,22 @@
+cmake .. \
+-DPOSITION_INDEPENDENT_CODE=True \
+-DCMAKE_INSTALL_PREFIX=/home/Apple/Lib/SRC/libssh2-1.11.1 \
+-DBUILD_STATIC_LIBS=ON \
+-DBUILD_SHARED_LIBS=ON \
+-DENABLE_ZLIB_COMPRESSION=ON \
+
+
+-DCMAKE_C_COMPILER=/usr/bin/gcc-8 \
+-DCMAKE_CXX_COMPILER=/usr/bin/g++-8 \
+
+#使用configure来编译
+
+../configure \
+--prefix=/home/Apple/Lib/SRC/libssh2-1.11.1 \
+--enable-shared \
+--enable-static \
+--with-libz \
+--with-libz-prefix="/home/Apple/Design/Library_Project/Library_Project/External/Libraries/zlib" \
+--with-openssl \
+--with-libssl-prefix="/data/home/Apple/Design/Library_Project/Library_Project/External/Libraries/OpenSSL-1.1.1" \
+--enable-debug

+ 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 {} \;
+