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 2.5k Views
  • 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 27 Jul 2023, 10:55 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?

    S 1 Reply Last reply 27 Jul 2023, 12:25
    0
    • A Asperamanca
      27 Jul 2023, 10:55

      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?

      S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 27 Jul 2023, 12:25 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 27 Jul 2023, 12:49
      1
      • S sierdzio
        27 Jul 2023, 12:25

        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 27 Jul 2023, 12:49 last edited by
        #3

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

        J 1 Reply Last reply 27 Jul 2023, 13:02
        0
        • A Asperamanca
          27 Jul 2023, 12:49

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

          J Offline
          J Offline
          JonB
          wrote on 27 Jul 2023, 13:02 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
          • S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 28 Jul 2023, 06:21 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 28 Jul 2023, 09:59
            0
            • S sierdzio
              28 Jul 2023, 06:21

              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 28 Jul 2023, 09:59 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

              1/6

              27 Jul 2023, 10:55

              • Login

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