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

Building ROS 2 Java for Android on Windows fails #226

Open
mpconte opened this issue Oct 20, 2022 · 0 comments
Open

Building ROS 2 Java for Android on Windows fails #226

mpconte opened this issue Oct 20, 2022 · 0 comments

Comments

@mpconte
Copy link

mpconte commented Oct 20, 2022

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
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