找回密码
 立即注册
搜索
查看: 287|回复: 1

ROS编译报错

[复制链接]

3

主题

4

帖子

23

积分

新手上路

Rank: 1

积分
23
发表于 2024-4-17 20:23:02 | 显示全部楼层 |阅读模式
运行catkin_make后,出现报错,求解决方案
catkin_make -DCATKIN_WHITELIST_PACKAGES="navigation-melodic"
Base path: /mnt
Source space: /mnt/src
Build space: /mnt/build
Devel space: /mnt/devel
Install space: /mnt/install
####
#### Running command: "cmake /mnt/src -DCATKIN_WHITELIST_PACKAGES=navigation-melodic -DCATKIN_DEVEL_PREFIX=/mnt/devel -DCMAKE_INSTALL_PREFIX=/mnt/install -G Unix Makefiles" in "/mnt/build"
####
CMake Error: The current CMakeCache.txt directory /mnt/build/CMakeCache.txt is different than the directory /home/wheeltec/wheeltec_robot/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/mnt/src/CMakeLists.txt" does not match the source "/home/wheeltec/wheeltec_robot/src/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
Invoking "cmake" failed
回复

使用道具 举报

0

主题

191

帖子

531

积分

高级会员

Rank: 4

积分
531
发表于 2024-4-18 08:49:09 | 显示全部楼层
1.navigation_melodic不是功能包的名字哈,您点开这个文件夹会看到里面的文件夹才是功能包

2.请不要在虚拟机或者实体电脑端,在挂载的目录下面编译功能包,这样是不行的,需要ssh登陆到小车,到小车的工作空间下编译
Snipaste_2024-04-18_08-42-08.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

粤ICP备20017043号|小黑屋|手机版|Archiver|轮趣科技(东莞)有限公司  

GMT+8, 2024-5-2 00:01 , Processed in 0.073137 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表