catkin_make Invoking "make -j4 -l4 failed" while parsing urdf file in ros kinetic Ubuntu 16.04

asked 2018-02-20 13:04:09 -0600

zainabz1995 gravatar image

updated 2018-02-21 01:05:50 -0600

i am trying this http://wiki.ros.org/action/login/urdf... but stuck on catkin_make This is what i am getting on running catkin_make command from catkin_ws directory.

Base path: /home/zainab/catkin_ws
Source space: /home/zainab/catkin_ws/src
Build space: /home/zainab/catkin_ws/build
Devel space: /home/zainab/catkin_ws/devel
Install space: /home/zainab/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/zainab/catkin_ws/build"
####
####
#### Running command: "make -j4 -l4" in "/home/zainab/catkin_ws/build"
####
make[2]: *** No rule to make target 'testbot_description/CMakeFiles/parser.dir/build'.  Stop.
CMakeFiles/Makefile2:823: recipe for target 'testbot_description/CMakeFiles/parser.dir/all' failed
make[1]: *** [testbot_description/CMakeFiles/parser.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

EDIT: CMakeLists.txt

cmake_minimum_required(VERSION 2.8.3)
project(testbot_description)
find_package(catkin REQUIRED COMPONENTS
  urdf
)
catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES testbot_description
)
add_executable(parser src/parser.cpp)
target_link_libraries(parser ${catkin_LIBRARIES})

error after trying the tutorial again: CMake Error at testbot_description/CMakeLists.txt:22 (add_executable): Cannot find source file:

src/parser.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

CMake Error: CMake can not determine linker language for target: parser CMake Error: Cannot determine link language for target "parser". -- Generating done -- Build files have been written to: /home/zainab/catkin_ws/build Makefile:514: recipe for target 'cmake_check_build_system' failed make: * [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

edit retag flag offensive close merge delete

Comments

This sounds like there might be more error messages than you've listed, and it seems like this might be a bug in your CMakeLists.txt. Please edit your question to include the full error message and the contents of your CMakeLists.txt

ahendrix gravatar image ahendrix  ( 2018-02-20 14:47:44 -0600 )edit

cmake_minimum_required(VERSION 2.8.3) project(testbot_description) find_package(catkin REQUIRED COMPONENTS urdf ) catkin_package(

INCLUDE_DIRS include

LIBRARIES testbot_description

) add_executable(parser src/parser.cpp) target_link_libraries(parser ${catkin_LIBRARIES})

zainabz1995 gravatar image zainabz1995  ( 2018-02-20 23:06:15 -0600 )edit

I've edited your question and reformatted it so that it's readable. In the future please use the "Preformatted Text" button (marked 101010) for formatting code and output.

ahendrix gravatar image ahendrix  ( 2018-02-20 23:25:43 -0600 )edit

okay. thank you. what should be the solution of this problem? i am stuck here

zainabz1995 gravatar image zainabz1995  ( 2018-02-20 23:29:20 -0600 )edit

This is a bit of a weird error; it seems to be complaining that it can't make a directory, but that doesn't make much sense to me. Do you have extra files in your package from trying to the build there previously, or did you create a parser directory within your package?

ahendrix gravatar image ahendrix  ( 2018-02-20 23:57:59 -0600 )edit

i tried this tutorial again from start and now i am getting Invoking "make_cmake_check_build_system_failed" error

zainabz1995 gravatar image zainabz1995  ( 2018-02-21 01:04:14 -0600 )edit

Did you create parser.cpp inside the src folder in your package?

ahendrix gravatar image ahendrix  ( 2018-02-21 01:15:48 -0600 )edit

yes, i did. as asked in tutorial. i have /home/zainab/catkin_ws/src/testbot_description/urdf/src/parser.cpp

zainabz1995 gravatar image zainabz1995  ( 2018-02-21 10:26:40 -0600 )edit