Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to configure qt when configuring to compile from source to NOT delete test programs
QtWS25 Last Chance

How to configure qt when configuring to compile from source to NOT delete test programs

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 37 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.
  • Q Offline
    Q Offline
    qtSucks
    wrote last edited by
    #1

    I am compiling qt from source and during configuration it fails a configuration step where it compiles some test programs, in my case "try_compile-v1".

    I would like to debug why this is, but the test programs are deleted upon failure, in-fact all of a folder called CMakeScratch is deleted.

    Does any one know the configuration switch to NOT delete these test programs so I can debug. I am 99% sure I have seen it before but can't find it anywhere.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote last edited by
      #2

      See cmake help:

      λ cmake --help | grep debug
        --debug-trycompile           = Do not delete the try_compile build tree.
        --debug-output               = Put cmake in a debug mode.
        --debug-find                 = Put cmake find in a debug mode.
        --debug-find-pkg=<pkg-name>[,...]
                                     = Limit cmake debug-find to the
        --debug-find-var=<var-name>[,...]
                                     = Limit cmake debug-find to the
      

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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