Skip to content

Fix to allow ninja to use make for generators#123

Merged
mjcarroll merged 2 commits intorollingfrom
mjcarroll/ninja_sip_generator
Mar 3, 2023
Merged

Fix to allow ninja to use make for generators#123
mjcarroll merged 2 commits intorollingfrom
mjcarroll/ninja_sip_generator

Conversation

@mjcarroll
Copy link
Copy Markdown
Contributor

There is an issue when building qt_gui_cpp with ninja, and it is traced back to python_qt_binding.

This allows ninja to find the make executable and use it for this particular step. The alternative would be to make the generator create ninja-files in addition to makefiles, but that seems like more work, given that make should be available on all platforms.

CMake Error:
  Running

   '/usr/bin/ninja' '-C' '/home/mjcarroll/workspaces/ros2_rolling/build/qt_gui_cpp' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:633: bad $-escape (literal $ must be written as $$)

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
@mjcarroll mjcarroll requested a review from sloretz as a code owner March 1, 2023 16:26
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a question inline.

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>

Co-authored-by: Chris Lalancette <clalancette@gmail.com>
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me with green CI.

@mjcarroll
Copy link
Copy Markdown
Contributor Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@mjcarroll mjcarroll merged commit ade88c5 into rolling Mar 3, 2023
@mjcarroll mjcarroll deleted the mjcarroll/ninja_sip_generator branch March 3, 2023 14:40
yashi pushed a commit to yashi/python_qt_binding that referenced this pull request Sep 29, 2023
[ Upstream commit ade88c5 ]

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
clalancette added a commit that referenced this pull request Oct 17, 2023
[ Upstream commit ade88c5 ]

Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Co-authored-by: Michael Carroll <carroll.michael@gmail.com>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
@peci1
Copy link
Copy Markdown

peci1 commented May 10, 2024

Could I ask for this to be backported to Noetic? It prevents me from building RViz with ninja: #111 (comment) .

jprestwo pushed a commit to locusrobotics/python_qt_binding that referenced this pull request Feb 17, 2026
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
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

Successfully merging this pull request may close these issues.

3 participants