yaml-cpp编译和安装

发布时间 2024-01-02 10:58:14作者: He_LiangLiang

1.下载yaml-cpp 0.3.0版本源码

https://github.com/jbeder/yaml-cpp/releases/tag/release-0.3.0

 

## 解压文件
unzip yaml-cpp-yaml-cpp-0.7.0.zip

## 创建build文件夹
mkdir build

## 进入build文件夹
cd  build 

## 使用 cmake 编译工程
cmake ..

## 使用make编译程序代码
make  -j4 

## 安装库文件
sudo make install 

 

关于cmake 的安装,请参考下面的地址:

centos7.  编译安装cmake 3.23.0