Build Error

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 (Building Blender/CUDA - Blender Developer Wiki)

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

You are building 2.93 against master svn libs, you can grab the correct libraries by moving your current win64_vc15 folder out of the way and running

svn co https://svn.blender.org/svnroot/bf-blender/tags/blender-2.93-release/lib/win64_vc15

1 Like

Thank you very much for your patience/helpfulness LazyDodo

The build worked this time, though I still got 9 Warnings:

C:/blender-git/blender/intern/cycles/kernel/..\kernel/kernel_globals.h(120): warning : extern declaration of the entity
 __params is treated as a static definition [C:\blender-git\build_windows_Full_x64_vc16_Release\intern\cycles\kernel\cy
cles_kernel_optix.vcxproj]

CUSTOMBUILD : nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures a
re deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). [C:\blende
r-git\build_windows_Full_x64_vc16_Release\intern\cycles\kernel\cycles_kernel_optix.vcxproj]

C:/blender-git/blender/intern/cycles/kernel/..\kernel/kernel_globals.h(120): warning : extern declaration of the entity
 __params is treated as a static definition [C:\blender-git\build_windows_Full_x64_vc16_Release\intern\cycles\kernel\cy
cles_kernel_optix.vcxproj]

CUSTOMBUILD : nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures a
re deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). [C:\blende
r-git\build_windows_Full_x64_vc16_Release\intern\cycles\kernel\cycles_kernel_optix.vcxproj]

C:\blender-git\blender\source\blender\io\alembic\exporter\abc_export_capi.cc(153,33): warning C4244: '=': conversion fr
om 'double' to 'float', possible loss of data [C:\blender-git\build_windows_Full_x64_vc16_Release\source\blender\io\ale
mbic\bf_alembic.vcxproj]

C:\blender-git\blender\source\blender\io\alembic\intern\abc_reader_mesh.cc(692,44): warning C4244: '=': conversion from
 'Alembic::AbcCoreAbstract::v12::chrono_t' to 'float', possible loss of data [C:\blender-git\build_windows_Full_x64_vc1
6_Release\source\blender\io\alembic\bf_alembic.vcxproj]

C:\blender-git\blender\source\blender\io\alembic\intern\abc_reader_mesh.cc(982,44): warning C4244: '=': conversion from
 'Alembic::AbcCoreAbstract::v12::chrono_t' to 'float', possible loss of data [C:\blender-git\build_windows_Full_x64_vc1
6_Release\source\blender\io\alembic\bf_alembic.vcxproj]

C:\blender-git\blender\source\blender\io\alembic\exporter\abc_archive.cc(122,20): warning C4244: 'initializing': conver
sion from 'double' to 'int', possible loss of data [C:\blender-git\build_windows_Full_x64_vc16_Release\source\blender\i
o\alembic\bf_alembic.vcxproj]

C:\blender-git\blender\source\blender\io\alembic\exporter\abc_writer_curves.cc(160,27): warning C4244: 'argument': conv
ersion from 'short' to '_Ty', possible loss of data [C:\blender-git\build_windows_Full_x64_vc16_Release\source\blender\
io\alembic\bf_alembic.vcxproj]
          with
          [
              _Ty=unsigned char
      ]

Are these “normal” because of the small modifications I made to the build?

These warnings are expected, and not due to anything you did.