In Qt Cmake compilation mode, adding Q_OBJECT macro compilation error: ninja:build stopped:subcommand failed.

1. Let’s talk about the answer first Q_OBJECT does not need to be compiled in the .cpp file. It needs to be compiled in .h. 2. I recently moved the C# project to Linux, so I started reading Qt. Even a small problem can cause it to get stuck for several days. Post the first […]

Android12 source code compilation error ninja: build stopped: subcommand failed. Solution

1. Background description Virtual machine: wsl 2.0 Ubuntu18.04 Virtual machine configuration: 8G memory, 1T storage Software version: The current highest version of the Android system is Android S, which is the Android 12 beta version source code without any modifications. Error content: When compiling to 54%, ninja compilation was interrupted, ninja: build stopped: subcommand failed. […]

CMake was unable to find a build program corresponding to “Ninja” solution

Error log: > Configure project :app Support for CMake 3.7 and higher is a preview feature. To report a bug, see https://developer.android.com/studio/report-bugs.html Support for CMake 3.7 and higher is a preview feature. To report a bug, see https://developer.android.com/studio/report-bugs.html External native generate JSON debug: building json with force flag false External native generate JSON debug: starting […]

Android Studio CMake reports “CMake Error: CMake was unable to find a build program corresponding Ninja”

Two days ago, I didn’t modify anything, I opened Android Studio to compile so, and suddenly it failed. The error message is as follows: Support for CMake 3.7 and higher is a preview feature. To report a bug, see https://developer.android.com/studio/report-bugs.html Support for CMake 3.7 and higher is a preview feature. To report a bug, see […]

Qt: ninja: build stopped: subcommand failed.

The currently used environment is as follows: OS: Windows 11 Pro 22H2 22624.1610 QtCreator 10.0 QtCreator Build System: CMake, Qt 6.5.0 MinGW64-bit The compilation information is as follows, the error seems to be related to AutoMoc: 11:23:34: Running steps for project ErrorRecurrenceApp… 11:23:34: Starting: “C:\Qt\Tools\CMake_64\bin\cmake.exe” –build C:/Users/Administrator/Documents/QTCProjects/build-ErrorRecurrence-Desktop_Qt_6_5_0_MinGW_64_bit -Debug –target all [1/574 5.0/sec] Generating qml/Main/main.qml [2/574 […]

[Solved] build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed

build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed error wuyf@R730Dev1:~$ vim .jack-settings wuyf@R730Dev1:~$ cd .jack-server/ wuyf@R730Dev1:~/.jack-server$ vim config.properties Modify the port number, the two should correspond The article knowledge points match the official knowledge files, and you can further learn the relevant knowledge CS introductory skill tree Linux entry First acquaintance with Linux9452 people are learning the […]