Skip to content

colcon build not working #4213

@MonkeyBoy9999996

Description

@MonkeyBoy9999996

Summary

In a tutorial "Using colcon to build packages", the command colcon build --symlink-install does not work properly on my system. Cannot build it as tutorial states.

Solution

I was able to find a solution. There are 2 following problems:

  1. Tutorial should state that it would be a good practice to call it with parameter --parallel-workers N
  • default setting is to use maximum number of logical cores which in my case completely lagged the system
  1. colcon fails to build with newer setuptools where it is deprecated to call setup.py directly
    • downgrading setuptools from version 68.2.2 to 58.1.0 worked
    • command pip3 install setuptools==58.1.0
    • ROS2 should make this working after instalation

Enviroment

CPU: Intel Core i7-9750HQ 2.0Gh
RAM: 16GB
OS: Ubuntu 24.04.4 LTS 64bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions