My blender build in Windows is failing.
Some warning show up right at the beginning:
At the end of the build I get the following errors:
CMake Error at source/creator/cmake_install.cmake:316 (file):
file INSTALL cannot find
“C:/blender-git/blender/…/lib/win64_vc15/tbb/lib/tbb.dll”: File exists.
Call Stack (most recent call first):
cmake_install.cmake:104 (include)C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: The command “setlocal [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: “C:\Program Files\CMake\bin\cmake.exe” -DBUILD_TYPE=Release -P cmake_install.cmake [C:\blender-git
\build_windows_Full_x64_vc16_Release\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxp
roj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: :cmEnd [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\blender-git\build_windows_Full_x64_v
c16_Release\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: :cmErrorLevel [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: exit /b %1 [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: :cmDone [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxp
roj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(15
5,5): error MSB3073: :VCEnd” exited with code 1. [C:\blender-git\build_windows_Full_x64_vc16_Release\INSTALL.vcxproj]
My build environment:
Windows Version 10.0.19042.1165
VS Build Tools 2019 16.11.2 (no IDE)
CUDA 11.1.0
Optix 7.1.0
Cmake 3.21.2
Sliksvn: 1.14.1
Git: 2.33.0.2
CMakeCache.txt edits:
WITH_CYCLES_CUDA_BINARIES=ON
CYCLES_CUDA_BINARIES_ARCH:STRING=sm_86;compute_75
**Notebook GeForce RTX 3060; Do’t know if I need to include the “compute_75” line
WITH_CYCLES_DEVICE_OPTIX:BOOL=ON
OPTIX_ROOT_DIR=C:/ProgramData/NVIDIA Corporation/OptiX SDK 7.1.0
**Had to add this line that I found on the wiki (https://wiki.blender.org/wiki/Building_Blender/CUDA)
WITH_CODEC_FFMPEG:BOOL=OFF
Steps to build:
1-git clone git://git.blender.org/blender.git
2-make update 2019b
3-git checkout v2.93.3
4-make full nobuild 2019b
5-Edit CMakeCache.txt
6-rebuild 2019b