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. QtCreator taking a long time to run CMake
Forum Updated to NodeBB v4.3 + New Features

QtCreator taking a long time to run CMake

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qtcreatorcmake
5 Posts 3 Posters 845 Views 1 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.
  • R Offline
    R Offline
    rhvonlehe
    wrote on last edited by rhvonlehe
    #1

    I have begun noticing QtCreator taking much longer to run CMake in the last week or two. The only significant project change is that more of the QML is being compiled via the :

    qtquick_compiler_add_resources
    

    mechanism. I don't understand why this would make a difference in the cmake times, however, since the actual qtquick compilation happens at compile time, not CMake generation.

    What I am hoping someone can help me with is how can I figure out what QtCreator is doing in the 30-90 seconds that it goes out to lunch when I right-click the project and choose 'run CMake'. I'm not aware of any logging that is available within the IDE. The equivalent action in the build folder on the command line takes 6 seconds consistently.

    Also, just a comment - has anyone discussed not running CMake in the UI thread of QtCreator? When the CMake takes as long as it does it causes the entire IDE to grey out because it's busy running something to do with CMake.

    I have had the same behavior in QtCreator 4.11.1 and 4.11.2. My CMake version is

    cmake version 3.16.20191210-g1318a01
    

    EDIT: for kicks I upgraded to the latest CMake 3.17.1 and still have the same results.
    EDIT: I'm using the Ninja generator

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rhvonlehe
      wrote on last edited by rhvonlehe
      #2

      In the category of "unexplained phenomena", after removing the majority of my build folder things are back to normal. QtCreator is now taking the same amount of time as CMake on the command line.

      EDIT: After rebuilding everything, it's a problem again.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rhvonlehe
        wrote on last edited by
        #3

        I noticed 4.12 came out. Tried it and it seems to have addressed this issue. I'll mark this closed/solved.

        1 Reply Last reply
        1
        • W Offline
          W Offline
          wokerjrvm
          wrote on last edited by
          #4

          I've been using Qtcreator for a long time with rosbuild packages, where it puts the executables in the package/bin/ directory just like rosmake. Using Qtcreator with catkin packages, I can edit and compile the code just fine, but since the binaries aren't put in the catkin_workspace/devel/ path, I still have to run catkin_make by hand for the binaries to be usable. Is there a solution to this that lets Qtcreator put the libraries and executables in the correct location?

          jsulmJ 1 Reply Last reply
          0
          • W wokerjrvm

            I've been using Qtcreator for a long time with rosbuild packages, where it puts the executables in the package/bin/ directory just like rosmake. Using Qtcreator with catkin packages, I can edit and compile the code just fine, but since the binaries aren't put in the catkin_workspace/devel/ path, I still have to run catkin_make by hand for the binaries to be usable. Is there a solution to this that lets Qtcreator put the libraries and executables in the correct location?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @wokerjrvm How is your question related to the original question in this thread?
            Please open your own thread and ask there.

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

            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