编译libssh2.txt 645 B

12345678910111213141516171819202122
  1. cmake .. \
  2. -DPOSITION_INDEPENDENT_CODE=True \
  3. -DCMAKE_INSTALL_PREFIX=/home/Apple/Lib/SRC/libssh2-1.11.1 \
  4. -DBUILD_STATIC_LIBS=ON \
  5. -DBUILD_SHARED_LIBS=ON \
  6. -DENABLE_ZLIB_COMPRESSION=ON \
  7. -DCMAKE_C_COMPILER=/usr/bin/gcc-8 \
  8. -DCMAKE_CXX_COMPILER=/usr/bin/g++-8 \
  9. #使用configure来编译
  10. ../configure \
  11. --prefix=/home/Apple/Lib/SRC/libssh2-1.11.1 \
  12. --enable-shared \
  13. --enable-static \
  14. --with-libz \
  15. --with-libz-prefix="/home/Apple/Design/Library_Project/Library_Project/External/Libraries/zlib" \
  16. --with-openssl \
  17. --with-libssl-prefix="/data/home/Apple/Design/Library_Project/Library_Project/External/Libraries/OpenSSL-1.1.1" \
  18. --enable-debug