Can not build blender 2.7 branch because of C make Error(solved)


#1

I could “make update” and “make release” by git and cmake about brender 2.7 branch
but today I tried to “make release” to build release version of 2.79, I see these error about Cmake.

I could up-date, but when I tried to build by “make release”, everytime I see these erroer message.

CMake Error at cmake_install.cmake:36 (file):
file INSTALL cannot find “C:/myprograms/Microsoft Visual
Studio/2017/Community/VC/Redist/MSVC/14.15.26706/x64/Microsoft.VC141.CRT/msvcp140.dll”.

C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: コマンド “setlocal [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTALL.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: “C:\Program Files\CMake\bin\cmake.exe” -DBUILD_TYPE=Release -P cmake_install.cmake [C:\myprograms\blender279-
git\build_windows_Release_x64_vc15_Release\INSTALL.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTAL
L.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: :cmEnd [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTALL.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\myprograms\blender279-git\build_windows_Release
_x64_vc15_Release\INSTALL.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: :cmErrorLevel [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTALL.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: exit /b %1 [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTALL.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: :cmDone [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTALL.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTAL
L.vcxproj]
C:\myprograms\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(138,5): error
MSB3073: :VCEnd” はコード 1 で終了しました。 [C:\myprograms\blender279-git\build_windows_Release_x64_vc15_Release\INSTALL.vcxproj]
Error during install phase

Can someone help me, what I need to check? and other windows user could build 2.79 without problem?

===========
OK it seems solved for me,

I delete “build_windows_Release_x64_vc15_Release” folda (which blender 2.79 build) once, then make-update, make- release again. now it seems worked without generate same error.
Bat file auto detect msvcp140.dll path and set correctly, I hope so.


#2

I checked the directotry of Visual sutido 2017 (community) , about msvicp140.dll
Then actually there is no directory of VS
“/Microsoft VisualStudio/2017/Community/VC/Redist/MSVC/14.15.26706/”

But I can find “/Microsoft VisualStudio/2017/Community/VC/Redist/MSVC/14.16.27012”

I felt, it caused by Visual Studio 2017 up-date, (I did once to install C# tools)
and I had seen same erroer about blender 2.8 (master) once when I tried to build, but it was disappeared , when I tried to up-date and build again, then I can up-date and build without problem about 2.8 (master)

But about 2.7 branch, I can not remove this bug. how Can I set " msvicp140.dll" correctly?
or Do I need to report it?


#3

I’m gonna guess you updated vs after creating your project files, try removing your build folder (build_windows_Full_x64_vc15_Release) and running make full again.