Issues with using Ninja build

Open
#191 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake
Domain
build-system

Research direction

Start by reproducing the configuration with CMake’s Ninja generator, then inspect the build rules that generate moonray/moonray/dso/camera/BakeCamera/BakeCamera.json. Find where that output is declared more than once and compare the Ninja build setup with the working Makefile setup. Done when the Ninja configuration completes without the duplicate-rule error.

Written by the indexing model from the issue text.

Description

I have been able to compile OpenMoonRay via Makefile

I am also trying to build it via Ninja

However, I am getting the following configuration error when running cmake with the Ninja generator

-- Configuring done (2.2s)
CMake Error:
  Running

   '/usr/bin/ninja' '-C' '/home/nyue/projects/OpenMoonRay/head/build' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:17682: multiple rules generate moonray/moonray/dso/camera/BakeCamera/BakeCamera.json [-w dupbuild=err]
Dominant language
CMake
Stars
4.7k
Forks
321
Avg merge
13m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenMoonRay/openmoonray

All issues in OpenMoonRay/openmoonray

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.