vs 2019 and qt 5.15.2 build failed on windows

Create issue
Issue #1121 new
Donghua Liu created an issue

I installed vs 2019 and qt 5.12.2 which also contains vs 2019. Then I try to build according to the readme.

D:\code\c_cpp\speedcrunch>mkdir build
D:\code\c_cpp\speedcrunch>cd build
D:\code\c_cpp\speedcrunch\build>cmake -G "Visual Studio 16 2019" -A x64 ../src
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.29.30141.0
-- The CXX compiler identification is MSVC 19.29.30141.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: D:/code/c_cpp/speedcrunch/build

D:\code\c_cpp\speedcrunch\build>msbuild speedcrunch.sln /property:Configuration=Release
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 2022/4/4 9:30:14.
Project "D:\code\c_cpp\speedcrunch\build\speedcrunch.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
ValidateProjects:
  The project "INSTALL" is not selected for building in solution configuration "Release|x64".
  The project "PACKAGE" is not selected for building in solution configuration "Release|x64".
  The project "RUN_TESTS" is not selected for building in solution configuration "Release|x64".
  The project "confclean" is not selected for building in solution configuration "Release|x64".
  The project "uninstall" is not selected for building in solution configuration "Release|x64".
Project "D:\code\c_cpp\speedcrunch\build\speedcrunch.sln" (1) is building "D:\code\c_cpp\speedcrunch\build\ALL_BUILD.vc
xproj.metaproj" (2) on node 1 (default targets).
Project "D:\code\c_cpp\speedcrunch\build\ALL_BUILD.vcxproj.metaproj" (2) is building "D:\code\c_cpp\speedcrunch\build\Z
ERO_CHECK.vcxproj" (3) on node 1 (default targets).
PrepareForBuild:
  Creating directory "x64\Release\ZERO_CHECK\".
  Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Checking Build System
FinalizeBuildStatus:
  Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "D:\code\c_cpp\speedcrunch\build\ZERO_CHECK.vcxproj" (default targets).

Project "D:\code\c_cpp\speedcrunch\build\ALL_BUILD.vcxproj.metaproj" (2) is building "D:\code\c_cpp\speedcrunch\build\s
peedcrunch.vcxproj.metaproj" (4) on node 1 (default targets).
Project "D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj.metaproj" (4) is building "D:\code\c_cpp\speedcrunch\build
\speedcrunch.vcxproj" (5) on node 1 (default targets).
PrepareForBuild:
  Creating directory "speedcrunch.dir\Release\".
  Creating directory "D:\code\c_cpp\speedcrunch\build\Release\".
  Creating directory "speedcrunch.dir\Release\speedcrunch.tlog\".
InitializeBuildStatus:
  Creating "speedcrunch.dir\Release\speedcrunch.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
PreBuildEvent:
  Automatic MOC for target speedcrunch
  setlocal
  cd D:\code\c_cpp\speedcrunch\build
  if %errorlevel% neq 0 goto :cmEnd
  D:
  if %errorlevel% neq 0 goto :cmEnd
  "C:\Program Files\CMake\bin\cmake.exe" -E cmake_autogen D:/code/c_cpp/speedcrunch/build/CMakeFiles/speedcrunch_autoge
  n.dir/AutogenInfo.json Release
  if %errorlevel% neq 0 goto :cmEnd
  :cmEnd
  endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
  :cmErrorLevel
  exit /b %1
  :cmDone
  if %errorlevel% neq 0 goto :VCEnd
  :VCEnd
ComputeCustomBuildOutput:
  Creating directory "D:\code\c_cpp\speedcrunch\build\speedcrunch_autogen\3YJK5W5UP7\".
  Creating directory "D:\code\c_cpp\speedcrunch\build\speedcrunch_autogen\7DIYDHRIJA\".
CustomBuild:
  Generating speedcrunch.rc.obj
  Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

  Copyright (C) Microsoft Corporation.  All rights reserved.


  Automatic RCC for resources/speedcrunch.qrc
  Automatic RCC for ../doc/build_html_embedded/manual.qrc
  Building Custom Rule D:/code/c_cpp/speedcrunch/src/CMakeLists.txt
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /ID
  :\code\c_cpp\speedcrunch\build /ID:\code\c_cpp\speedcrunch\src /ID:\code\c_cpp\speedcrunch\build\speedcrunch_autogen\
  include_Release /ID:\code\c_cpp\speedcrunch\src\thirdparty /ID:\code\c_cpp\speedcrunch\src\core /ID:\code\c_cpp\speed
  crunch\src\gui /ID:\code\c_cpp\speedcrunch\src\math /ID:\apps\qt\5.15.2\msvc2019_64\include /ID:\apps\qt\5.15.2\msvc2
  019_64\include\QtWidgets /ID:\apps\qt\5.15.2\msvc2019_64\include\QtGui /ID:\apps\qt\5.15.2\msvc2019_64\include\QtANGL
  E /ID:\apps\qt\5.15.2\msvc2019_64\include\QtCore /I"D:\apps\qt\5.15.2\msvc2019_64\.\mkspecs\win32-msvc" /ID:\apps\qt\
  5.15.2\msvc2019_64\include\QtHelp /ID:\apps\qt\5.15.2\msvc2019_64\include\QtSql /nologo /W3 /WX- /diagnostics:column
  /O2 /Ob2 /D _MBCS /D WIN32 /D _WINDOWS /D NDEBUG /D _USE_MATH_DEFINES /D _CRT_SECURE_NO_WARNINGS /D _CRT_NONSTDC_NO_W
  ARNINGS /D _SCL_SECURE_NO_WARNINGS /D "SPEEDCRUNCH_VERSION=\"master\"" /D QT_USE_QSTRINGBUILDER /D QT_WIDGETS_LIB /D
  QT_GUI_LIB /D QT_CORE_LIB /D QT_NO_DEBUG /D QT_HELP_LIB /D QT_SQL_LIB /D "CMAKE_INTDIR=\"Release\"" /Gm- /EHsc /MD /G
  S /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"speedcrunch.dir\Release\\" /Fd"speedcrunch.dir\Release\vc14
  2.pdb" /external:W3 /Gd /TP /errorReport:queue D:\code\c_cpp\speedcrunch\src\main.cpp D:\code\c_cpp\speedcrunch\src\c
  ore\book.cpp D:\code\c_cpp\speedcrunch\src\core\constants.cpp D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp D:\cod
  e\c_cpp\speedcrunch\src\core\functions.cpp D:\code\c_cpp\speedcrunch\src\core\manualserver.cpp D:\code\c_cpp\speedcru
  nch\src\core\numberformatter.cpp D:\code\c_cpp\speedcrunch\src\core\pageserver.cpp D:\code\c_cpp\speedcrunch\src\core
  \settings.cpp D:\code\c_cpp\speedcrunch\src\core\session.cpp D:\code\c_cpp\speedcrunch\src\core\sessionhistory.cpp D:
  \code\c_cpp\speedcrunch\src\core\variable.cpp D:\code\c_cpp\speedcrunch\src\core\userfunction.cpp D:\code\c_cpp\speed
  crunch\src\core\opcode.cpp D:\code\c_cpp\speedcrunch\src\gui\aboutbox.cpp D:\code\c_cpp\speedcrunch\src\gui\bitfieldw
  idget.cpp D:\code\c_cpp\speedcrunch\src\gui\bookdock.cpp D:\code\c_cpp\speedcrunch\src\gui\constantswidget.cpp D:\cod
  e\c_cpp\speedcrunch\src\gui\editor.cpp D:\code\c_cpp\speedcrunch\src\gui\functionswidget.cpp D:\code\c_cpp\speedcrunc
  h\src\gui\historywidget.cpp D:\code\c_cpp\speedcrunch\src\gui\keypad.cpp D:\code\c_cpp\speedcrunch\src\gui\mainwindow
  .cpp D:\code\c_cpp\speedcrunch\src\gui\manualwindow.cpp D:\code\c_cpp\speedcrunch\src\gui\resultdisplay.cpp D:\code\c
  _cpp\speedcrunch\src\gui\syntaxhighlighter.cpp D:\code\c_cpp\speedcrunch\src\gui\variablelistwidget.cpp D:\code\c_cpp
  \speedcrunch\src\gui\userfunctionlistwidget.cpp D:\code\c_cpp\speedcrunch\src\math\hmath.cpp D:\code\c_cpp\speedcrunc
  h\src\math\cmath.cpp D:\code\c_cpp\speedcrunch\src\math\cnumberparser.cpp D:\code\c_cpp\speedcrunch\src\math\rational
  .cpp D:\code\c_cpp\speedcrunch\src\math\quantity.cpp D:\code\c_cpp\speedcrunch\src\math\units.cpp D:\code\c_cpp\speed
  crunch\build\speedcrunch_autogen\3YJK5W5UP7\qrc_speedcrunch.cpp D:\code\c_cpp\speedcrunch\build\speedcrunch_autogen\7
  DIYDHRIJA\qrc_manual.cpp D:\code\c_cpp\speedcrunch\build\speedcrunch_autogen\mocs_compilation_Release.cpp
  main.cpp
  book.cpp
  constants.cpp
D:\code\c_cpp\speedcrunch\src\core\constants.cpp(302,1): warning C4819: The file contains a character that cannot be re
presented in the current code page (936). Save the file in Unicode format to prevent data loss [D:\code\c_cpp\speedcrun
ch\build\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\constants.cpp(373,5): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\bu
ild\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\constants.cpp(391,1): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\bu
ild\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\constants.cpp(392,1): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\bu
ild\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\constants.cpp(393,1): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\bu
ild\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\constants.cpp(373,1): fatal error C1057: unexpected end of file in macro expansion [
D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
  evaluator.cpp
D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(1,1): warning C4819: The file contains a character that cannot be repr
esented in the current code page (936). Save the file in Unicode format to prevent data loss [D:\code\c_cpp\speedcrunch
\build\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(631,9): warning C4129: '*': unrecognized character escape sequence [D:
\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(843,35): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\b
uild\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(845,5): error C2146: syntax error: missing ')' before identifier 'setV
ariable' [D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(843,5): error C2660: 'Evaluator::setVariable': function does not take
1 arguments [D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core/evaluator.h(154,10): message : see declaration of 'Evaluator::setVariable' [D:\code\
c_cpp\speedcrunch\build\speedcrunch.vcxproj]
D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(845,5): error C2146: syntax error: missing ';' before identifier 'setV
ariable' [D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
  functions.cpp
Attempting to cancel the build...
Done Building Project "D:\code\c_cpp\speedcrunch\build\speedcrunch.sln" (default targets) -- FAILED.

Done Building Project "D:\code\c_cpp\speedcrunch\build\ALL_BUILD.vcxproj.metaproj" (default targets) -- FAILED.

Done Building Project "D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj.metaproj" (default targets) -- FAILED.

Done Building Project "D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj" (default targets) -- FAILED.


Build FAILED.

"D:\code\c_cpp\speedcrunch\build\speedcrunch.sln" (default target) (1) ->
"D:\code\c_cpp\speedcrunch\build\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj.metaproj" (default target) (4) ->
"D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj" (default target) (5) ->
(ClCompile target) ->
  D:\code\c_cpp\speedcrunch\src\core\constants.cpp(302,1): warning C4819: The file contains a character that cannot be
represented in the current code page (936). Save the file in Unicode format to prevent data loss [D:\code\c_cpp\speedcr
unch\build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(1,1): warning C4819: The file contains a character that cannot be re
presented in the current code page (936). Save the file in Unicode format to prevent data loss [D:\code\c_cpp\speedcrun
ch\build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(631,9): warning C4129: '*': unrecognized character escape sequence [
D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]


"D:\code\c_cpp\speedcrunch\build\speedcrunch.sln" (default target) (1) ->
"D:\code\c_cpp\speedcrunch\build\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
"D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj.metaproj" (default target) (4) ->
"D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj" (default target) (5) ->
(ClCompile target) ->
  D:\code\c_cpp\speedcrunch\src\core\constants.cpp(373,5): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\
build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\constants.cpp(391,1): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\
build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\constants.cpp(392,1): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\
build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\constants.cpp(393,1): error C2001: newline in constant [D:\code\c_cpp\speedcrunch\
build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\constants.cpp(373,1): fatal error C1057: unexpected end of file in macro expansion
 [D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(843,35): error C2001: newline in constant [D:\code\c_cpp\speedcrunch
\build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(845,5): error C2146: syntax error: missing ')' before identifier 'se
tVariable' [D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(843,5): error C2660: 'Evaluator::setVariable': function does not tak
e 1 arguments [D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]
  D:\code\c_cpp\speedcrunch\src\core\evaluator.cpp(845,5): error C2146: syntax error: missing ';' before identifier 'se
tVariable' [D:\code\c_cpp\speedcrunch\build\speedcrunch.vcxproj]

    3 Warning(s)
    9 Error(s)

Time Elapsed 00:00:10.25

D:\code\c_cpp\speedcrunch\build>

Comments (0)

  1. Log in to comment