1 Linux编译Crypto++加密库
1.1 Crypto++下载
官网下载地址:https://www.cryptopp.com/#download
可以使用以下命令下载Crypto++8.6.0版本:
https://www.cryptopp.com/cryptopp860.zip
1.2 Crypto++解压缩
# 在当前目录下创建子文件夹cryptopp860
mkdir cryptopp860
# 将下载cryptopp860.zip解压缩到子文件夹cryptopp860
unzip cryptopp860.zip -d cryptopp860
# 进入子文件夹目录
cd cryptopp860
1.3 Crypto++编译
直接在解压目标夹cryptopp860中使用
make
进行编译。
然后使用
sudo make install
将crypto++库中的头文件目录和编译完成的libcryptopp.a静态库安装到系统目录。
安装完后Crypto++的头文件位于:/usr/local/include/cryptopp
目录中,静态库libcryptopp.a位于/usr/local/lib/libcryptopp.a
目录中,之后使用Crypto++加密库的代码需要包含该目录并链接其静态库libcryptopp.a。
本文作者:StubbornHuang
版权声明:本文为站长原创文章,如果转载请注明原文链接!
原文标题:Linux – 编译Crypto++加密库
原文链接:https://www.stubbornhuang.com/2111/
发布于:2022年04月27日 14:19:25
修改于:2023年06月26日 20:14:03
当前分类随机文章推荐
- Centos7 - 配置Go环境 阅读3076次,点赞1次
- Docker - 镜像操作入门指南 阅读53次,点赞0次
- Docker - 在宿主机与容器之间拷贝文件或者文件夹 阅读75次,点赞0次
- Centos - 更换SSH端口 阅读3125次,点赞1次
- Linux - 编译安装最新版本yasm和nasm 阅读56次,点赞0次
- Centos7 - 安装CMake 阅读72次,点赞0次
- Docker - 容器操作入门指南 阅读50次,点赞0次
- Centos7 - 安装高版本的gcc/g++,多版本切换以及配置环境 阅读69次,点赞0次
- Docker - docker内服务自启动,使用镜像创建容器时同时启动服务 阅读54次,点赞0次
- Linux - 创建软链接、删除软链接、修改软链接 阅读44次,点赞0次
全站随机文章推荐
- 资源分享 - Computer Graphics Programming in OpenGL with C++, Second Edition 英文高清PDF下载 阅读3291次,点赞0次
- ThreeJS - FBXLoader: TGA loader not found, creating placeholder texture for ... 阅读1055次,点赞0次
- 资源分享 - An Introduction to Computational Fluid Dynamics - The Finite Volume Method (First Edition)英文高清PDF下载 阅读705次,点赞0次
- 工具网站推荐 - 几个glTF模型在线预览网站 阅读2048次,点赞0次
- 资源分享 - Essential Mathematics for Games and Interactive Applications(Third Edition) 英文高清PDF下载 阅读2307次,点赞0次
- WordPress - 文章自定义字段post_meta添加、更新、删除、获取操作 阅读1479次,点赞0次
- Youtube运营 - Youtube中如何删除频道 阅读548次,点赞0次
- 资源分享 - Introduction to Computing with Geometry 英文高清PDF下载 阅读1585次,点赞1次
- 资源分享 - Essential Mathematics for Games and Interactive Applications(First Edition) 英文高清PDF下载 阅读2257次,点赞0次
- 计算机图形学 - 3D数学入门之坐标系 阅读1324次,点赞0次
评论
169