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

Can't use MultiToolTask with Qt VS Tools

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1 (rev.06)
    • Fix Version/s: None
    • Component/s: Build-time integration
    • Labels:
      None

      Description

      qtvsaddinbug.vcxproj:

      <?xml version="1.0" encoding="utf-8"?>
      <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
        <ItemGroup Label="ProjectConfigurations">
          <ProjectConfiguration Include="Debug|x64" />
        </ItemGroup>
        <PropertyGroup Label="Globals">
          <ProjectGuid>{3A6B184A-6563-4959-8A0F-7B40593D489A}</ProjectGuid>
          <Keyword>QtVS_v304</Keyword>
        </PropertyGroup>
        <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
        <Import Project="$(QtMsBuild)\qt_defaults.props" />
        <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
        <Import Project="$(QtMsBuild)\qt.props" />
        <ItemGroup>
          <QtMoc Include="main.hpp" />
        </ItemGroup>
        <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
        <Import Project="$(QtMsBuild)\qt.targets" />
      </Project>

      main.hpp is empty.

      msbuild qtvsaddinbug.vcxproj /p:PlatformToolset=<...> /p:QtInstallDir=<...> (started from the Visual Studio command prompt with the needed values) successfully mocs and compiles, then fails to link, which is expected as there is no code.
      After doing set UseMultiToolTask=true the same invocation successfully mocs but fails to start compilation with error MSB4018: The "MultiToolTask" task failed unexpectedly.

        Attachments

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

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            a.khlyustov a.khlyustov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes