[SOLVED] Building Blender in CMD with Cmake cant find python?

While trying to build Blender with Cmake i get the saying below that it cant find python and if i try to download the missing libary i get the error that it needs python and its shutting down?
i dont know what to do since i already tried reinstalling Python.

Warning: Python not found, there is likely an issue with the library folder
No explicit msvc version requested, autodetecting version.


** Visual Studio 2022 Developer Command Prompt v17.4.2
** Copyright (c) 2022 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: ‘x64’
Compiler Detection successful, detected VS2022

The required external libraries in “C:\blender-goo\blender…\lib\win64_vc15” are missing

Would you like to download them? (y/n)

what is the output of make update verbose ?

The output of make update verbose was

Warning: Python not found, there is likely an issue with the library folder
svn    : "C:\Program Files\SlikSvn\bin\svn.exe"
cmake  : "C:\Program Files\CMake\bin\cmake.exe"
ctest  : "C:\Program Files\CMake\bin\ctest.exe"
git    : "C:\Program Files\Git\cmd\git.exe"
python : """"
No explicit msvc version requested, autodetecting version.
Detecting msvc 2019
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest  -version [16.0,16.99) -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
VS_Installdir=""

Visual Studio is detected but no suitable installation was found.

Check the "Desktop development with C++" workload has been installed.

If you are attempting to use either Visual Studio Preview version or the Visual C++ Build tools, Please see 'make help' on how to opt in to those toolsets.

Detecting msvc 2022
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest  -version [17.0,17.99) -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
VS_Installdir="C:\Program Files\Microsoft Visual Studio\2022\Community"
calling "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.4.2
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Testing for MSBuild
Visual Studio 2022 msbuild found
Testing for the C/C++ Compiler
Visual Studio 2022 C/C++ Compiler found
Visual Studio 2022 is detected successfully
Compiler Detection successful, detected VS2022
Library Directory = ""C:\blender-goo\blender\..\lib\win64_vc15""

The required external libraries in "C:\blender-goo\blender\..\lib\win64_vc15" are missing

Would you like to download them? (y/n)

the complete log, including with what happened after you pressed y

I cant post the full log since its to long
This is the beginning
Warning: Python not found, there is likely an issue with the library folder
svn : “C:\Program Files\SlikSvn\bin\svn.exe”
cmake : “C:\Program Files\CMake\bin\cmake.exe”
ctest : “C:\Program Files\CMake\bin\ctest.exe”
git : “C:\Program Files\Git\cmd\git.exe”
python : “”""
No explicit msvc version requested, autodetecting version.
Detecting msvc 2019
“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -version [16.0,16.99) -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
VS_Installdir=""

Visual Studio is detected but no suitable installation was found.

Check the “Desktop development with C++” workload has been installed.

If you are attempting to use either Visual Studio Preview version or the Visual C++ Build tools, Please see ‘make help’ on how to opt in to those toolsets.

Detecting msvc 2022
“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -version [17.0,17.99) -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
VS_Installdir=“C:\Program Files\Microsoft Visual Studio\2022\Community”
calling “C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat” x64


** Visual Studio 2022 Developer Command Prompt v17.4.2
** Copyright (c) 2022 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: ‘x64’
Testing for MSBuild
Visual Studio 2022 msbuild found
Testing for the C/C++ Compiler
Visual Studio 2022 C/C++ Compiler found
Visual Studio 2022 is detected successfully
Compiler Detection successful, detected VS2022
Library Directory = "“C:\Blender-goo\blender…\lib\win64_vc15"”

The required external libraries in “C:\Blender-goo\blender…\lib\win64_vc15” are missing

Would you like to download them? (y/n)
Downloading win64_vc15 libraries, please wait.

A C:\Blender-goo\lib\win64_vc15\opencolorio
A C:\Blender-goo\lib\win64_vc15\opencolorio\lib
A C:\Blender-goo\lib\win64_vc15\opencolorio\lib\cmake
A C:\Blender-goo\lib\win64_vc15\opencolorio\lib\cmake\OpenColorIO
A C:\Blender-goo\lib\win64_vc15\opencolorio\include
A C:\Blender-goo\lib\win64_vc15\opencolorio\include\OpenColorIO
A C:\Blender-goo\lib\win64_vc15\openpgl

And this is the end
A C:\Blender-goo\lib\win64_vc15\vulkan\bin\vulkan-1.dll
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vk_video\vulkan_video_codec_h265std.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vk_layer.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan.hpp
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_directfb.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_ggp.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_metal.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_vi.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_xlib.h
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\conventions.py
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\spec_tools\util.py
A C:\Blender-goo\lib\win64_vc15\wintab\include\pktdef.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_enums.hpp
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_handles.hpp
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_funcs.hpp
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_macos.h
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\vk.xml
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_structs.hpp
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_xcb.h
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\cgenerator.py
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\reg.py
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\vkconventions.py
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_raii.hpp
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_wayland.h
A C:\Blender-goo\lib\win64_vc15\vulkan\include\vulkan\vulkan_xlib_xrandr.h
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\generator.py
A C:\Blender-goo\lib\win64_vc15\vulkan\share\vulkan\registry\validusage.json
A C:\Blender-goo\lib\win64_vc15\wintab\include\wintab.h
U C:\Blender-goo\lib\win64_vc15
Ausgecheckt, Revision 63112.
Aktualisiere ».«:
Revision 63112.
python not found, required for this operation

looks like it successfully checked out the latest libs, you should be ok, what’s the output of make showhash when you run it in the source folder?

The Command gives me this

C:\Blender-goo\blender>make showhash
Branch_hash=9719fd6964883210b8c13a48fe0571330a5c63e8
Locale_hash=9719fd6964883210b8c13a48fe0571330a5c63e8
Addons_Hash=9719fd6964883210b8c13a48fe0571330a5c63e8

You have the latest libs, you have the latest code, all things point to you’re ok? if make update still fails, try make svnfix

I still get an error like this

C:\Blender-goo\blender\extern\quadriflow\src\optimizer.cpp(1420,1): fatal error C1033: Programmdatabase “C:\Blender-goo\build_windows_x64_vc17_Release\lib\Release\extern_quadriflow.pdb” cannot be opened [C:\Blender-goo\build_windows_x64_vc17_Release\extern\quadriflow\extern_quadriflow.vcxproj]

Error during install phase

hdd full?

I changed the HDD now it works thank you very much

I still have one question if i want to delete it the build can i just delete the folders?

Yes, just delete your build_windows_xxxxx folders.