aktup 发表于 2024-4-17 20:23:02

ROS编译报错

运行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

WHEELTEC-Until 发表于 2024-4-18 08:49:09

1.navigation_melodic不是功能包的名字哈,您点开这个文件夹会看到里面的文件夹才是功能包

2.请不要在虚拟机或者实体电脑端,在挂载的目录下面编译功能包,这样是不行的,需要ssh登陆到小车,到小车的工作空间下编译
页: [1]
查看完整版本: ROS编译报错