The specified base path "/home/q/catkin_ws" contains a CMakeLists.txt but "catkin_make" must be invoked in the root of workspace
时间: 2023-06-12 21:03:56 浏览: 423
这个错误提示意味着你正在尝试在一个不是 catkin 工作区的子目录中运行 catkin_make 命令。在 catkin 工作区中,catkin_make 命令必须在工作区的根目录中运行。确保你正在工作区的根目录中运行 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!
The specified base path "/home/lmr/catkin_vins/src/test_pkg" contains a package but "catkin_make" must be invoked in the root of workspace
The error message you received indicates that you are trying to invoke the "catkin_make" command from a directory that is not the root of your Catkin workspace. To resolve this issue, you need to navigate to the root directory of your workspace before running "catkin_make".
The root directory of your Catkin workspace is the directory that contains the "src" folder, where your packages are located. Make sure you change to that directory in your terminal before running the "catkin_make" command.
For example, if your workspace is located at "/home/lmr/catkin_vins", you would need to navigate to that directory using the "cd" command:
```
cd /home/lmr/catkin_vins
```
Once you are in the correct directory, you can run "catkin_make" to build your packages successfully.
阅读全文