Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Cmake build fails without a good error message

    Tools
    1
    3
    1890
    Loading More Posts
    • 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.
    • D
      dunerocks last edited by

      I'm having some weird issues using a non-Qt CMake project. This has built fine with previous versions.

      After CMake has finished configuration, all I see when I press build is,

      Error while building/deploying project WebKit (kit: GCC 64-bit)
      When executing step "CMake Build"

      That's it... If I go to the build directory manually and type,

      cmake --build . --target all

      The compilation works. What is going on? Does Qt Creator have better logging somewhere else? I don't know what to look for based on this error message.

      1 Reply Last reply Reply Quote 0
      • D
        dunerocks last edited by

        This is really non-deterministic. Qt Creator has some issues with caching I'm sure, it's just impossible to track down having never worked on Qt Creator.

        1 Reply Last reply Reply Quote 0
        • D
          dunerocks last edited by

          If I restart the IDE it manages to start the build. I can reliably reproduce this now.

          Open WebKit CMakeLists.txt file in Qt Creator.
          Change CMake PORT variable to GTK
          Attempt to build, it will fail.
          Restart the IDE
          Attempt to build, it starts.

          It's hard to say where the bug is due to the error message the IDE gives.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post