Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. QA Tools
  3. Coco
  4. Need help to resolve Compilation issues while compiling textedit for code coverage
Forum Update on Monday, May 27th 2025

Need help to resolve Compilation issues while compiling textedit for code coverage

Scheduled Pinned Locked Moved Solved Coco
7 Posts 3 Posters 1.4k 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.
  • K Offline
    K Offline
    KalyanDevarakonda
    wrote on 21 Feb 2024, 10:51 last edited by
    #1

    Hello,

    I am following the "Code coverage for a Qt application." to explore the code coverage on Qt applications. As per the doc I have taken the textedit as an example. But I am not able to compile the source code using nmake as per the instructions.

    If I use, MinGW version as 8.1.0, I am getting below error:
    68c01f3d-22ed-4dab-885c-11faa93a7d9f-image.png

    If I use MinGW version as 11.2.0, I am getting below error:
    7cba0c74-15df-491a-a531-bf86f11905c2-image.png

    The reason for the header file issues is unknown to me, as the code appears to have proper syntax when I check it.

    Qt version : Qt6
    Squish cooc: 7.0.0
    MinGW: 8.1.0, 11.2.0

    J 2 Replies Last reply 21 Feb 2024, 10:53
    0
    • K KalyanDevarakonda
      21 Feb 2024, 10:51

      Hello,

      I am following the "Code coverage for a Qt application." to explore the code coverage on Qt applications. As per the doc I have taken the textedit as an example. But I am not able to compile the source code using nmake as per the instructions.

      If I use, MinGW version as 8.1.0, I am getting below error:
      68c01f3d-22ed-4dab-885c-11faa93a7d9f-image.png

      If I use MinGW version as 11.2.0, I am getting below error:
      7cba0c74-15df-491a-a531-bf86f11905c2-image.png

      The reason for the header file issues is unknown to me, as the code appears to have proper syntax when I check it.

      Qt version : Qt6
      Squish cooc: 7.0.0
      MinGW: 8.1.0, 11.2.0

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Feb 2024, 10:53 last edited by
      #2

      @KalyanDevarakonda said in Need help to resolve Compilation issues while compiling textedit for code coverage:

      nmake

      nmake?
      If you use MinGW then your should use make provided by it, not nmake which is for Visual C++ compiler if I'm not mistaken.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply 21 Feb 2024, 12:39
      0
      • K KalyanDevarakonda
        21 Feb 2024, 10:51

        Hello,

        I am following the "Code coverage for a Qt application." to explore the code coverage on Qt applications. As per the doc I have taken the textedit as an example. But I am not able to compile the source code using nmake as per the instructions.

        If I use, MinGW version as 8.1.0, I am getting below error:
        68c01f3d-22ed-4dab-885c-11faa93a7d9f-image.png

        If I use MinGW version as 11.2.0, I am getting below error:
        7cba0c74-15df-491a-a531-bf86f11905c2-image.png

        The reason for the header file issues is unknown to me, as the code appears to have proper syntax when I check it.

        Qt version : Qt6
        Squish cooc: 7.0.0
        MinGW: 8.1.0, 11.2.0

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 21 Feb 2024, 10:55 last edited by
        #3

        @KalyanDevarakonda You should also use MinGW provided by Qt Online Installer

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • J jsulm
          21 Feb 2024, 10:53

          @KalyanDevarakonda said in Need help to resolve Compilation issues while compiling textedit for code coverage:

          nmake

          nmake?
          If you use MinGW then your should use make provided by it, not nmake which is for Visual C++ compiler if I'm not mistaken.

          K Offline
          K Offline
          KalyanDevarakonda
          wrote on 21 Feb 2024, 12:39 last edited by
          #4

          Hi @jsulm, I have tried installing make, but the result is same.

          Please find the below screenshot for your reference:
          24c3e1c3-6f87-4b13-948b-0faeedf4edf2-image.png

          Also, I am using the MinGW provided by Qt.
          MinGW

          C J 2 Replies Last reply 21 Feb 2024, 15:45
          0
          • K KalyanDevarakonda
            21 Feb 2024, 12:39

            Hi @jsulm, I have tried installing make, but the result is same.

            Please find the below screenshot for your reference:
            24c3e1c3-6f87-4b13-948b-0faeedf4edf2-image.png

            Also, I am using the MinGW provided by Qt.
            MinGW

            C Offline
            C Offline
            clanhuth
            wrote on 21 Feb 2024, 15:45 last edited by
            #5

            @KalyanDevarakonda, I recommend to get in touch with the Coco technical support. This is best done by creating a support request via the customer portal's "Support Center":

            https://account.qt.io/s/support-center

            Best regards,
            Clemens Anhuth

            1 Reply Last reply
            0
            • K KalyanDevarakonda
              21 Feb 2024, 12:39

              Hi @jsulm, I have tried installing make, but the result is same.

              Please find the below screenshot for your reference:
              24c3e1c3-6f87-4b13-948b-0faeedf4edf2-image.png

              Also, I am using the MinGW provided by Qt.
              MinGW

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 22 Feb 2024, 06:44 last edited by
              #6

              @KalyanDevarakonda said in Need help to resolve Compilation issues while compiling textedit for code coverage:

              I have tried installing make, but the result is same

              If you install MinGW using Qt Online Installer or Qt Maintenance Tool it will also install make, no need to install it manually.
              You also should use the preconfigured terminal (cmd.exe) which is provided by MinGW in Windows start menu.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              K 1 Reply Last reply 27 Feb 2024, 05:23
              1
              • J jsulm
                22 Feb 2024, 06:44

                @KalyanDevarakonda said in Need help to resolve Compilation issues while compiling textedit for code coverage:

                I have tried installing make, but the result is same

                If you install MinGW using Qt Online Installer or Qt Maintenance Tool it will also install make, no need to install it manually.
                You also should use the preconfigured terminal (cmd.exe) which is provided by MinGW in Windows start menu.

                K Offline
                K Offline
                KalyanDevarakonda
                wrote on 27 Feb 2024, 05:23 last edited by
                #7

                @jsulm @clanhuth

                The issue is now resolved.

                We have to exclude all the header files in the project. This can be done by adding the below line in the .pro file.

                COVERAGE_OPTIONS += --cs-exclude-file-abs-wildcard=/qt/6.6.2/

                Thanks for your help.

                1 Reply Last reply
                0
                • K KalyanDevarakonda has marked this topic as solved on 27 Feb 2024, 05:24

                1/7

                21 Feb 2024, 10:51

                • Login

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