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. Integrate Qt VS tools with vcpkg-installed Qt
Forum Updated to NodeBB v4.3 + New Features

Integrate Qt VS tools with vcpkg-installed Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 2.7k 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.
  • Z Offline
    Z Offline
    zeralight
    wrote on last edited by zeralight
    #1

    I have installed the qt5 library using vcpkg ./vcpkg install qt5:x64-windows

    Under ${vcpkg_root}/installed/x64-windows/tools, there are 6 sub-directories:

    • qt5: holds 2 conf files qt_release.conf and qt_debug.conf having the following structure:

      [Paths]
      Prefix = ${CURRENT_INSTALLED_DIR}
      Documentation = share/qt5/doc
      Headers = include
      Libraries = debug/lib
      Binaries = debug/tools/qt5
      LibraryExecutables = debug/tools/qt5
      Plugins = debug/plugins
      Qml2Imports = debug/qml
      Data = share/qt5/debug
      ArchData = share/qt5/debug
      HostData = share/qt5/debug
      HostBinaries = tools/qt5

    • qt5-3d, qt5-declarative, qt5-scxml, qt5-tools, and qt5-xmlpatterns which all have an empty qt.conf file

    I tried to add all the possible paths in the "Add New Qt Version" of the Qt VS Tools, each time I get the error:

    ${SPECIFIED_PATH}/bin/qmake.exe is not found.
    

    qmake.exe is directly under qt5 directory, there is no bin/ sub-directory.

    .\qmake.exe -v
    QMake version 3.1
    Using Qt version 5.11.2 in C:/vcpkg/installed/x64-windows/tools/qt5/${CURRENT_INSTALLED_DIR}/debug/lib

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deleted117
      wrote on last edited by
      #2

      this is indeed true. VS add on as of version 2.3.2 does not verify API by actual files, but only looks for 'bin/qmake.exe' in the directory you will specify which makes the addon pretty useless with vcpkg .
      Qt could integrate qmake functionality in the VS Addon itself and make certain test to verify SDK integrity.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mkalinow
        wrote on last edited by
        #3

        Have you tried the one in packages instead of installed?
        If you call qmake -query you will recognize that it will point to packages instead of installed, meaning

        C:/vcpkg/packages/qt5-base_x64-windows in your case.

        1 Reply Last reply
        0
        • liscoL Offline
          liscoL Offline
          lisco
          wrote on last edited by lisco
          #4

          After running
          vcpkg install qt5
          I get its release and debug separately, debug is in /debug/bin and /debug/lib.
          is there some method to combine them like as Qt officially configured them in their distros?
          Note if Qt5 building from sources by manual configure and jom (nmake) then release and debug will placed into same dir.

          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