Fix package installation files
Hello, I'm new into ROS2 and many of concepts are still unclear for me. Once I noticed that I cannot rebuild custom definition of service. Disregarding the reason, I followed some guidelines to remove log
install
and build
directories within workspace. And then my package has totally broken - I'm unable to build it. Everytime I try, I'm getting error:
$ colcon build
Starting >>> cpp_pubsub
Starting >>> yoctoservice
Finished <<< cpp_pubsub [0.95s]
--- stderr: yoctoservice
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "Findyoctoservice.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"yoctoservice", but CMake did not find one.
Could not find a package configuration file provided by "yoctoservice" with
any of the following names:
yoctoserviceConfig.cmake
yoctoservice-config.cmake
Add the installation prefix of "yoctoservice" to CMAKE_PREFIX_PATH or set
"yoctoservice_DIR" to a directory containing one of the above files. If
"yoctoservice" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< yoctoservice [3.80s, exited with code 1]
Summary: 1 package finished [4.59s]
1 package failed: yoctoservice
1 package had stderr output: yoctoservice
I tried to use sourcing opt/ros/humble/setup.bash
, . install/setup.bash
, but no result. I have my yoctoservice
package files stored in workspace/src/yoctoservice
. Can I fix installation of this package somehow?