We achieved a successful Qt 5.5.1 build of our large Qt 4.8 application, built with MSVC 2010, 64-bit.

But this build is succeeding only on the single machine on which Qt 5.5.1 was actually built. When we try to compile our application on another machine, we are getting many of these ERRORS in Visual Studio 2010:

 * moc: Cannot open options file specified with @
 * QCommandLineParser: argument list cannot be empty, it should contain
   at least the executable name

... see attachment file for broader context.

I've replicated components from the original Qt 5.5.1 build machine to the other development machine which I believe aren't supposed to be needed for the latter, including putting Qt 5.5.1's qtbase\bin on the path. (This is effectively redundant with having copied the contents of that directory to another one which had already been on the path). We manage our source with GIT, and never have difficulties reliably pulling our source (Visual Studio Solution Tree) onto our development machines.

Our Qt 5.5.1 build has this configuration -- and, as mentioned above, does result on a working Qt 5.5.1 on that machine. (The resulting Qt-551 tree is about 13.6 GB) ...

   configure
     -prefix %CD%\qtbase
     -commercial
     -nomake tests
     -debug-and-release
     -platform win32-msvc2010
     -shared
     -qt-zlib
     -qt-libpng
     -qt-libjpeg
     -no-opengl
     -no-angle
     -icu
     -no-strip
     -saveconfig CwQt551-ConfigOut


The environment on the 2nd development machine (which shows the build errors) has this environment:

   include=C:\RiverWare\tools\icu-55.1\include
   lib=C:\RiverWare\tools\icu-55.1\lib64

   PATH=
     C:\RiverWare\tools\Qt-551\qtbase\bin;
     C:\Perl\bin\;
     C:\Tcl\bin;
     C:\Windows\system32;
     C:\Windows;
     C:\Windows\System32\Wbem;
     C:\Windows\System32\WindowsPowerShell\v1.0\;
     C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;
     C:\RiverWare\bin;
     C:\RiverWare\bin.reorg;
     C:\RiverWare\tools\bin;
     C:\RiverWare\tools\UnxUtils;
     C:\RiverWare\tools\tkcvs\bin;
     C:\Program Files\Diskeeper Corporation\Diskeeper;
     C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;
     C:\Program Files (x86)\Acronis\CommandLineTool\;
     C:\RiverWare\tools\icu-55.1\bin64;
     C:\Ruby193\bin;
     C:\Program Files (x86)\Common Files\Acronis\TibMounter64

QUESTION: What might be causing these MOC and QCommandLineParser errors?

Attached: Vs2010-Moc-Failure.txt

Thank you in advance,
Phil Weinstein, CADSWES, Colorado, USA
1>------ Build started: Project: QtRunGenerated, Configuration: Debug x64 ------
2>------ Build started: Project: QtAccountingGenerated, Configuration: Debug 
x64 ------
3>------ Build started: Project: QtDmiGenerated, Configuration: Debug x64 ------
4>------ Build started: Project: QtRplGenerated, Configuration: Debug x64 ------
2>  MOC AccountMgrDlg.hpp
4>  MOC RowOToggles.hpp
3>  MOC DmiEditorDlg.hpp
1>  MOC CsvFileCfgDlg.hpp
4>  moc: Cannot open options file specified with @
4>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
4>  
2>  moc: Cannot open options file specified with @
1>  moc: Cannot open options file specified with @
1>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
2>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
2>  
1>  
3>  moc: Cannot open options file specified with @
3>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
3>  
4>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
3>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
2>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
1>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
5>------ Build started: Project: QtSCTGenerated, Configuration: Debug x64 ------
6>------ Build started: Project: Q3GUIGenerated, Configuration: Debug x64 ------
7>------ Build started: Project: DbDmiGenerated, Configuration: Debug x64 ------
8>------ Build started: Project: QtUtilsGenerated, Configuration: Debug x64 
------
5>  MOC EditSctSlotListPanel.hpp
7>  MOC DatasetCfgWidget.hpp
5>  moc: Cannot open options file specified with @
5>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
5>  
5>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
7>  moc: Cannot open options file specified with @
7>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
7>  
7>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
9>------ Build started: Project: Rpl, Configuration: Debug x64 ------
8>  MOC AbstractFileParamDlg.hpp
8>  moc: Cannot open options file specified with @
8>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
8>  
8>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
10>------ Build started: Project: RplExpression, Configuration: Debug x64 ------
6>  MOC AboutDlg.hpp
6>  moc: Cannot open options file specified with @
6>  QCommandLineParser: argument list cannot be empty, it should contain at 
least the executable name
6>  
6>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error 
MSB6006: "cmd.exe" exited with code 1.
11>------ Build started: Project: Accounting, Configuration: Debug x64 ------
12>------ Build started: Project: QtUtils, Configuration: Debug x64 ------
10>  BinaryExpr.cpp
9>  AssignStmt.cpp
11>  Account.cpp
12>  AbstractFileParamDlg.cpp
10>  BooleanValue.cpp
10>  DateTime.tab.cpp
9>  CategoryGroup.cpp
10>  DateTimeInterpreter.cpp
11>  AccountDebug.cpp
10>  DateTimeValue.cpp
11>  AccountMgr.cpp
9>  ConstraintStmt.cpp
12>  AccountGfxItem.cpp
10>  DayWeekYearSDT.cpp
9>  DerivedObjStmt.cpp
10>DayWeekYearSDT.cpp(810): warning C4305: 'argument' : truncation from 
'libRplExpressionMsgId' to 'bool'
10>DayWeekYearSDT.cpp(816): warning C4305: 'argument' : truncation from 
'libRplExpressionMsgId' to 'bool'
10>DayWeekYearSDT.cpp(830): warning C4305: 'argument' : truncation from 
'libRplExpressionMsgId' to 'bool'
10>  DayYearSDT.cpp
9>  DocumentInfo.cpp
12>  AccountingGfxScene.cpp
10>  ForExpr.cpp
10>  FuncCallExpr.cpp
9>  ExecScriptStmt.cpp
10>  IfExpr.cpp
9>  ExprObjStmt.cpp
10>  ListExpr.cpp
11>  AccountTable.cpp
9>  ForStmt.cpp
10>  ListValue.cpp
12>  AcctRowGfxItem.cpp
10>  MapListExpr.cpp
9>  FreezeStmt.cpp
11>  AccountingAttrib.cpp
10>  MonthDayYearSDT.cpp
Build has been canceled.
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to