Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-719

Unable to use the Qt VS extension with a Qt5 vcpkg install

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 2.4.2
    • General
    • None
    • MSVC 2017, Windows 10 x64
    • Windows

    Description

      I've installed qt5:x64-windows using vcpkg, on some previous version of this I wasn't even able to add a Qt installation to the extension, now I am. I've added an instllation with the path "D:\Code\vcpkg\installed\x64-windows\tools\qt5".

      I'm unable to start the designer from within VS (it's probably using the executable in "tools\qt5\bin"), but I can start the designer when I use the exe from "tools\qt5-tools\bin" though.

      I can't create a GUI application using the project wizard. New > Project -> Qt QUI Application > Next > Next > Finish is greyed out 

      I can compile the application but when I try to run it I get:

      This application failed to start because it could not find or load the Qt platform plugin "windows"
      in "".

      Reinstalling the application may fix this problem.

      I've tried to copy the qwindows.dll from the installation to the exe directory, plus in "plugins", plus in "plugins\platform\", with no success.

      In "tools\qt5" there's qt_debug.conf and qt_realese.conf (see attachment), and according to this I should be able to post-build-copy the relevant file into the executable output directory to change the runtime library paths. Theres this "${CURRENT_INSTALLED_DIR}" variable in the conf files and I'm not sure if that's supposed to be like that, either way, it isn't working.

      Is there any documentation on how to set up everything properly? Or is that indeed a bug? Or do I have to report that to the vcpkg team?

      Attachments

        1. qt_debug.conf
          0.8 kB
        2. qt_release.conf
          0.5 kB
        3. qtdiag.txt
          9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mecfc Miguel Costa
            betsch85 Tobias B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes