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

Qt application build failed in command line

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 2.6.0 (rev.07)
    • Fix Version/s: None
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Environment:
      Windows 10
      Visual Studio 2017
      Qt Vs Tools 2.6.0
      Qt 5.12.8 msvc2017 64 bits
    • Platform/s:
      Windows

      Description

      Hi,

      We have Qt projects created with Qt VS Tools v 2.5.2 (QtVS_v302) which were compiling on our Jenkins server. Since the update of Qt Vs Tools to v 2.6.0, they are not building anymore. CL.exe fails to find Qt header's.

      I have tried to create a dummy Qt application with Visual Studio 2017 (new project -> Qt -> Qt Widget Application). It compiles and run in the IDE, but does not build on the server.

      Dummy application : https://github.com/ThomArmax/dummy-qtvstool260-test-app

      Build output: 

       

      D:\jenkins\workspace\dummy-qtvstool260-test-app>set QTDIR=Z:\Qt\5.12.8-msvc2017_64
      D:\jenkins\workspace\dummy-qtvstool260-test-app>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64\MSBuild.exe" /t:rebuild /p:Platform=x64 /p:Configuration=Release QtWidgetsApplication1\QtWidgetsApplication1.vcxproj 
      Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 pour .NET Framework
      Copyright (C) Microsoft Corporation. Tous droits r‚serv‚s.
      La g‚n‚ration a d‚marr‚ 29/10/2020 08:51:34.
      Projet "D:\jenkins\workspace\dummy-qtvstool260-test-app\QtWidgetsApplication1\QtWidgetsApplication1.vcxproj" sur le noud 1 (rebuild cible(s)).
      _PrepareForClean:
       Suppression du fichier "x64\Release\QtWidget.674464DE.tlog\QtWidgetsApplication1.lastbuildstate".
      QtClean:
       Suppression du fichier "D:\jenkins\workspace\dummy-qtvstool260-test-app\QtWidgetsApplication1\x64\Release\qt_work.log".
      InitializeBuildStatus:
       Mise … jour de l'horodatage "x64\Release\QtWidget.674464DE.tlog\unsuccessfulbuild".
      QtRccSetDependencies:
       "Z:\Qt\5.12.8-msvc2017_64\bin\rcc.exe" --list "QtWidgetsApplication1.qrc" > "x64\Release\rcc_list.txt" 2> nul
       Suppression du fichier "x64\Release\rcc_list.txt".
      QtRccFilterSetModified:
      La cible est ignor‚e "QtRccFilterSetModified" car elle ne comporte pas de sortie.
      QtRccFilter:
      La cible est ignor‚e "QtRccFilter" car elle ne comporte pas de sortie.
      QtQmlSetModified:
      La cible est ignor‚e "QtQmlSetModified" car elle ne comporte pas de sortie.
      QtQml:
      La cible est ignor‚e "QtQml" car elle ne comporte pas de sortie.
      QtWork:
       Uic'ing QtWidgetsApplication1.ui...
       Rcc'ing QtWidgetsApplication1.qrc...
       Moc'ing QtWidgetsApplication1.h...
       RCC: Warning: No resources in 'D:\jenkins\workspace\dummy-qtvstool260-test-app\QtWidgetsApplication1\QtWidgetsApplication1.qrc'.
      ClCompile:
       C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\CL.exe /c /I"C:\Program Files (x86)\Visual Leak Detector\include" /nologo /W1 /WX- /diagnostics:classic /MP /O2 /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Yc"stdafx.h" /Fp"x64\Release\QtWidgetsApplication1.pch" /Fo"x64\Release\\" /Fd"x64\Release\vc141.pdb" /Gd /TP /FC /errorReport:queue stdafx.cpp
       stdafx.cpp
      d:\jenkins\workspace\dummy-qtvstool260-test-app\qtwidgetsapplication1\stdafx.h(1): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'QtWidgets'ÿ: No such file or directory [D:\jenkins\workspace\dummy-qtvstool260-test-app\QtWidgetsApplication1\QtWidgetsApplication1.vcxproj]
      G‚n‚ration du projet "D:\jenkins\workspace\dummy-qtvstool260-test-app\QtWidgetsApplication1\QtWidgetsApplication1.vcxproj" termin‚e (rebuild cible(s)) -- �CHEC.
      �CHEC de la build.
      "D:\jenkins\workspace\dummy-qtvstool260-test-app\QtWidgetsApplication1\QtWidgetsApplication1.vcxproj" (rebuild cible) (1) ->
      (ClCompile cible) -> 
       d:\jenkins\workspace\dummy-qtvstool260-test-app\qtwidgetsapplication1\stdafx.h(1): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'QtWidgets'ÿ: No such file or directory [D:\jenkins\workspace\dummy-qtvstool260-test-app\QtWidgetsApplication1\QtWidgetsApplication1.vcxproj]
      0 Avertissement(s)
       1 Erreur(s)
      

       

      In the build script, I set QTDIR env var, and then start MSBUILD. Am I missing other env variable required by the new Qt Vs Tools, or is a Qt Vs Tools issue ?

      Thanks by advance

      Thomas.

        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:
            thomascoin Thomas Coin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes