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. Variable for Pro/Pri Files for Mingw Directory
QtWS25 Last Chance

Variable for Pro/Pri Files for Mingw Directory

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 259 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.
  • fcarneyF Offline
    fcarneyF Offline
    fcarney
    wrote on last edited by
    #1

    We have a pri file for our Windows deployment. In this file we have this line to specify the directory of the Mingw directory:

    QTDIR = C:\Qt\5.12.2\mingw73_64
    

    This is used later like this:

    deploy_script.extra = $$QTDIR/bin/windeployqt --release --qmldir qml/ $$INSTALL_BASE
    

    The problem is that each time we update Qt say from 5.12.1 to 5.12.2 we have to remember to update the QDIR variable to match. Granted it may or may not cause issues as it is just the windeployqt utility, but in the past we have used this to copy DLLs or other specifics out of the mingw directory. I looked through here but could not find the variable I was looking for. I am just not sure what it would be called. If there is such a variable. I would think that there would be a way to construct that path. I mean the other build scripts seem to know where the chosen compiler is located.

    C++ is a perfectly valid school of magic.

    1 Reply Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by
      #2

      I know, ask the question, then find it right after...
      It took a trip to SO then back to qt docs to find this. QT_INSTALL_PREFIX is what I want. It has a bunch of other useful ones too. Use it like this:

      QTDIR = $$[QT_INSTALL_PREFIX]
      

      Or however you prefer.

      C++ is a perfectly valid school of magic.

      1 Reply Last reply
      1

      • Login

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