QTDIR not set if using Jenkins, MSBuild and Qt Addin
-
Hello,
We are using Visual Studio 2013 with the Qt Addin which works fine. Now we would like to deploy Jenkins to do daily builds of all projects but it seems there is a problem with the QTDIR environmentvariable not being set when msbuild is run by Jenkins.
Settings QTDIR manually is no option because we are using different Qt Versions within a single Visual Studio Solution.
@Das Projekt "c:\Jenkins\workspace\MySolution 32-Bit\Source\MyApp\MyApp.vcxproj.metaproj" (49) erstellt "c:\Jenkins\workspace\MySolution 32-Bit\Source\MyApp\MyApp.vcxproj" (50) auf Knoten "1" (Standardziele).
PrepareForBuild:
Das Verzeichnis "Release" wird erstellt.
Das Verzeichnis "Release\MyApp.tlog" wird erstellt.
InitializeBuildStatus:
"Release\MyApp.tlog\unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.
ComputeCustomBuildOutput:
Das Verzeichnis "c:\Jenkins\workspace\MySolution 32-Bit\Source\MyApp\GeneratedFiles\Release" wird erstellt.
CustomBuild:
Moc'ing WindowDescriptionServerThread.hxx...
Das System kann den angegebenen Pfad nicht finden. /* "The system cannot find the path specified" */
Moc'ing Analyzer.hxx...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing WindowDescriptionServer.hxx...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing ScannerThread.hxx...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing GssApp.hxx...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing ImageLabel.h...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing SensorConnection.h...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing GlobalConfigDialog.h...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing MainWindow.hxx...
Das System kann den angegebenen Pfad nicht finden.
Moc'ing ControlWindow.hxx...
Das System kann den angegebenen Pfad nicht finden.
Uic'ing ControlWindow.ui...
Das System kann den angegebenen Pfad nicht finden.
Uic'ing MainWindow.ui...
Das System kann den angegebenen Pfad nicht finden.
Uic'ing GlobalConfigDialog.ui...
Das System kann den angegebenen Pfad nicht finden.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" wurde mit dem Code 3 beendet. [c:\Jenkins\workspace\MySolution 32-Bit\Source\MyApp\MyApp.vcxproj]
Die Erstellung des Projekts "c:\Jenkins\workspace\MySolution 32-Bit\Source\MyApp\MyApp.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.@How can I set the correct QTDIR for the Qt Version selected in the "Qt Project Settings" dialog in Visual Studio? Any ideas?
Thank you very much for reading this!
Andreas