Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't compile project using CLion and CMake

Can't compile project using CLion and CMake

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt6clion-idecmakeerror
37 Posts 6 Posters 10.8k 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.
  • M Offline
    M Offline
    mingvv
    wrote on 18 Mar 2021, 15:44 last edited by mingvv
    #23

    I found that I have debug dll files in the MSVC directory, but in the MinGW directory there are only release dlls. This causes bugs in debugging. Do you have files with the "d" suffix in the MinGW directory?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nagesh
      wrote on 18 Mar 2021, 23:48 last edited by
      #24

      @mingvv mingw bin directory is having both release and debug version (with d suffix) of dlls.

      M 1 Reply Last reply 19 Mar 2021, 07:31
      1
      • N nagesh
        18 Mar 2021, 23:48

        @mingvv mingw bin directory is having both release and debug version (with d suffix) of dlls.

        M Offline
        M Offline
        mingvv
        wrote on 19 Mar 2021, 07:31 last edited by
        #25

        @nagesh said in Can't compile project using CLion and CMake:

        @mingvv mingw bin directory is having both release and debug version (with d suffix) of dlls.

        Thank you for the answer!
        Did you install them separately (I mean, there is a separate item in the installer? If so, what is it called?)?

        J 1 Reply Last reply 19 Mar 2021, 07:32
        0
        • M mingvv
          19 Mar 2021, 07:31

          @nagesh said in Can't compile project using CLion and CMake:

          @mingvv mingw bin directory is having both release and debug version (with d suffix) of dlls.

          Thank you for the answer!
          Did you install them separately (I mean, there is a separate item in the installer? If so, what is it called?)?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 19 Mar 2021, 07:32 last edited by
          #26

          @mingvv said in Can't compile project using CLion and CMake:

          Did you install them separately

          Do you mean release and debug? No, those are both installed by default.

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

          M 1 Reply Last reply 19 Mar 2021, 07:37
          0
          • J jsulm
            19 Mar 2021, 07:32

            @mingvv said in Can't compile project using CLion and CMake:

            Did you install them separately

            Do you mean release and debug? No, those are both installed by default.

            M Offline
            M Offline
            mingvv
            wrote on 19 Mar 2021, 07:37 last edited by
            #27

            @jsulm said in Can't compile project using CLion and CMake:

            @mingvv said in Can't compile project using CLion and CMake:

            Did you install them separately

            Do you mean release and debug? No, those are both installed by default.

            Yes. I reinstalled Qt, but debug files never appeared for MinGW (with MSVC all OK). "Qt Debug Information" is not that?

            J 1 Reply Last reply 19 Mar 2021, 07:55
            0
            • M mingvv
              19 Mar 2021, 07:37

              @jsulm said in Can't compile project using CLion and CMake:

              @mingvv said in Can't compile project using CLion and CMake:

              Did you install them separately

              Do you mean release and debug? No, those are both installed by default.

              Yes. I reinstalled Qt, but debug files never appeared for MinGW (with MSVC all OK). "Qt Debug Information" is not that?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 19 Mar 2021, 07:55 last edited by
              #28

              @mingvv said in Can't compile project using CLion and CMake:

              but debug files never appeared for MinGW

              That's strange. On my machine I have both. How did you install Qt and what version?

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

              M 1 Reply Last reply 19 Mar 2021, 08:06
              0
              • J jsulm
                19 Mar 2021, 07:55

                @mingvv said in Can't compile project using CLion and CMake:

                but debug files never appeared for MinGW

                That's strange. On my machine I have both. How did you install Qt and what version?

                M Offline
                M Offline
                mingvv
                wrote on 19 Mar 2021, 08:06 last edited by
                #29

                @jsulm said in Can't compile project using CLion and CMake:

                @mingvv said in Can't compile project using CLion and CMake:

                but debug files never appeared for MinGW

                That's strange. On my machine I have both. How did you install Qt and what version?

                Using Qt Online Installer for Windows I installed the default set for Qt 6 as well as an additional component for MSVC.
                What I have now (as it looks in MaintenanceTool):
                *) Qt -> Qt 6.0.2 -> MSVC 2019 64-bit
                *) Qt -> Qt 6.0.2 -> MinGW 8.1.0 64-bit
                *) Qt -> Developer and Designer Tool -> Qt Creator 4.14.1 CDB Debugger Support
                *) Qt -> Developer and Designer Tool -> Debugging Tools for Windows
                *) Qt -> Developer and Designer Tool -> MinGW 8.1.0 64-bit
                *) Qt -> Developer and Designer Tool -> CMake 3.19.2 64-bit
                *) Qt -> Developer and Designer Tool -> Ninja 1.10.0

                J 1 Reply Last reply 19 Mar 2021, 08:26
                0
                • M mingvv
                  19 Mar 2021, 08:06

                  @jsulm said in Can't compile project using CLion and CMake:

                  @mingvv said in Can't compile project using CLion and CMake:

                  but debug files never appeared for MinGW

                  That's strange. On my machine I have both. How did you install Qt and what version?

                  Using Qt Online Installer for Windows I installed the default set for Qt 6 as well as an additional component for MSVC.
                  What I have now (as it looks in MaintenanceTool):
                  *) Qt -> Qt 6.0.2 -> MSVC 2019 64-bit
                  *) Qt -> Qt 6.0.2 -> MinGW 8.1.0 64-bit
                  *) Qt -> Developer and Designer Tool -> Qt Creator 4.14.1 CDB Debugger Support
                  *) Qt -> Developer and Designer Tool -> Debugging Tools for Windows
                  *) Qt -> Developer and Designer Tool -> MinGW 8.1.0 64-bit
                  *) Qt -> Developer and Designer Tool -> CMake 3.19.2 64-bit
                  *) Qt -> Developer and Designer Tool -> Ninja 1.10.0

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 19 Mar 2021, 08:26 last edited by
                  #30

                  @mingvv I did not yet install Qt6, maybe something is different there.

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

                  M 1 Reply Last reply 19 Mar 2021, 08:31
                  0
                  • J jsulm
                    19 Mar 2021, 08:26

                    @mingvv I did not yet install Qt6, maybe something is different there.

                    M Offline
                    M Offline
                    mingvv
                    wrote on 19 Mar 2021, 08:31 last edited by
                    #31

                    @jsulm said in Can't compile project using CLion and CMake:

                    @mingvv I did not yet install Qt6, maybe something is different there.

                    You’re using version 5? Honestly, I don’t know why I put 6. I decided that the new and apparently more active development of it. Are there any significant differences? Otherwise, I would have reassigned to 5.

                    J 1 Reply Last reply 19 Mar 2021, 08:33
                    0
                    • M mingvv
                      19 Mar 2021, 08:31

                      @jsulm said in Can't compile project using CLion and CMake:

                      @mingvv I did not yet install Qt6, maybe something is different there.

                      You’re using version 5? Honestly, I don’t know why I put 6. I decided that the new and apparently more active development of it. Are there any significant differences? Otherwise, I would have reassigned to 5.

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 19 Mar 2021, 08:33 last edited by
                      #32

                      @mingvv said in Can't compile project using CLion and CMake:

                      Are there any significant differences?

                      Yes, currently not all Qt modules are available in Qt6 and will be added in later Qt6 releases. It is save to stay with Qt5 for now.

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

                      M 1 Reply Last reply 19 Mar 2021, 12:12
                      2
                      • J jsulm
                        19 Mar 2021, 08:33

                        @mingvv said in Can't compile project using CLion and CMake:

                        Are there any significant differences?

                        Yes, currently not all Qt modules are available in Qt6 and will be added in later Qt6 releases. It is save to stay with Qt5 for now.

                        M Offline
                        M Offline
                        mingvv
                        wrote on 19 Mar 2021, 12:12 last edited by
                        #33

                        @jsulm said in Can't compile project using CLion and CMake:

                        @mingvv said in Can't compile project using CLion and CMake:

                        Are there any significant differences?

                        Yes, currently not all Qt modules are available in Qt6 and will be added in later Qt6 releases. It is save to stay with Qt5 for now.

                        I reinstalled to version 5. Still debug dlls are only for MSVC... Are you sure there’s no need to add an extra component in installer or something else? Otherwise I don’t know what it is and why it don't install debug libraries for MinGW.

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kkoehne
                          Moderators
                          wrote on 19 Mar 2021, 12:27 last edited by
                          #34

                          @mingvv said in Can't compile project using CLion and CMake:

                          I reinstalled to version 5. Still debug dlls are only for MSVC... Are you sure there’s no need to add an extra component in installer or something else? Otherwise I don’t know what it is and why it don't install debug libraries for MinGW.

                          We don't ship pure debug libraries anymore for MinGW, since Qt 5.15.0 (IIRC). Instead, there's a package with additional debug information for the release binaries. This is the same approach we're actually using also on macOS and Linux; it's only Windows MSVC where you need completely different builds (due to the different MSVC runtimes used for debug and release builds).

                          Director R&D, The Qt Company

                          M 1 Reply Last reply 19 Mar 2021, 12:30
                          2
                          • K kkoehne
                            19 Mar 2021, 12:27

                            @mingvv said in Can't compile project using CLion and CMake:

                            I reinstalled to version 5. Still debug dlls are only for MSVC... Are you sure there’s no need to add an extra component in installer or something else? Otherwise I don’t know what it is and why it don't install debug libraries for MinGW.

                            We don't ship pure debug libraries anymore for MinGW, since Qt 5.15.0 (IIRC). Instead, there's a package with additional debug information for the release binaries. This is the same approach we're actually using also on macOS and Linux; it's only Windows MSVC where you need completely different builds (due to the different MSVC runtimes used for debug and release builds).

                            M Offline
                            M Offline
                            mingvv
                            wrote on 19 Mar 2021, 12:30 last edited by
                            #35

                            @kkoehne said in Can't compile project using CLion and CMake:

                            @mingvv said in Can't compile project using CLion and CMake:

                            I reinstalled to version 5. Still debug dlls are only for MSVC... Are you sure there’s no need to add an extra component in installer or something else? Otherwise I don’t know what it is and why it don't install debug libraries for MinGW.

                            We don't ship pure debug libraries anymore for MinGW, since Qt 5.15.0 (IIRC). Instead, there's a package with additional debug information for the release binaries. This is the same approach we're actually using also on macOS and Linux; it's only Windows MSVC where you need completely different builds (due to the different MSVC runtimes used for debug and release builds).

                            What is the package?

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              kkoehne
                              Moderators
                              wrote on 19 Mar 2021, 12:31 last edited by
                              #36

                              a16fc441-c64a-413b-a284-b3ba629b5374-grafik.png

                              Director R&D, The Qt Company

                              1 Reply Last reply
                              2
                              • M Offline
                                M Offline
                                mingvv
                                wrote on 19 Mar 2021, 12:39 last edited by
                                #37

                                Thank you to all the panellists, I’ll take care of it.
                                Can we leave it open in case there are any mistakes or questions?

                                1 Reply Last reply
                                0

                                32/37

                                19 Mar 2021, 08:33

                                • Login

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