CMake error in ROS2
I am trying to create a ROS2 package from scratch, named testpackagecpp
and have this CMakeLists.txt :
cmake_minimum_required(VERSION 2.8.3)
project(testpackagecpp)
if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")
endif()
find_package(ament_cmake REQUIRED)
find_package(example_interfaces REQUIRED)
find_package(rcl REQUIRED)
find_package(rmw REQUIRED)
#find_package(rmw_implementation REQUIRED)
#force opensplice implementation
find_package(rmw_opensplice_cpp REQUIRED)
#find_package(rmw_fastrtps_cpp REQUIRED)
ament_package()
and this as the package.xml file :
<?xml version="1.0"?>
<package format="2">
<name>testpackagecpp</name>
<version>0.0.0</version>
<description>Package containing examples of how to use the rcl API.</description>
<maintainer email="ahcorde@erlerobot.org">Alejandro Hernandez</maintainer>
<license>Apache License 2.0</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>
<build_depend>example_interfaces</build_depend>
<build_depend>rcl</build_depend>
<build_depend>rmw_implementation</build_depend>
<exec_depend>example_interfaces</exec_depend>
<exec_depend>rcl</exec_depend>
<exec_depend>rmw_implementation</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
<export>
<build_type>ament_cmake</build_type>
</export>
</package>
When I try to build this using ament build --symlink-install --only-package testpackagecpp
, I get an error as "NOT" "element" "IN_LIST" "rcl_RECURSIVE_DEPENDENCIES"
.
Any Idea where am I going wrong ?
Please don't use an image to display text. Images are not searchable and people cannot copy and paste the text from the image. Please update your question with a copy and paste of the error. See our support guidelines