1. cmake:146 (message): Could NOT find Boost (missing: Boost_INCLUDE_DIR thread)
解决方法,安装boost库,具体为:
sudo apt install libboost-all-dev
2. zmq.hpp没有那个文件或目录
解决方法,安装zmq库,具体参见:ubuntu安装zmq_Obrigado.的博客-CSDN博客_ubuntu安装zmq
3. undefined reference to symbol ‘shm_open‘/‘shm_unlink‘
原来 target_link_libraries(xxxxx ${EXTRA_LIBS} )
修改为 target_link_libraries(xxxxx ${EXTRA_LIBS} -lrt)
解决方法最后加上-lrt,试过rt,lrt都不行,具体参见: