ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

No rule to make target

asked 2016-04-20 22:26:36 -0500

Zero gravatar image

I'm trying to create my own package. But until to catkin_make step it shows that:

make[2]: *** No rule to make target `/home/leddar/catkin_ws/src/leddar/readleddar/Readleddar.cpp', needed by `leddar/CMakeFiles/Readleddar.dir/readleddar/Readleddar.cpp.o'.  Stop.
make[1]: *** [leddar/CMakeFiles/Readleddar.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

it's this due to I'm missing some of the important step during roscreate-pkg? Or something else?

Thank you so much.

edit retag flag offensive close merge delete

Comments

1

does the file /home/leddar/catkin_ws/src/leddar/readleddar/Readleddar.cpp exist? This will be easier to debug if you edit your question to include your CMakeLists.txt and the list of files in your package.

ahendrix gravatar image ahendrix  ( 2016-04-20 22:33:26 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2016-04-21 01:59:56 -0500

Zero gravatar image

I found out my problem. it's too stupid. I just simply forget to add the executable and target to CMakeLists.txt. After I add them add in, and the problem solved.

thank you.

edit flag offensive delete link more

Comments

Hey what do you mean by adding executable to CMakeLists? Even I am facing a similar issue

Thanks

Anukriti gravatar image Anukriti  ( 2021-12-22 00:16:13 -0500 )edit

Hey what do you mean by adding executable to CMakeLists? Even I am facing a similar issue [2] Thanks.

marcelaaniceto gravatar image marcelaaniceto  ( 2022-02-10 01:49:17 -0500 )edit
1

answered 2018-03-09 16:33:29 -0500

waschbaer00 gravatar image

For me it is because I forgot to modify the package.xml

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-20 22:26:36 -0500

Seen: 12,433 times

Last updated: Mar 09 '18