Skip to content

Doesn't build with ninja. #1846

@cosama

Description

@cosama

I don't manage to build rviz using ninja in catkin.

CMake Error:
  Running

   '/usr/bin/ninja' '-C' '/workspace/build_isolated/rviz' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:5319: bad $-escape (literal $ must be written as $$)
    COMMAND = cd /workspace/build_isolated/rviz/sip/rviz_sip && $(MAKE)
                                                                ^ near here

I am trying to build this from source on ubuntu:jammy, so it is a bit of a unusual setup, but it builds fine without ninja. To build the workspace I use:

catkin_make_isolated --use-ninja -j16 -l16

I suspect this is a legit error message and it would really required two $ at that place, but I am not an expert on any o this.

Here some more output:

CMake Generate step failed.  Build files cannot be regenerated correctly.
<== Failed to process package 'rviz': 
  Command '['/workspace/devel_isolated/resource_retriever/env.sh', 'cmake', '/workspace/src/rviz', '-DCATKIN_DEVEL_PREFIX=/workspace/devel_isolated/rviz', '-DCMAKE_INSTALL_PREFIX=/workspace/install_isolated', '-G', 'Ninja']' returned non-zero exit status 1.

Reproduce this error by running:
==> cd /workspace/build_isolated/rviz && /workspace/devel_isolated/resource_retriever/env.sh cmake /workspace/src/rviz -DCATKIN_DEVEL_PREFIX=/workspace/devel_isolated/rviz -DCMAKE_INSTALL_PREFIX=/workspace/install_isolated -G Ninja

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions