#brotli wget https://github.com/google/brotli/archive/refs/tags/v1.0.9.tar.gz -O brotli.tar.gz tar zxf brotli.tar.gz rm -rf brotli.tar.gz cd brotli-1.0.9 mkdir out cd out cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF .. cmake --build . --config Release --target install
#zstd git clone https://github.com/facebook/zstd
#pcre wget jaist.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gz?viasf=1 -O pcre.tar.gz tar zxf pcre.tar.gz rm -rf pcre.tar.gz cd pcre-8.45 mkdir build cd build cmake -DCMAKE_C_FLAGS=-fPIC DCMAKE_CXX_FLAGS=-fPIC .. make && make install
#install kwebp cd ~/install git clone https://github.com/webmproject/libwebp cd libwebp mkdir build && cd build cmake .. -D CMAKE_C_FLAGS=-fPIC make && make install cd ~/install git clone https://github.com/keengo99/kwebp cd kwebp mkdir build && cd build cmake .. -DKANGLE_DIR=/vhs/kangle -DLIBWEBP_DIR=~/install/libwebp make make install
安装Kwaf组件
1 2 3 4 5 6 7 8 9
#install kwaf cd ~/install git clone https://github.com/keengo99/kwaf cd kwaf sed -i "s/set(CMAKE_INSTALL_PREFIX \${KANGLE_DIR})//" CMakeLists.txt mkdir build && cd build cmake .. -DKANGLE_DIR=~/install/kangle -DCMAKE_INSTALL_PREFIX=/vhs/kangle make make install
部分配置参数
1 2 3 4 5 6
#set etc config cd /vhs/kangle/etc wget -O config.xmlhttps://raw.githubusercontent.com/funnycups/kangle/main/config.xml