No rule to make target

asked 2019-04-01 04:37:14 -0500

EdwardNur gravatar image

I know this is a common issue but I do not get what is going on. I have created a package and when I try to compile I get an error:

No rule to make target ros_control

My CMakeLists.txt is correct:

cmake_minimum_required(VERSION 2.8.3)
project(ros_control)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
)

catkin_package(

)


include_directories(
  include
  ${catkin_INCLUDE_DIRS}
)

add_executable(joints src/joints.cpp)

target_link_libraries(joints
  ${catkin_LIBRARIES}
)
edit retag flag offensive close merge delete

Comments

3

Apart from the error you report: I would not use the name ros_control for your project. That name is used by a very widely used project already (ros_control). I'd avoid any potential name clashes and use something else.

gvdhoorn gravatar image gvdhoorn  ( 2019-04-01 04:55:26 -0500 )edit