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

Issue using WSL2 with Visual Studio 2022 and Qt 6.6.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 3.2.0
    • 3.0.2 (rev.02)
    • Build-time integration
    • None

    Description

      Trying to compile in WSL2 using Studio 2022 (17.5.1) using Qt Tools 3.0.2. I have installed Qt 6.6.0 in windows (msvc2019_64) and in WSL (gcc_64) using the online installer (separate for both installation). Both are configured in "Qt version" in the plugin with Host "Windows" and the other with "Linux WSL". Created the project after the 2 source were created. 2 config (debug and release), one for each version. Linux use "Platform Toolset" : "WSL2" Clang or gcc. On linux config I got this:

       1>Target QtVars: 1> ==== HostExec: Microsoft.Build.Linux.Tasks.Execute 1> ProjectDir: C:\Users\sboulet\source\repos\QtInVs\QtWidgetWinLinux\ 1> IntermediateDir: C:\Users\sboulet\source\repos\QtInVs\QtWidgetWinLinux\obj\x64\Debug_Linux\ 1> RemoteTarget: 1> RemoteProjectDir: /home/mendoza/projects/QtWidgetWinLinux 1> RemoteFilesToCopyLocallyMapping: /home/mendoza/projects/QtWidgetWinLinux/obj/x64/Debug_Linux/qmake/temp/props.txt:=C:\Users\sboulet\source\repos\QtInVs\QtWidgetWinLinux\obj\x64\Debug_Linux\qmake\temp\props.txt 1> CreateDirs: mkdir -p /home/mendoza/projects/QtWidgetWinLinux/obj/x64/Debug_Linux/qmake/temp; mkdir -p $(dirname obj/x64/Debug_Linux/qmake/temp/props.txt) 1> Command: cd /home/mendoza/projects/QtWidgetWinLinux/obj/x64/Debug_Linux/qmake/temp; ("/home/mendoza/Qt/6.6.0/gcc_64/bin/qmake" -query) 1> props.txt 1> Invoking 'mkdir -p /home/mendoza/projects/QtWidgetWinLinux/obj/x64/Debug_Linux/qmake/temp; mkdir -p $(dirname obj/x64/Debug_Linux/qmake/temp/props.txt)', working directory: '/home/mendoza/projects/QtWidgetWinLinux' 1> C:\Users\sboulet\AppData\Local\QtMsBuild\qt_vars.targets(126,5): error MSB4018: The "HostExec" task failed unexpectedly. 1> C:\Users\sboulet\AppData\Local\QtMsBuild\qt_vars.targets(126,5): error MSB4018: System.Exception: Connection not found

      What am I missing? Why does he seem to use SSH? The the whole output (normal verbosity) is attached, the above has been cut.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ali.demiralp Ali Can Demiralp
            heimrich Karsten Heimrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes