Skip to content

Building examples out-of-workspace #8

@ghost

Description

How can these examples (or, indeed, any project that uses ros2_android) be built without existing within the ros2_android workspace?

I have ament_java and ros2_android built in their own directories, as per the instructions here: https://github.com/esteve/ros2_java

Having sourced {ament_java|ros2_android}/install/local_setup.bash, I then want to build these examples.

I've tried:

  • ament build . from the root of this repo (fails with Execution failed for task ':copyNativeLibs'. > path may not be null or empty string. path='')
  • ament build from the ros2_listener_android subdir (`All selected packages are being skipped. Nothing to do)
  • ament build . from the ros2_listener_android subdir. This one causes ament to try and recusively copy ros2_listener_android/ into ros2_listener_android/build -- not fun.
  • Each of the above with the --ament-gradle-args section from https://github.com/esteve/ros2_java

My guess is that I'm supposed to be copying these examples into the ros2_android workspace, and building the lot. But I really don't want to embed my project in the directory structure of one of its dependencies, that feels very backwards.

Edit: To answer the obvious question, yes the correct version of ament (the one from ament_java) is being run

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions