ros2_java
ros2_java copied to clipboard
Building ROS 2 Java for Android on Windows fails
After following the instructions on the README, on the colcon build step (in the x64 Native Tools Command Prompt for VS 2019 as the ROS2 documentation describes), I receive the following error when building fastcdr:
--- stderr: fastcdr
CMake Error at C:/Program Files/CMake/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"D:/Android/Sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/ros2_android_ws/build/fastcdr/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe cmTC_e48db.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
ANDROID_HOME=
ANT_HOME=
JAVA_HOME=
NDK_ROOT=
testCCompiler.c
clang : error : unknown argument: '-gcc-toolchain' [D:\ros2_android_ws\build\fastcdr\CMakeFiles\CMakeTmp\cmTC_e48db.vcxproj]
clang : error : no such file or directory: '\toolchains\x86_64-4.9\prebuilt\windows' [D:\ros2_android_ws\build\fastcdr\CMakeFiles\CMake