-- +++ processing catkin package: 'hello_vscode' -- ==> add_subdirectory(hello_vscode) CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_install_python.cmake:86 (message): catkin_install_python() called with non-existing file '/home/dama/demo02_ws/src/hello_vscode/scripts/hello_vscode_p.py'. Call Stack (most recent call first): hello_vscode/CMakeLists.txt:162 (catkin_install_python) -- Configuring incomplete, errors occurred! See also "/home/dama/demo02_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/dama/demo02_ws/build/CMakeFiles/CMakeError.log". make: *** [Makefile:544:cmake_check_build_system] 错误 1 Invoking "make cmake_check_build_system" failed
时间: 2023-08-11 19:08:46 浏览: 97
这段代码似乎是ROS的错误信息,它指出在执行`catkin_install_python()`函数时,找不到指定的python文件`/home/dama/demo02_ws/src/hello_vscode/scripts/hello_vscode_p.py`。你可以检查一下这个文件路径是否正确,或者确认一下你的python文件是否存在。如果文件确实存在,那么可能是你的CMakeLists.txt文件中的配置有误导致的。你可以仔细检查一下CMakeLists.txt文件中与该python文件有关的部分是否正确,或者尝试重新生成一下CMakeLists.txt文件。希望我的回答能帮到你!
相关问题
-- +++ processing catkin package: 'hello_vscode' -- ==> add_subdirectory(hello_vscode) CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_install_python.cmake:86 (message): catkin_install_python() called with non-existing file '/home/dama/demo02
抱歉,我是一个语言模型AI,并不能理解你的问题。这段代码似乎是ROS的错误信息,它可能是由于找不到指定的python文件而导致的。你可以检查一下你的文件路径是否正确,或者确认一下你的python文件是否存在。如果问题仍然存在,你可以尝试重新安装ROS或者检查一下你的代码是否存在其他问题。希望我的回答能帮到你!
如何解决该报错:- +++ processing catkin package: 'custom_dynamic_reconfigure' -- ==> add_subdirectory(custom_dynamic_reconfigure) CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:196 (message): catkin_package() the catkin package 'std_msgs' has been find_package()-ed but is not listed as a build dependency in the package.xml Call Stack (most recent call first): /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package) custom_dynamic_reconfigure/CMakeLists.txt:11 (catkin_package) -- Configuring incomplete, errors occurred! See also "/home/czj/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/czj/catkin_ws/build/CMakeFiles/CMakeError.log". make: *** [Makefile:614:cmake_check_build_system] 错误 1 Invoking "make cmake_check_build_system" failed
解决该报错的方法是在 package.xml 中添加 std_msgs 作为构建依赖项。
具体步骤如下:
1. 进入到该 catkin 包的目录下,找到 package.xml 文件。
2. 在 `<build_depend>` 和 `<run_depend>` 中分别添加 std_msgs,如下所示:
```
<build_depend>std_msgs</build_depend>
<run_depend>std_msgs</run_depend>
```
3. 保存文件并重新构建该 catkin 包,报错应该会消失。
如果还有其他报错,可以查看 `/home/czj/catkin_ws/build/CMakeFiles/CMakeError.log` 和 `/home/czj/catkin_ws/build/CMakeFiles/CMakeOutput.log` 文件,寻找更多信息。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![-](https://img-home.csdnimg.cn/images/20210720083327.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)