Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 417

add_dependencies called with incorrect number of arguments

$
0
0
I tried to model my new C++ node as closely to the Actionlib Simple Action Server tutorial (http://wiki.ros.org/actionlib_tutorials/Tutorials/SimpleActionServer(ExecuteCallbackMethod)) but I keep getting the following error when running catkin_make: CMake Error at robot_arm/CMakeLists.txt:20 (add_dependencies): add_dependencies called with incorrect number of arguments What could be wrong with my add_dependencies statement? Only thing I can think of is that ${robot_arm_EXPORTED_TARGETS} is not getting populated such that catkin_make may think this argument is missing. How can I confirm this? My CMakeLists.txt is: cmake_minimum_required(VERSION 2.8.3) project(robot_arm) find_package(catkin REQUIRED COMPONENTS roscpp actionlib actionlib_msgs) find_package(Boost REQUIRED COMPONENTS system) catkin_package( CATKIN_DEPENDS actionlib_msgs common ) include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}) add_executable(ReceiveOrder ReceiveOrder.cpp) target_link_libraries( ReceiveOrder ${catkin_LIBRARIES} ) add_dependencies( ReceiveOrder ${robot_arm_EXPORTED_TARGETS} )

Viewing all articles
Browse latest Browse all 417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>