Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No 'rosidl_typesupport_c' found #2

Open
mpconte opened this issue Jan 24, 2023 · 0 comments
Open

No 'rosidl_typesupport_c' found #2

mpconte opened this issue Jan 24, 2023 · 0 comments

Comments

@mpconte
Copy link

mpconte commented Jan 24, 2023

After successfully building the native and cross_compiler ROS2 dependencies, I created a new project that depends on these dependencies via the following CMakeLists.txt:

set(CMAKE_SYSTEM_NAME Android)
file(GLOB android_toolchain
  LIST_DIRECTORIES false
  "${ANDROID_HOME}/ndk/*/build/cmake/android.toolchain.cmake"
  )
set(CMAKE_TOOLCHAIN_FILE ${android_toolchain})
set(ANDROID_PLATFORM 30)
set(CMAKE_ANDROID_ARCH_ABI arm64-v8a)
set(CMAKE_FIND_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/sensors_for_ros/build/deps)
set(AMENT_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/sensors_for_ros/build/deps)
set(ENV{PYTHONPATH} "${CMAKE_CURRENT_SOURCE_DIR}/sensors_for_ros/build/deps/_python_")

cmake_minimum_required(VERSION 3.24)

message("FIND ROOT PATH ${CMAKE_FIND_ROOT_PATH}")
message("AMENT ROOT PATH ${AMENT_PREFIX_PATH}")
message("PYTHON $ENV{PYTHONPATH}")

add_subdirectory(sensor_network_interfaces)

And the CMakeLists.txt for the dependent project is as follows:

cmake_minimum_required(VERSION 3.8)
project(sensor_network_interfaces)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(std_msgs REQUIRED)
find_package(common_interfaces REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)

And I receive the following result:


-- Found ament_cmake: 1.3.3 (/root/workspace/multisensor_framework/sensors_for_ros/build/deps/share/ament_cmake/cmake)
-- Found Python3: /usr/bin/python3.10 (found version "3.10.6") found components: Interpreter 
-- Found std_msgs: 4.2.3 (/root/workspace/multisensor_framework/sensors_for_ros/build/deps/share/std_msgs/cmake)
CMake Error at sensors_for_ros/build/deps/share/rosidl_typesupport_c/cmake/get_used_typesupports.cmake:35 (message):
  No 'rosidl_typesupport_c' found
Call Stack (most recent call first):
  sensors_for_ros/build/deps/share/rosidl_typesupport_c/cmake/rosidl_typesupport_c-extras.cmake:8 (get_used_typesupports)
  sensors_for_ros/build/deps/share/rosidl_typesupport_c/cmake/rosidl_typesupport_cConfig.cmake:41 (include)
  sensors_for_ros/build/deps/share/builtin_interfaces/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  sensors_for_ros/build/deps/share/builtin_interfaces/cmake/builtin_interfacesConfig.cmake:41 (include)
  sensors_for_ros/build/deps/share/std_msgs/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  sensors_for_ros/build/deps/share/std_msgs/cmake/std_msgsConfig.cmake:41 (include)
  sensor_network_interfaces/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant