Unknown CMake command "catkin_run_tests_target"
Hello, i am currently working to get packages working and activating the workspace in catkin
When i start a new Terminal i get this:
bash: ~catkin_ws/devel/setup.bash: Datei oder Verzeichnis nicht gefunden
in english that would be no files or directory found
Using the command "catkin_init_workspace" gives me the response:
File "/home/creesy/catkin_ws/src/CMakeLists.txt" already exists
when I got for cd .. to get to the upper directory and use "catkin_make" I get the following error:
CMake Error at /opt/ros/kinetic/share/roslint/cmake/roslint-extras.cmake:67 (catkin_run_tests_target):
Unknown CMake command "catkin_run_tests_target".
Call Stack (most recent call first):
operator_ws/src/taurobtrackerapi/taurob_teleop_twist_joy/CMakeLists.txt:35 (roslint_add_test)
-- Configuring incomplete, errors occurred!
See also "/home/creesy/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/creesy/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:1356: die Regel für Ziel „cmake_check_build_system“ scheiterte
make: *** [cmake_check_build_system] Fehler 1
Invoking "make cmake_check_build_system" failed
Edit1:
My developement environment paths looks like following
~/catkin_ws/src/operator_ws
and ~/catkin_ws/src/realsense-2.0.3
I also have I think the normal installfiles of ROS under /opt/ros/kinetic/..
I think that means i have 2 different workspaces in catkin named operator_ws
and realsense-2.0.3
Edit2:
After experimenting now further and getting the operator_ws
folder out of catkin workspace i can at least build the realsense folder. That could mean that in the first folder there are undefined dependencies or errors. I cant really understand that since it works for collegues of me
Edit3:
I just figured why it works for my collegues. they are not using the realsense camera and only the operator_ws
which means they don have the problems with nested things.
does that mean i have to get both the operator_ws
folder and the realsense
folder in one upper folder for a single workspace?
Edit4:
I am trying to build only the operator_ws
workspace and leaving out the realsense camera related packages getting the error i have problems with all together.
-- +++ processing catkin package: 'rosserial_server' -- ==> add_subdirectory(operator_ws/src/rosserial/rosserial_server) -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- thread -- chrono -- date_time -- atomic -- +++ processing catkin package: 'taurob_teleop_twist_joy' -- ==> add_subdirectory(operator_ws/src/taurobtrackerapi/taurob_teleop_twist_joy) CMake Error at /opt/ros/kinetic/share/roslint/cmake/roslint-extras.cmake:67 (catkin_run_tests_target): Unknown CMake command "catkin_run_tests_target". Call Stack (most recent call first): operator_ws/src/taurobtrackerapi/taurob_teleop_twist_joy/CMakeLists.txt:35 (roslint_add_test) -- Configuring incomplete, errors occurred! See also "/home/creesy/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/creesy/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed
I have the feeling that there must be a fault in the files themself which cancels the invoking of cmake
could that be right or is it still about the nesting issue? It just looks for me like there are problems with taurobtrackerapi
and if that is the case i have to ask my collegues what they have done different
Edit5:
Here is a picture of the workspace operator_ws
collegues said i just have to download it and it works. Maybe that isnt the whole ...
Could you please post the line from your
.bashrc
where the workspace is sourced? It is at least missing a slash (/
) between~
andcatkin_ws
, but perhaps also either a dot (.
) orsource
.i managed to get rid of the first problem i had by opening a new terminal with
gedit ~/.bashrc &
and then outcommenting the last lines in there. you mean:source ~/catkin_ws/devel/setup.bash
? i still have the problem that somehow the CMake command is unknownThe line you commented is probably something you'd want there. Unless you want to source your workspace manually in each new terminal.
re: other problem(s): at this point I'd recommend to
rm -rf $HOME/catkin_ws/build $HOME/catkin_ws/devel
and redo all steps.Don't forget
source /opt/ros/kinetic/setup.bash
before you start usingcatkin_make
or any of the other commands.Also: what is the
operator_ws
path that appears in the error message? Do you have multiple workspaces?operator_ws
path are multiple ros packages for the robot we are using. it could be that i have multiple workspaces since everything got a bit messy there. about the sources in .bashrc i have multiple lines with the same sources i just outcommented the ones making problems.I recommend you read up on Catkin workspaces, particularly how things work with multiple workspaces and when you should/shouldn't source others. I suspect all of your workspaces are now chained, which is probably not a desirable situation.
yeah if it prevents me from using the different packages for the robot then definately not desired. im currently trying to rebuild catkin
OK I used your suggestions about removing build and devel. now when i try to redo the steps for making the directories I get the error that
invoking "make -j4 -l4" failed
because there are denied permissions.