Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. ninja subcommand failed: How to get more info?

ninja subcommand failed: How to get more info?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 3.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    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?

    sierdzioS 1 Reply Last reply
    0
    • A Asperamanca

      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?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can try setting CMAKE_VERBOSE_MAKEFILE to true or on but I don't know if it will help.

      (Z(:^

      A 1 Reply Last reply
      1
      • sierdzioS sierdzio

        You can try setting CMAKE_VERBOSE_MAKEFILE to true or on but I don't know if it will help.

        A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        @sierdzio
        It looks like qmllint warnings stop the build. Any idea how to configure that via cmake?

        JonBJ 1 Reply Last reply
        0
        • A Asperamanca

          @sierdzio
          It looks like qmllint warnings stop the build. Any idea how to configure that via cmake?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @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 then

          target:
              -qmllint ...
          

          would ignore a non-zero exit code. Don't know if that helps for cmake or ninja?

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            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

            (Z(:^

            A 1 Reply Last reply
            0
            • sierdzioS sierdzio

              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

              A Offline
              A Offline
              Asperamanca
              wrote on last edited by
              #6

              @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#settings

              Yes, 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

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved