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. qmake -query has wrong output
Forum Updated to NodeBB v4.3 + New Features

qmake -query has wrong output

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 431 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    g1ennr
    wrote on last edited by
    #1

    I have installed multiple versions of Qt using the Qt Maintenance tool on Windows 10. I'm trying to run windeployqt for the 5.15.2 mingw8_64 installation and it fails with this error:

    Warning: Unable to read \..\mkspecs\qconfig.pri: The system cannot find the path specified.
    Unable to find dependent libraries of \..\bin\Qt5Core.dll :Cannot open '/../bin/Qt5Core.dll': The system cannot find the file specified.
    

    I understand that it gets the path information from qmake. For the 5.15.2\mingw81_64 installation qmake -query gives the following output:

    QT_SYSROOT:
    QT_INSTALL_PREFIX:/..
    QT_INSTALL_ARCHDATA:/..
    QT_INSTALL_DATA:/..
    QT_INSTALL_DOCS:/../doc
    ...
    

    This is consistent with the error from windeployqt.

    For comparison qmake -query for Qt 6.5.3, also installed using the Qt Maintenance tool, gives:

    QT_SYSROOT:
    QT_INSTALL_PREFIX:C:/Qt/6.5.3/mingw_64
    QT_INSTALL_ARCHDATA:C:/Qt/6.5.3/mingw_64
    QT_INSTALL_DATA:C:/Qt/6.5.3/mingw_64
    QT_INSTALL_DOCS:C:/Qt/Docs/Qt-6.5.3
    ...
    

    Is there a way to work around this to make windeployqt work for 5.15.2?

    sierdzioS 1 Reply Last reply
    0
    • G g1ennr

      I have installed multiple versions of Qt using the Qt Maintenance tool on Windows 10. I'm trying to run windeployqt for the 5.15.2 mingw8_64 installation and it fails with this error:

      Warning: Unable to read \..\mkspecs\qconfig.pri: The system cannot find the path specified.
      Unable to find dependent libraries of \..\bin\Qt5Core.dll :Cannot open '/../bin/Qt5Core.dll': The system cannot find the file specified.
      

      I understand that it gets the path information from qmake. For the 5.15.2\mingw81_64 installation qmake -query gives the following output:

      QT_SYSROOT:
      QT_INSTALL_PREFIX:/..
      QT_INSTALL_ARCHDATA:/..
      QT_INSTALL_DATA:/..
      QT_INSTALL_DOCS:/../doc
      ...
      

      This is consistent with the error from windeployqt.

      For comparison qmake -query for Qt 6.5.3, also installed using the Qt Maintenance tool, gives:

      QT_SYSROOT:
      QT_INSTALL_PREFIX:C:/Qt/6.5.3/mingw_64
      QT_INSTALL_ARCHDATA:C:/Qt/6.5.3/mingw_64
      QT_INSTALL_DATA:C:/Qt/6.5.3/mingw_64
      QT_INSTALL_DOCS:C:/Qt/Docs/Qt-6.5.3
      ...
      

      Is there a way to work around this to make windeployqt work for 5.15.2?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @g1ennr you can probably use qt.conf to overwrite these paths. Put it in the same dir where qmake is and set Prefix property accordingly.

      (Z(:^

      G 1 Reply Last reply
      0
      • sierdzioS sierdzio

        @g1ennr you can probably use qt.conf to overwrite these paths. Put it in the same dir where qmake is and set Prefix property accordingly.

        G Offline
        G Offline
        g1ennr
        wrote on last edited by
        #3

        @sierdzio thanks, but that doesn't help.

        Also tried calling qmake -unset <var> then qmake -set <var> <val> for each variable. The -unset part doesn't seem to work and it appears that -set prepends to the collection and the previous /.. value is returned anyway, which isn't helpful.

        C 1 Reply Last reply
        0
        • G g1ennr

          @sierdzio thanks, but that doesn't help.

          Also tried calling qmake -unset <var> then qmake -set <var> <val> for each variable. The -unset part doesn't seem to work and it appears that -set prepends to the collection and the previous /.. value is returned anyway, which isn't helpful.

          C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          @g1ennr What is actually in your .../Qt/5.15.2/mingw_64/bin/qt.conf?

          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