执行catkin_make时终端报错: The specified base path “/home/steve/dem_dead_reckoning” contains a package but “catkin_make” must be invoked in the root of workspace
时间: 2024-02-12 07:09:08 浏览: 29
这个错误是因为你在执行 `catkin_make` 命令时,当前的工作目录并不是你的 catkin 工作空间的根目录。你需要确保你在你的 catkin 工作空间的根目录下执行 `catkin_make` 命令。
你可以通过以下命令进入 catkin 工作空间的根目录:
```
cd /home/steve/dem_dead_reckoning
```
然后再次执行 `catkin_make` 命令即可。
相关问题
catkin_make Base path: /home/hz The specified source space "/home/hz/src" does not exist
这个错误提示说明在你的/home/hz路径下没有名为src的文件夹,而你所执行的catkin_make命令需要在该路径下找到src文件夹来构建工程。
你需要先在/home/hz路径下创建一个src文件夹,方法如下:
```
cd /home/hz
mkdir src
```
然后重新执行catkin_make命令即可。
The specified base path "/home/oem/ros" contains a CMakeLists.txt but "catkin_make" must be invoked in the root of workspace
It seems that you are encountering an issue with the specified base path and the invocation of "catkin_make". "catkin_make" should be invoked in the root directory of your workspace, rather than in a directory that contains a CMakeLists.txt file.
To resolve this issue, you will need to navigate to the root directory of your workspace, which is usually the directory that contains the "src" folder. Once you are in the correct directory, you can run the "catkin_make" command to build your ROS workspace.
Here's an example of how you can navigate to the root directory and run "catkin_make":
1. Open a terminal.
2. Change your current directory to the root directory of your workspace:
```
cd /home/oem/ros
```
3. Run "catkin_make":
```
catkin_make
```
Make sure to replace "/home/oem/ros" with the actual path to your workspace.
Let me know if you have any further questions!