ninja subcommand failed: How to get more info?
-
I am building the qmllint target of a QML module, and get the error
ninja: build stopped: subcommand failed.
A long time before that, I get
FAILED: CMakeFiles/c2gped_tool_qml_qmlmodule_qmllint
...which refers to the qmllint target name. But it doesn't explain what failed.
How can I find out more? E.g. make qmllint output verbose?
-
I am building the qmllint target of a QML module, and get the error
ninja: build stopped: subcommand failed.
A long time before that, I get
FAILED: CMakeFiles/c2gped_tool_qml_qmlmodule_qmllint
...which refers to the qmllint target name. But it doesn't explain what failed.
How can I find out more? E.g. make qmllint output verbose?
You can try setting
CMAKE_VERBOSE_MAKEFILE
totrue
oron
but I don't know if it will help. -
You can try setting
CMAKE_VERBOSE_MAKEFILE
totrue
oron
but I don't know if it will help.@sierdzio
It looks like qmllint warnings stop the build. Any idea how to configure that via cmake? -
@sierdzio
It looks like qmllint warnings stop the build. Any idea how to configure that via cmake?@Asperamanca
Don't know if this helps: in a normal make/makefile preceding a command with-
(hyphen/minus) tells it to ignore exit code and treat as successful. If, say,qmllint
is a command thentarget: -qmllint ...
would ignore a non-zero exit code. Don't know if that helps for cmake or ninja?
-
I have not tried this myself, but the documentation mentions a way to disable
qmllint
warnings, see: https://doc.qt.io/qt-6/qtquick-tool-qmllint.html#settings -
I have not tried this myself, but the documentation mentions a way to disable
qmllint
warnings, see: https://doc.qt.io/qt-6/qtquick-tool-qmllint.html#settings@sierdzio said in ninja subcommand failed: How to get more info?:
I have not tried this myself, but the documentation mentions a way to disable
qmllint
warnings, see: https://doc.qt.io/qt-6/qtquick-tool-qmllint.html#settingsYes, I've seen that page, but the .ini file seems to be ignored and I don't know how to pass these settings through cmake