Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
if NOT "%verbose%" == "" (
echo Detecting msvc 2017
)
set BUILD_VS_VER=15
set BUILD_VS_YEAR=2017
set ProgramFilesX86=%ProgramFiles(x86)%
if not exist "%ProgramFilesX86%" set ProgramFilesX86=%ProgramFiles%
set vs_where=%ProgramFilesX86%\Microsoft Visual Studio\Installer\vswhere.exe
if not exist "%vs_where%" (
echo Visual Studio 2017 ^(15.2 or newer^) is not detected
goto FAIL
echo "%vs_where%" -latest %VSWHERE_ARGS% -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
for /f "usebackq tokens=1* delims=: " %%i in (`"%vs_where%" -latest %VSWHERE_ARGS% -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64`) do (
if /i "%%i"=="installationPath" set VS_InstallDir=%%j
if "%VS_InstallDir%"=="" (
echo Visual Studio is detected but the "Desktop development with C++" workload has not been instlled
set VCVARS=%VS_InstallDir%\VC\Auxiliary\Build\vcvarsall.bat
if exist "%VCVARS%" (
call "%VCVARS%" %BUILD_ARCH%
) else (
echo "%VCVARS%" not found
rem try msbuild
msbuild /version > NUL
if errorlevel 1 (
echo Visual Studio %BUILD_VS_YEAR% msbuild not found
echo Visual Studio %BUILD_VS_YEAR% msbuild found
REM try the c++ compiler
cl 2> NUL 1>&2
echo Visual Studio %BUILD_VS_YEAR% C/C++ Compiler not found
echo Visual Studio %BUILD_VS_YEAR% C/C++ Compiler found
echo Visual Studio 2017 is detected successfully
goto EOF
:FAIL
exit /b 1
:EOF