Robotics StackExchange | Archived questions

Uncrustify vendor fails to compile in ROS2_Galactic

Bug report

Required Info:

Steps to reproduce issue

-colcon build --merge-install --packages-select uncrustify_vendor --event-handlers console_cohesion+ console_direct+

It seems to me that the CMakeLists of uncrustify is having issues. Is the issue on ros_crystal in this thread the same error as i am currently experiencing in ros galactic? If it is, how do i solve this issue? https://github.com/ros2/ros2/issues/648


Performing patch step for 'uncrustify-45b836cff040594994d364ad6fd3f04adc890a26' CUSTOMBUILD : error : patch failed: CMakeLists.txt:440 [C:\dev\ros2_galactic\build\uncrustify_vendor\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26.vcxproj] CUSTOMBUILD : error : CMakeLists.txt: patch does not apply [C:\dev\ros2_galactic\build\uncrustify_vendor\uncrustify-45b836cff040594994d364ad6fd3f04adc890a26.vcxproj]

Asked by Dickson on 2021-08-12 01:37:09 UTC

Comments

Answers

Solved the CMake error by using an older version ROS2 Foxy implementation.

https://github.com/ament/uncrustify_vendor/blob/foxy/CMakeLists.txt

Copy the contents of that github page into

C:\dev\ros2_galactic\src\ament\uncrustify_vendor\CMakeLists.txt

and it should solve the issue.

Asked by Dickson on 2021-08-12 02:03:50 UTC

Comments