Questions tagged [ninja]

Ninja is a small build system with a focus on speed.

Ninja is a small build system with a focus on speed. It is designed to have its input files generated by a higher-level build system, and it is designed to run builds as fast as possible. Website: https://ninja-build.org/

614 questions
7
votes
2 answers

Cmake Ninja error android. "missing and no known rule to make it" although file exists

I keep getting a ninja: error: '/root/code/CalcLib/libCalcLibAndroidx86.a', needed by '/root/code/compcorpsdk/build/intermediates/cmake/prod/release/obj/x86/libJumboFFT.so', missing and no known rule to make it Although I checked both directories…
Jada
  • 345
  • 2
  • 5
  • 12
7
votes
1 answer

GTest's output has no colors when built with cmake+ninja and executed automatically

I'm trying to configure CMake and ninja as a build system for my project. Except the app itself I have an extra executable for unit tests powered by gtest. I thought it would be nice to have them executed automatically whenever they are built.…
7
votes
1 answer

Jenkins Visual Studio x64 prompt (for CMake and Ninja)

I have a Jenkins slave with Visual Studio 2012 and want to build for x64. What I need is the prompt environment I get when I run the tools prompt link in the Windows Start Menu. People suggest to do it like this (in a Jenkins Windows Batch…
Lars Bilke
  • 4,940
  • 6
  • 45
  • 63
6
votes
0 answers

How perform Visual studio 2019 Ninja builds with custom CMake version?

I'm trying to build a project with Ninja on Visual Studio 2019 from the IDE. I want to use a CMake version different from the one integrated in the VS 2019 distribution. I have set the cmakeExecutable variable in my CMakeSettings.json file to point…
marcks
  • 400
  • 1
  • 2
  • 11
6
votes
1 answer

Passing the "-j" argument to ninja from gradle

I need to pass -j argument to ninja while building Android app with gradle. (on Windows) Why do I need this? - We have huge unified c++ files that require lots of memory to compile. Currently I have no enough memory (~10GB free) to compile them in…
Abuksigun
  • 63
  • 5
6
votes
1 answer

Building a x86 application with CMake, Ninja and Clang on x64 Windows

I want to build an x86 Windows application on my x64 Windows machine. I use CMake, Ninja, clang-cl, lld-link and the VS Build Tools 2017 with the following CMakeLists cmake_minimum_required(VERSION 3.9) project(Test CXX) add_library(TestLib STATIC…
Simon
  • 594
  • 1
  • 6
  • 13
6
votes
2 answers

Fatal Error building the llvm source code in Ubuntu

I am trying to build LLVM source code on Ubuntu 16.04. I have tried versions 4.0.1, 4.0.0 and 3.9.0 with sources from here. I have also tried using the source from svn as shown in several tutorials. Here is the error I get : [1480/1747] Linking CXX…
Kapil Gupta
  • 7,091
  • 5
  • 16
  • 25
5
votes
1 answer

How to tell CMake to pass no duplicate libraries in the link command

I have a circular dependency between the two static libraries libA and libB: add_library(LibA STATIC a.c) add_library(LibB STATIC b.c) # Circular dependency: LibA <-> LibB target_link_libraries(LibA PRIVATE LibB) target_link_libraries(LibB PRIVATE…
5
votes
2 answers

Flutter Error: cmake error : debugging new project

I just start a new flutter project in vscode , when I want debugging the project , I got Error: Could not find compiler set in environment variable CXX: clang++. Call Stack (most recent call first): CMakeLists.txt:3 (project) CMake Error:…
irmoah80
  • 131
  • 1
  • 8
5
votes
1 answer

CMake MSBUILD : error MSB1009: Project file does not exist

I need to build my CMake based project under MSVC 2013 and MSVC 2019. With MSVC 2019 using Ninja generator I build it successfully with following commands: cmake -S . -B build -GNinja "-DCMAKE_BUILD_TYPE:STRING=Release" cmake --build build --target…
wair92
  • 446
  • 11
  • 24
5
votes
3 answers

Is openJdk upgrading to 8u292 break my aosp build system?

Software environment: Ubuntu 20.04 LTS server; Android AOSP 8.0; OpenJDK 8; It works very well util yesterday I upgraded my OpenJDK from 8u282 to 8u292. Now the broken building log says: Ensuring Jack server is installed and started FAILED:…
progquester
  • 1,228
  • 14
  • 23
5
votes
2 answers

How to highlight error generated with the ninja build system?

How would I manage to highlight errors and warnings generated by ninja when I compile cpp? When I get errors, I only see white text, and it would improve readability if I could highlight errors and warnings.
Mechap
  • 319
  • 3
  • 9
5
votes
1 answer

Integrating Crashpad with MacOS Qt application

Our Qt application is built using qmake. We've built Crashpad from this commit which is currently the tip of master. We've linked our Qt application with libclient.a, libbase.a, libhandler.a, libutil.a, Security.Framework and AppKit.Framework and…
bobbyg603
  • 3,536
  • 2
  • 19
  • 30
5
votes
2 answers

getting 'ninja' error while cleaning project in android studio MacOS

I am using Android Studio 3.5 in macos mojave I had a project containing both java and ndk code in a folder, lets call it "project_folder_A" I made a copy of this folder, renamed it to "project_folder_B" and continued to make modifications;…
user13267
  • 6,871
  • 28
  • 80
  • 138
5
votes
1 answer

How to fix or locat the problem of "ninja: build stopped: subcommand failed."?

BACKGROUND: I want to use Obfuscator-llvm-8.0 version of clang and clang++ with AndroidStudio on Windows7; so i get the Obfuscator-llvm-8.0 source code and compile it with success, then I put "clang.exe, clang++.exe, clang-check.exe,…
wizdzz
  • 81
  • 1
  • 1
  • 7
1 2
3
40 41