No rule to make target
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}
)
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.