error: ninja: build stopped: subcommand failed.
-
I have a problem when I build a Qt6 project. Thanks advance
The process "/home/ning/Qt/Tools/CMake/bin/cmake" exited with code 1.
Error while building/deploying project WindowType (kit: Desktop Qt 6.5.1 GCC 64bit)
When executing step "Build". -
I have a problem when I build a Qt6 project. Thanks advance
The process "/home/ning/Qt/Tools/CMake/bin/cmake" exited with code 1.
Error while building/deploying project WindowType (kit: Desktop Qt 6.5.1 GCC 64bit)
When executing step "Build". -
I am getting the same error:
ninja: build stopped: subcommand failedLast night, build worked perfectly fine. This morning when I went back into QtCreator, I get this when I try to build. NO CODE HAS CHANGED.
I tried forcing a change that would cause an error, by adding a line with "x=1;" knowing that x is not declared. The above error shows right away, so the compiler is not even being invoked to get to the error I created.
If this error provided a little more information, I might have a chance at fixing it.
-
I am getting the same error:
ninja: build stopped: subcommand failedLast night, build worked perfectly fine. This morning when I went back into QtCreator, I get this when I try to build. NO CODE HAS CHANGED.
I tried forcing a change that would cause an error, by adding a line with "x=1;" knowing that x is not declared. The above error shows right away, so the compiler is not even being invoked to get to the error I created.
If this error provided a little more information, I might have a chance at fixing it.
Follow-up: I had to rebuild my project file, as it was using cmake and I had wanted to use qmake. With the new project file, this problem disappeared, though there is no explanation as to why it worked fine until it didn't with the old project file.
-
S SGaist moved this topic from Qt in Education on
-
This post is deleted!
-
I have the same problem when I tried to build my project I get two errors.
I am using QT Creator 14.0.1 (Based on QT 6.7.2) on my iMac M1 (Apple silicon) Running Sonoma 14.6.1). And I think I am using CMAKE????? The errors are:-
- 'renderarea.h' file not found - This is a file that QT Creator created when I set up a class to define a widget. So how can it be "not found"?
2:error: ninja: build stopped: subcommand failed. I have uninstalled and re-installed ninja (using homebrew). I even deleted the "build. ninja" file which made it worse so I had to put it back. But nothing has worked. Can anyone help me, please?
- 'renderarea.h' file not found - This is a file that QT Creator created when I set up a class to define a widget. So how can it be "not found"?
-
I have the same problem when I tried to build my project I get two errors.
I am using QT Creator 14.0.1 (Based on QT 6.7.2) on my iMac M1 (Apple silicon) Running Sonoma 14.6.1). And I think I am using CMAKE????? The errors are:-
- 'renderarea.h' file not found - This is a file that QT Creator created when I set up a class to define a widget. So how can it be "not found"?
2:error: ninja: build stopped: subcommand failed. I have uninstalled and re-installed ninja (using homebrew). I even deleted the "build. ninja" file which made it worse so I had to put it back. But nothing has worked. Can anyone help me, please?
- You have to start by checking the
CMakeLists.txt
file for cmake or whatever to find whererenderarea.h
is supposed to be. And you have to look in your filing system to see where it is, or if it is missing. - The message from ninja tells you that a subcommand has failed. Like cmake or whatever erroring for the missing file. Which would be reported just above it in the output. That does not mean there is any problem with ninja, and you should not be reinstalling that.
You might like to create your own topic for your problem and give more details, especially the exact error output you get.
- 'renderarea.h' file not found - This is a file that QT Creator created when I set up a class to define a widget. So how can it be "not found"?
-
I have the same problem when I tried to build my project I get two errors.
I am using QT Creator 14.0.1 (Based on QT 6.7.2) on my iMac M1 (Apple silicon) Running Sonoma 14.6.1). And I think I am using CMAKE????? The errors are:-
- 'renderarea.h' file not found - This is a file that QT Creator created when I set up a class to define a widget. So how can it be "not found"?
2:error: ninja: build stopped: subcommand failed. I have uninstalled and re-installed ninja (using homebrew). I even deleted the "build. ninja" file which made it worse so I had to put it back. But nothing has worked. Can anyone help me, please?
@James-Martin Make sure renderarea.h was added in CMakeLists.txt
- 'renderarea.h' file not found - This is a file that QT Creator created when I set up a class to define a widget. So how can it be "not found"?