本来以为在cmake中加了jsoncpp的库和头文件,就能ok呢,但是编译还是会报错
apt install libjsoncppapt install libjsoncpp-dev
执行这两个命令,总有一个会好使,然后就能编过去了