The specified base path "/opt/ros/noetic/share/rviz_telop_commander" contains a package but "catkin_make" must be invoked in the root of workspace
时间: 2023-05-15 15:07:53 浏览: 122
.这意味着您需要在工作区的根目录中运行catkin_make命令,而不是在/opt/ros/noetic/share/rviz_telop_commander目录中运行它。这样做可以确保所有包都被正确编译和链接。
相关问题
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.