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. cmake install of Qt build does not install debug artifacts
Forum Updated to NodeBB v4.3 + New Features

cmake install of Qt build does not install debug artifacts

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 327 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 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

        • Login

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