深度linux v20 libgit2构建配置:
sudo apt-get install libssl-dev
sudo apt install cmake
定位到libgit2目录
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/home/jacklee/libgit2 -DBUILD_SHARED_LIBS=OFF -DTHREADSAFE=ON -DBUILD_EXAMPLES=ON -DENABLE_TRACE=OFF -DUSE_SSH=OFF -DUSE_GSSAPI=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build . --target install
libqgit2编译:
设置QT环境变量:
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/home/jacklee/libqgit2build -DLIBGIT2_SRC_DIR=/home/jacklee/libgit2 -DQt5_DIR=/home/jacklee/Qt5.14.0/5.14.0/gcc_64/lib/cmake -DCMAKE_PREFIX_PATH=/home/jacklee/Qt5.14.0/5.14.0/gcc_64 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build . --target install
libcurl:
./configure --prefix=/home/jacklee/libcurl --disable-shared --enable-static --disable-ldap --disable-ldaps --with-zlib --with-ssl --without-libidn2
openssl:
./config --prefix=/home/jacklee/libopenssl --release