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

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 2.8.1 (rev.06), 3.0.2
    • Build-time integration
    • None
    • 5c0a82204 (dev)

    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

            ali.demiralp Ali Can Demiralp
            a.khlyustov a.khlyustov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes