ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

uncrustify_vendor fails compiling [closed]

asked 2021-07-29 11:37:24 -0500

Rongcai gravatar image

updated 2021-10-15 02:00:25 -0500

gvdhoorn gravatar image

It seems an issue relate to the compiler environment. if so, how to set and verify this env. thanks!

-- Found ament_cmake: 1.1.4 (C:/dev/ros2_galactic/install/share/ament_cmake/cmake)
-- Using PYTHON_EXECUTABLE: C:/Python38/python.exe
-- Configuring done
-- Generating done
-- Build files have been written to: C:/dev/ros2_galactic/build/uncrustify_vendor
Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Performing configure step for 'uncrustify-45b836cff040594994d364ad6fd3f04adc890a26'
  -- The C compiler identification is unknown
  -- The CXX compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (project):
    No CMAKE_C_COMPILER could be found.



  CMake Error at CMakeLists.txt:3 (project):
    No CMAKE_CXX_COMPILER could be found.



  -- Configuring incomplete, errors occurred!
  See also "C:/dev/ros2_galactic/build/uncrustify_vendor/uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-prefix/src/uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-build/CMakeFiles/CMakeOutput.log".
  See also "C:/dev/ros2_galactic/build/uncrustify_vendor/uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-prefix/src/uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-build/CMakeFiles/CMakeError.log".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\dev\ros2_galactic\build\uncrustify_vendor\CMakeFiles\2fbc8479d7de2e08ea68ace6d588ec0c\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-configure.rule;C:\dev\ros2_galactic\build\uncrustify_vendor\CMakeFiles\2fbc8479d7de2e08ea68ace6d588ec0c\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-build.rule;C:\dev\ros2_galactic\build\uncrustify_vendor\CMakeFiles\2fbc8479d7de2e08ea68ace6d588ec0c\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-install.rule;C:\dev\ros2_galactic\build\uncrustify_vendor\CMakeFiles\b531ce0ba034916765477855d147abd8\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26-complete.rule;C:\dev\ros2_galactic\build\uncrustify_vendor\CMakeFiles\38f6b4bb05a426b2c4a37cf28048e13f\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26.rule;C:\dev\ros2_galactic\src\ament\uncrustify_vendor\CMakeLists.txt' exited with code 1. [C:\dev\ros2_galactic\build\uncrustify_vendor\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26.vcxproj]
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Rongcai
close date 2021-12-07 01:21:40.622385

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-14 18:15:14 -0500

JollyRogers gravatar image

Looks like that the CMAKE_C_COMPILER is not in your path. I suggest to find the path and do:

cmake -D CMAKE_C_COMPILER="/path/to/your/c/compiler/executable" -D CMAKE_CXX_COMPILER "/path/to/your/cpp/compiler/executable" /path/to/directory/containing/CMakeLists.txt
edit flag offensive delete link more

Comments

It works now and thanks a lot.

Rongcai gravatar image Rongcai  ( 2021-12-07 01:21:11 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-07-29 11:37:24 -0500

Seen: 121 times

Last updated: Oct 15 '21