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
ament_cmake not found when using Ninja generator and Android toolchain #1337
Comments
This isn't one of our target platforms, so I'm not surprised it doesn't work. That said, if you figure out how to make it work, we'd be happy to review patches that improve the situation. |
Hi @clalancette, are there plans to support ROS2 builds for the Android NDK, particularly on the arm64 platform like most modern Android devices are? |
Actually, I forgot that we actually have projects using this already. See https://github.com/sloretz/sensors_for_ros for an example that does run on Android. |
Hi @clalancette, thanks for the reference. I did try to build ros2 humble from source with the ros.deps file in the master branch of the provided repo but I do receive the following error with the arm64-v8a ABI:
As well as the following errors when trying to build with the x86_64 ABI:
|
Bug report
Required Info:
Windows 10
Steps to reproduce issue
When attempting to build a ros2 cpp application that include the following the CMakeLists.txt file (generated by ros2 sample script ros2 pkg create --build-type ament_cmake <package_name>):
I run this command:
cmake -DCMAKE_TOOLCHAIN_FILE=D:\workspace\android.toolchain.cmake -G Ninja ..
and source the ros2 installation on Windows (i.e. call D:\dev\ros2_humble\install\local_setup.bat)
With the following toolchain file:
Expected behavior
I'm expecting ament cmake to be found and build the sample app
Actual behavior
Additional information
The text was updated successfully, but these errors were encountered: