Build "INSTALL" on Microsoft VS gets multiple failed

Hi, I was following along the guide to build Blender on Windows and all went fine until the last step.

Already in the Visual Studio, I right clicked “INSTALL” inside CMake folder, to build and (after a while)…
========== Build: 138 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

The lines that failed are:

  1. 139>Done building project “blender.vcxproj” – FAILED.
  2. 117>Done building project “bf_usd.vcxproj” – FAILED.
  3. 141>Done building project “INSTALL.vcxproj” – FAILED.

I’m a complete rookie, basically getting started with software development and never done any building before (I come from web development, and no expert either).
I cannot figure out if it did build Blender or not. Should I try to “build install” again? If so, what do I do differently?
Thanks so much in advance

I don’t use windows, but I suppose errors would be required to find out what went wrong with the projects.

https://docs.microsoft.com/en-us/visualstudio/ide/how-to-view-save-and-configure-build-log-files?view=vs-2019

1 Like

These are just the final errors going ‘something went wrong’ which really doesn’t tell you all that much, the actual errors are higher up in the build log.

post those or attach a full buildlog for us to take a look at.

1 Like

Thank you both for your prompt replies! I followed the instructions to get the INSTALL.log but cannot upload (“Sorry, new users can not upload attachments.”). Here’s a link to the log file: https://gist.github.com/F-Rei/e35a2bcc42eedca785abb8b042fcb124

Either way, here’s the end of the file with the error log:
CMake Error at source/creator/cmake_install.cmake:2119 (file):
file INSTALL cannot find
“C:/blender-2.83-git/build_windows_Full_x64_vc16_Release/bin/Debug/blender.exe”:
No such file or directory.
Call Stack (most recent call first):
cmake_install.cmake:99 (include)

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: The command “setlocal
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: “C:\Program Files\CMake\bin\cmake.exe” -DBUILD_TYPE=Debug -P cmake_install.cmake
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :cmEnd
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :cmErrorLevel
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: exit /b %1
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :cmDone
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(148,5): error MSB3073: :VCEnd” exited with code 1.

Me: the end it is not very helpful, the real issue is higher up, please post that
You: So here’s the end of my log file

You’re not making it very easy to help you, that being said the log file did reveal you are by the looks of it trying to build blender 2.83 and i’m guessing you have the latest master libs from svn.

move your current vc15_win64 folder out of the way and run

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

to obtain the 2.83 version of the libs.

1 Like

Sorry. Doing that right now.
Afterwards should I delete the build_windows_Full_x64_vc16_Release folder and try to build again, or just plain build?

Meanwhile here’s the log: https://gist.github.com/F-Rei/e35a2bcc42eedca785abb8b042fcb124

Once you have the correct libraries you can just rebuild.

side-note, you may upload logs on https://gist.github.com, https://pastebin.com, https://hastebin.com, or https://developer.blender.org/paste/edit/form/default/

@LazyDodo did that and it worked!

@ankitm updated the link!

Thank you both, I can finally start playing/peeking behind the scenes!