|
@@ -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
|