Эх сурвалжийг харах

V0.2
1、修改了远程路径

Apple 1 сар өмнө
parent
commit
0063e27513

+ 8 - 3
编译CURL.txt

@@ -17,13 +17,18 @@ cmake .. \
 -DBUILD_SHARED_LIBRARY=ON \
 -DBUILD_SHARED_LIBRARY=ON \
 
 
 #使用configure编译
 #使用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 \
 ../configure \
 --with-pic \
 --with-pic \
---prefix=/home/Apple/Lib/SRC/CURL \
+--prefix=/home/Apple/Design/Library_Project/Library_Project/External/Libraries/CURL \
 CC=/usr/bin/gcc \
 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
 make install
 make install

+ 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