On Building Libraries, after configuring and generating with cmake, when running build for first time in visual studio community 2022, the first time shows errors albeit running till the end. But on second build (as recommended on github readme to build a second time) there are no failures nor errors
========== Build: 18 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========
Similarly, errors on first build for vsp. still waiting on second build
so does this mean there are actually no errors and successfully built on second attempt, or just masked errors?
Windows 10 Machine
CMake 3
VS Community 2022
Error on first build for Libraries:
Severity Code Description Project File Line Suppression State
Error MSB8066 Custom build for 'C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\b2b745b169035556097b8390a0a1dd94\STEPCODE-mkdir.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\b2b745b169035556097b8390a0a1dd94\STEPCODE-download.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\b2b745b169035556097b8390a0a1dd94\STEPCODE-update.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\b2b745b169035556097b8390a0a1dd94\STEPCODE-patch.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\b2b745b169035556097b8390a0a1dd94\STEPCODE-configure.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\b2b745b169035556097b8390a0a1dd94\STEPCODE-build.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\b2b745b169035556097b8390a0a1dd94\STEPCODE-install.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\66b07516c5481ebc666cb878a6328e4f\STEPCODE-complete.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\Libraries\CMakeFiles\6b09151e5ffd3d968c146aa436f1c417\STEPCODE.rule;C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\Libraries\CMakeLists.txt' exited with code 1. STEPCODE C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 247
Errors on first build for VSP
Severity Code Description Project File Line Suppression State
Error C1001 Internal compiler error. solver C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.C 22098
9>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.H(1390,9): warning C4067: unexpected tokens following preprocessor directive - expected a newline (compiling source file C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.C)
9>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.H(1424,9): warning C4067: unexpected tokens following preprocessor directive - expected a newline (compiling source file C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.C)
6>VspCurve.cpp
9>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.C(12532,9): warning C4067: unexpected tokens following preprocessor directive - expected a newline
9>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.C(12625,9): warning C4067: unexpected tokens following preprocessor directive - expected a newline
9>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.C(12689,9): warning C4067: unexpected tokens following preprocessor directive - expected a newline
5>viewerscreens.vcxproj -> C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\vsp\src\vsp_aero\Viewer\Release\viewerscreens.lib
9>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Solver.C(22098): fatal error C1001: Internal compiler error.
Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file 'Release\solver.lib' vspaero C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\vsp\src\vsp_aero\Solver\LINK 1
17>------ Build started: Project: py_copy_images, Configuration: Release x64 ------
16>Building Custom Rule C:/OpenVSP/OpenVSP-OpenVSP_3.44.0_Source/OpenVSP/src/external/glfont2/CMakeLists.txt
14>Building Custom Rule C:/OpenVSP/OpenVSP-OpenVSP_3.44.0_Source/OpenVSP/src/help/CMakeLists.txt
10>LINK : fatal error LNK1181: cannot open input file 'Release\solver.lib'
Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file 'Release\solver.lib' vspaero_opt C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_compiled_by_Thomas\build\vsp\src\vsp_aero\Solver\LINK 1
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1955,29): warning C4477: 'fscanf' : format string '%lf' requires an argument of type 'double *', but variadic argument 2 has type 'adept::adouble *'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1955,29): warning C4477: 'fscanf' : format string '%lf' requires an argument of type 'double *', but variadic argument 3 has type 'adept::adouble *'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1956,29): warning C4477: 'fscanf' : format string '%lf' requires an argument of type 'double *', but variadic argument 1 has type 'adept::adouble *'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1959,19): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 1 has type 'adept::adouble'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1959,19): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 2 has type 'adept::adouble'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1959,19): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 3 has type 'adept::adouble'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1960,20): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 1 has type 'adept::adouble'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1960,20): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 2 has type 'adept::adouble'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1960,20): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 3 has type 'adept::adouble'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\VSP_Optimizer.C(1961,19): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 1 has type 'adept::adouble'
38>C:\OpenVSP\OpenVSP-OpenVSP_3.44.0_Source\OpenVSP\src\vsp_aero\Solver\vspaero_opt.C(1888): warning C4700: uninitialized local variable 'Eff' used
38>LINK : fatal error LNK1181: cannot open input file 'Release\solver.lib'