问题描述:
编译autoware simulation_interface库时,报conversions.hpp:53:10: fatal error: zmqpp/zmqpp.hpp: No such file or directory
环境为:
- ubuntu 22.04
- ros 2 humble
- libzmq 5
解决方法:
# 安装依赖
sudo apt -y install libzmq5
# 手动编译zmqpp(包含cmqpp.hpp)
mkdir -p ~/autoware_tools && cd ~/autoware_tools
git clone https://github.com/zeromq/zmqpp
cd zmqpp
git checkout master
export CXX="g++"
make
vim src/tests/test_socket.cpp
注释掉第574行// BOOST_CHECK_EQUAL("tcp://0.0.0.0:55443", message.get(1));
make check
sudo make install
sudo make install check
# 重新编译simulation_interface
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release