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. CMake produces a mixed debug and release build

CMake produces a mixed debug and release build

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
cmake
2 Posts 2 Posters 1.3k 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
    Ronald Bowers
    wrote on 29 Sept 2016, 01:25 last edited by
    #1

    I have a project that uses Qt 5.7 and CMake 3.6.2. I build using "cmake --build . --config Release", invoke windeployqt to gather the Qt dependencies and then use cpack to zip it all up. When I run the application it fails complaining that it can't find qt5printsupportd. This is odd because I built with Release settings. If I add qt5printsupportd it fails complaining about qt5widgetsd. If I manually add all of the debug libs to the directory the application starts, but quickly fails with a "must create a Application before a QWidget" error. I believe this error often indicates mixed libraries.

    Compiler is Visual Studio 2013, running on Windows 7.

    Any idea on what I am doing wrong?

    M 1 Reply Last reply 29 Sept 2016, 14:49
    0
    • R Ronald Bowers
      29 Sept 2016, 01:25

      I have a project that uses Qt 5.7 and CMake 3.6.2. I build using "cmake --build . --config Release", invoke windeployqt to gather the Qt dependencies and then use cpack to zip it all up. When I run the application it fails complaining that it can't find qt5printsupportd. This is odd because I built with Release settings. If I add qt5printsupportd it fails complaining about qt5widgetsd. If I manually add all of the debug libs to the directory the application starts, but quickly fails with a "must create a Application before a QWidget" error. I believe this error often indicates mixed libraries.

      Compiler is Visual Studio 2013, running on Windows 7.

      Any idea on what I am doing wrong?

      M Offline
      M Offline
      mchinand
      wrote on 29 Sept 2016, 14:49 last edited by
      #2

      Is '-config Release' a valid command line option? I use -DCMAKE_BUILD_TYPE=Release

      https://cmake.org/cmake/help/v3.0/variable/CMAKE_BUILD_TYPE.html

      1 Reply Last reply
      1

      1/2

      29 Sept 2016, 01:25

      • Login

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