紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
catkin_make报错
-
catkin_make报错
系统 虚拟机ubuntu 22.04
ros安装方式 docker+melodic(vscode加插件开发)
出现的问题 运行catkin_make时,报错错误指令:
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "styd_msgs" with any of the following names: styd_msgsConfig.cmake styd_msgs-config.cmake Add the installation prefix of "styd_msgs" to CMAKE_PREFIX_PATH or set "styd_msgs_DIR" to a directory containing one of the above files. If "styd_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): learning_topic/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:530: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed
-
@谁知 会不会是docker导致找不到文件,本小白已经找了一下午解决方案,实在是解决不了了
-
@小鱼 再发一遍完整的代码过程,求助求助
root@0286770e46d5:/home/tian/catkin_ws# catkin_make Base path: /home/tian/catkin_ws Source space: /home/tian/catkin_ws/src Build space: /home/tian/catkin_ws/build Devel space: /home/tian/catkin_ws/devel Install space: /home/tian/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/tian/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/tian/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic -- This workspace overlays: /opt/ros/melodic -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/tian/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.29 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - learning_topic -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'learning_topic' -- ==> add_subdirectory(learning_topic) -- Could NOT find styd_msgs (missing: styd_msgs_DIR) -- Could not find the required component 'styd_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "styd_msgs" with any of the following names: styd_msgsConfig.cmake styd_msgs-config.cmake Add the installation prefix of "styd_msgs" to CMAKE_PREFIX_PATH or set "styd_msgs_DIR" to a directory containing one of the above files. If "styd_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): learning_topic/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/tian/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:530: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed root@0286770e46d5:/home/tian/catkin_ws# * History restored root@0286770e46d5:/home/tian/catkin_ws#
-
-
@小鱼 我没有写过有关styd的代码鸭,请问应该怎样改动
-
@谁知 你在创建功能包的时候,手抖多敲了一个y,你自己没注意到而已,删掉重新创建一个即可.
-
@谁知 你看看键盘,t右边那个字母是不是y,明显是你手抖了
-
@小鱼 收到,我去实验下,谢谢
-
@小鱼
程序可以运行了!
小鱼,你是我的神!