Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. cmake install of Qt build does not install debug artifacts
Qt 6.12 LTS is out! See what's new in the release blog

cmake install of Qt build does not install debug artifacts

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.2k 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.
  • R Offline
    R Offline
    Rich v
    wrote on last edited by
    #1

    This might be a naive question. I needed to build Qt 6.2.4 for desktop 32-bit since the distributions are strictly 64-bit now. My configure.bat call used -debug-and-release.

    After building, the build folder contained debug and release versions of all the artifacts. When I ran the cmake --install . step, only the release artifacts were installed.

    What would be the right way to install both?

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

      I was able to figure it out. I had to explicitly ask for the Debug artifacts to be installed and what worked for me was:
      ninja install:Debug.

      1 Reply Last reply
      1
      • A Offline
        A Offline
        AndyE
        wrote on last edited by
        #3

        Having just come across this specific problem, it should be mentioned in the documentation here:

        https://doc.qt.io/qt-6/windows-building.html

        And if there's a cmake command line equivalent, then definitely here where the "-debug-and-release" is called out.

        https://doc.qt.io/qt-6/configure-options.html

        1 Reply Last reply
        0
        • A AndyE referenced this topic on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved