在14章进阶篇 1.控制OLED-自定义消息接口 遇到的问题
-
按照教程做的时候,在2.2编译功能包的时候,报错:
Packages installing interfaces must include
'<member_of_group>rosidl_interface_packages</member_of_group>' in their
package.xml于是我在package.xml中添加了这一句。成功编译。
但是在做
2.3 重新编译工程的时候,遇到了如下错误,无法解决了。
CMake Error at CMakeLists.txt:26 (find_package):
By not providing "Findrosidl_default_generators.cmake" in CMAKE_MODULE_PATH
this project has asked CMake to find a package configuration file provided
by "rosidl_default_generators", but CMake did not find one.Could not find a package configuration file provided by
"rosidl_default_generators" with any of the following names:rosidl_default_generatorsConfig.cmake rosidl_default_generators-config.cmake
Add the installation prefix of "rosidl_default_generators" to
CMAKE_PREFIX_PATH or set "rosidl_default_generators_DIR" to a directory
containing one of the above files. If "rosidl_default_generators" provides
a separate development package or SDK, be sure it has been installed.谢谢。
-
@harebert 本地环境不干净和网络问题很容易导致build失败,这一节直接跳过即可
-