Uwe Stöhr wrote: > When I compile LyX 2.2git with Qt5.5 and MSVC 2013 in install mode this > command is executed: > > msbuild INSTALL.vcxproj /p:Configuration=Release > > But this leads now to these errors: > > "D:\LyXGit\Master\compile-2013\INSTALL.vcxproj" (Standardziel) (1) -> > (PostBuildEvent Ziel) -> > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: Der Befehl "setlocal\r > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: "C:\Program Files (x86)\CMake\bin\cmake.exe" > -DBUILD_TYPE=Release -P cmake_install.cmake\r > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: :cmEnd\r [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone\r > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: :cmErrorLevel\r > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: exit /b %1\r > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: :cmDone\r [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj] > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): > error MSB3073: :VCEnd" wurde mit dem Code 1 beendet. > [D:\LyXGit\Master\compile-2013\INSTALL.vcxproj]
Did you set the USED_STUDIO variable in build.bat to "Visual Studio 12 2013" (either directly or by calling build.bat with a second command line argument? If not, then this could be the reason. MSVC can read project files from older versions in general, but the messy .vcxproj files that cmake creates may contain version specific stuff that breaks backward compatibility. If you did not set this variable, then please clean everything before running cmake again, otherwise you could get a mixture of old and new versions. Another possibily might be that our cmake setup contains version specific install code somehwere, but I still have a very hard time understanding CMakeLists.txt files, so I don't know if that is the case. Georg