CMake error when building rclcpp
I got some errors when building rclcpp using colcon build
. The error message is shown below. Any idea where the problem is? I had sourced ${ROS_WS}/install/setup.bash before running colcon build
.
root@48fcb45ebd09:/opt/ros_ws# cat log/latest_build/rclcpp/stderr.log
CMake Error at test/CMakeLists.txt:3 (find_package):
By not providing "Findtest_msgs.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"test_msgs", but CMake did not find one.
Could not find a package configuration file provided by "test_msgs" with
any of the following names:
test_msgsConfig.cmake
test_msgs-config.cmake
Add the installation prefix of "test_msgs" to CMAKE_PREFIX_PATH or set
"test_msgs_DIR" to a directory containing one of the above files. If
"test_msgs" provides a separate development package or SDK, be sure it has
been installed.
Could you please close either #q371789 or this one?
Sorry for the mishap. I edited the question but got a duplicate one.