ubuntu linux (20.04) 源码编译cryptopp库 - apt版本过旧

下载最新版 https://www.cryptopp.com/#download

编译安装:

#下载Cryptopp源码
#git clone https://gitee.com/PaddleGitee/cryptopp.git

#进入文件夹
cd cryptopp
#编译,多cpu处理
make -j8
#安装,默认路径:/usr/local
sudo make install

安装完成提示 - 安装位置/usr/local

cp *.h /usr/local/include/cryptopp
chmod u=rw,go=r /usr/local/include/cryptopp/*.h
cp libcryptopp.a /usr/local/lib
chmod u=rw,go=r /usr/local/lib/libcryptopp.a
cp cryptest.exe /usr/local/bin
chmod u=rwx,go=rx /usr/local/bin/cryptest.exe
cp TestData/*.dat /usr/local/share/cryptopp/TestData
chmod u=rw,go=r /usr/local/share/cryptopp/TestData/*.dat
cp TestVectors/*.txt /usr/local/share/cryptopp/TestVectors
chmod u=rw,go=r /usr/local/share/cryptopp/TestVectors/*.txt

猜你喜欢

转载自blog.csdn.net/weixin_44220976/article/details/139252667