First time building in order to obtain the Visual Studio .SLN file


#1

Hi

Need some help, first time using git to download all the source code.
I am not trying to execute “make full nobuild”
I am trying to run this command from C:\blender-git\blender\ using an elevated command promt window (administrator)

But I am running into this problem on Windows 10. what can i do?

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.CppCommon.targets(133,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied [C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj]
Done Building Project "C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj" (default target) (1) ->
(PostBuildEvent target) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.CppCommon.targets(133,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied [C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj]

    0 Warning(s)
    1 Error(s)

#2

I’m unsure what you are trying to execute (you mention what you are not doing, but leave out what you are) but from the looks of it it seems like something is preventing cmd.exe from running, could be a local policy restriction or perhaps an over zealous anti virus product.


#3

Thank you for replying.
I am following these steps:

https://wiki.blender.org/wiki/Building_Blender/Windows

I installed the pre-requisites listed, and managed to run all these commands successfully:
Download the Blender source code:

cd C:\blender-git
git clone git://git.blender.org/blender.git
cd blender
git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master

HOWEVER I receive an error when i try runnig the “make full nobuild” command…


#4

try make full nobuild verbose see if that yields any additional information.


#5

C:\blender-git\blender>make full nobuild verbose
svn : “C:\Program Files\SlikSvn\bin\svn.exe”
cmake : “C:\blender-git\cmake\bin\cmake.exe”
git : “C:\Program Files\Git\cmd\git.exe”
No explicit msvc version requested, autodetecting version.
Detecting msvc 2017
“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64`
‘“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64’ is not recognized as an internal or external command,
operable program or batch file.
Visual Studio is detected but the “Desktop development with C++” workload has not been instlled
Detecting msvc 2015
Visual Studio 2015 on Win64 detected at “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC”
Visual Studio 2015 msbuild found
Visual Studio 2015 C/C++ Compiler found
Visual Studio 2015 Detected successfully
Compiler Detection successful, detected VS2015
Building blender with VS2015 for x64 in C:\blender-git\blender…\build_windows_Full_x64_vc14_Release
Library Directory = ““C:\blender-git\blender…\lib\win64_vc14"”
“C:\blender-git\cmake\bin\cmake.exe -C"C:\blender-git\blender\build_files\cmake\config\blender_full.cmake” -G “Visual Studio 14 2015 Win64” -HC:\blender-git\blender\ -BC:\blender-git\blender…\build_windows_Full_x64_vc14_Release”
loading initial cache file C:\blender-git\blender\build_files\cmake\config\blender_full.cmake
Re-run cmake no build system arguments
– Selecting Windows SDK version to target Windows 10.0.17134.
CMake Error at CMakeLists.txt:114 (project):
Failed to run MSBuild command:

C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe

to get the value of VCTargetsPath:

Microsoft (R) Build Engine version 14.0.23107.0
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2019/01/24 11:13:01 PM.
Project "C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj" on node 1 (default targets).
InitializeBuildStatus:
  Touching "x64\Debug\VCTargetsPath.tlog\unsuccessfulbuild".
PostBuildEvent:
  echo VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\
  :VCEnd
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.CppCommon.targets(133,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied [C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj]
Done Building Project "C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj" (default target) (1) ->
(PostBuildEvent target) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.CppCommon.targets(133,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied [C:\blender-git\build_windows_Full_x64_vc14_Release\CMakeFiles\3.13.3\VCTargetsPath.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.42

Exit code: 1

– Configuring incomplete, errors occurred!
See also “C:/blender-git/build_windows_Full_x64_vc14_Release/CMakeFiles/CMakeOutput.log”.

C:\blender-git\blender>


#6

Visual Studio is detected but the “Desktop development with C++” workload has not been instlled

that’s probably the key error in there, you did not install the C++ compilers when you installed visual studio.


#7

Thank you, I installed all that this afternoon. I will try and send a screenshot tomorrow of what I installed, perhaps there is a sub-component i am missing …


#8

Here is what I have installed currently:

installed1


#9

that looks fine, can you see if C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe exists?


#10

Yes, it seems to be present:install2


#11

what is the output of

"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64

?


#12

Microsoft Windows [Version 10.0.17134.471]
© 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Visual Studio Locator version 2.5.2+gebb9f26a3d [query version 1.18.21.37008]
Copyright © Microsoft Corporation. All rights reserved.

instanceId: c8a7fc0b
installDate: 2018/12/11 12:13:03 PM
installationName: VisualStudio/15.9.4+28307.222
installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional
installationVersion: 15.9.28307.222
productId: Microsoft.VisualStudio.Product.Professional
productPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
isPrerelease: 0
displayName: Visual Studio Professional 2017
description: Professional developer tools and services for small teams
channelId: VisualStudio.15.Release
channelPath: C:\Users\ian\AppData\Local\Microsoft\VisualStudio\Packages_Channels\4CB340F5\install_catalog.json
channelUri: https://aka.ms/vs/15/release/channel
enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service
installChannelUri: \172.26.100.135\software_DEV\VS2017\ChannelManifest.json
layoutPath: \172.26.100.135\software_DEV\VS2017
releaseNotes: https://go.microsoft.com/fwlink/?LinkId=660692#15.9.4
thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=660708
updateDate: 2018-12-15T10:42:58.0080551Z
catalog_buildBranch: d15.9
catalog_buildVersion: 15.9.28307.222
catalog_id: VisualStudio/15.9.4+28307.222
catalog_localBuild: build-lab
catalog_manifestName: VisualStudio
catalog_manifestType: installer
catalog_productDisplayVersion: 15.9.4
catalog_productLine: Dev15
catalog_productLineVersion: 2017
catalog_productMilestone: RTW
catalog_productMilestoneIsPreRelease: False
catalog_productName: Visual Studio
catalog_productPatchVersion: 4
catalog_productPreReleaseMilestoneSuffix: 1.0
catalog_productRelease: RTW
catalog_productSemanticVersion: 15.9.4+28307.222
catalog_requiredEngineVersion: 1.18.1042.9589
properties_campaignId:
properties_channelManifestId: VisualStudio.15.Release/15.9.4+28307.222
properties_nickname:
properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe

C:\WINDOWS\system32>


#13

yeah i got nothing, i saw a stray quote in the batch file, shouldn’t case issues, but it’s worth a try.

pull and see if things are better now


#14

which git command should i call again?
cd C:\blender-git
git clone git://git.blender.org/blender.git
cd blender
git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master

it is now 00:29 AM here, I am going to sleep and will try again tomorrow, thank you for taking a look thus far!


#15
git pull
make full 2017 x64 nobuild

#16

Hi, I tried that but I am back at the same issue it seems:

C:>cd blender-git

C:\blender-git>cd blender

C:\blender-git\blender>git pull
remote: Enumerating objects: 328, done.
remote: Counting objects: 100% (326/326), done.
remote: Compressing objects: 100% (193/193), done.
remote: Total 193 (delta 153), reused 0 (delta 0)
Receiving objects: 100% (193/193), 48.40 KiB | 328.00 KiB/s, done.
Resolving deltas: 100% (153/153), completed with 85 local objects.
From git://git.blender.org/blender
6d8394d38b1…6cc5c28d15f master -> origin/master
6260b3c15e5…4b8b7c821d4 blender2.7 -> origin/blender2.7
Updating 6d8394d38b1…6cc5c28d15f
Fast-forward
build_files/windows/detect_msvc2017.cmd | 2 ±
intern/ghost/CMakeLists.txt | 14 ±
release/scripts/modules/bpy/path.py | 5 ±
release/scripts/modules/rna_keymap_ui.py | 2 ±
release/scripts/startup/bl_ui/space_topbar.py | 2 ±
source/blender/CMakeLists.txt | 2 ±
source/blender/alembic/CMakeLists.txt | 4 ±
source/blender/avi/CMakeLists.txt | 6 ±
source/blender/blenkernel/CMakeLists.txt | 14 ±
source/blender/bmesh/CMakeLists.txt | 8 ±
source/blender/collada/CMakeLists.txt | 24 ±
source/blender/compositor/CMakeLists.txt | 442 +++++++++±----------
source/blender/draw/CMakeLists.txt | 20 ±
source/blender/draw/intern/draw_builtin_shader.c | 13 ±
source/blender/draw/modes/object_mode.c | 6 ±
…/shaders/drw_shader_3D_smooth_color_vert.glsl | 17 -
…/draw/modes/shaders/drw_shader_3D_vert.glsl | 13 -
source/blender/editors/armature/CMakeLists.txt | 2 ±
source/blender/editors/gpencil/CMakeLists.txt | 10 ±
source/blender/editors/interface/view2d.c | 2 ±
source/blender/editors/mesh/editmesh_tools.c | 6 ±
source/blender/editors/object/CMakeLists.txt | 8 ±
source/blender/editors/sculpt_paint/CMakeLists.txt | 2 ±
source/blender/editors/space_clip/CMakeLists.txt | 2 ±
source/blender/editors/space_info/CMakeLists.txt | 6 ±
source/blender/editors/space_node/CMakeLists.txt | 2 ±
source/blender/editors/space_view3d/CMakeLists.txt | 8 ±
source/blender/freestyle/CMakeLists.txt | 4 ±
source/blender/gpencil_modifiers/CMakeLists.txt | 18 ±
…/shaders/gpu_shader_3D_smooth_color_vert.glsl | 8 +
source/blender/gpu/shaders/gpu_shader_3D_vert.glsl | 8 +
source/blender/imbuf/CMakeLists.txt | 2 ±
source/blender/makesdna/DNA_scene_types.h | 2 ±
source/blender/makesrna/intern/CMakeLists.txt | 2 ±
source/blender/makesrna/intern/rna_scene.c | 2 ±
source/blender/modifiers/CMakeLists.txt | 2 ±
source/blender/nodes/CMakeLists.txt | 110 +±–
source/blender/physics/CMakeLists.txt | 2 ±
source/blender/python/intern/CMakeLists.txt | 8 ±
source/blender/render/CMakeLists.txt | 4 ±
source/blender/shader_fx/CMakeLists.txt | 2 ±
source/blender/windowmanager/WM_api.h | 4 ±
…/blender/windowmanager/intern/wm_event_system.c | 64 ±-
43 files changed, 415 insertions(+), 469 deletions(-)
delete mode 100644 source/blender/draw/modes/shaders/drw_shader_3D_smooth_color_vert.glsl
delete mode 100644 source/blender/draw/modes/shaders/drw_shader_3D_vert.glsl

C:\blender-git\blender>make full 2017 x64 nobuild
‘“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64’ is not recognized as an internal or external command,
operable program or batch file.
Visual Studio 2017 not found (try with the ‘verbose’ switch for more information)

C:\blender-git\blender>make full 2017 x64 nobuild -verbose
Command “-verbose” unknown, aborting

C:\blender-git\blender>make full 2017 x64 nobuild verbose
svn : “C:\Program Files\SlikSvn\bin\svn.exe”
cmake : “C:\blender-git\cmake\bin\cmake.exe”
git : “C:\Program Files\Git\cmd\git.exe”
Detecting msvc 2017
“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
‘“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64’ is not recognized as an internal or external command,
operable program or batch file.
Visual Studio is detected but the “Desktop development with C++” workload has not been instlled
Visual Studio 2017 not found (try with the ‘verbose’ switch for more information)

C:\blender-git\blender>


#17

I re-installed everything and now faced with this error
C:\blender-git\blender>make full 2017 x64 nobuild verbose
svn : “C:\Program Files\SlikSvn\bin\svn.exe”
cmake : “C:\blender-git\cmake\bin\cmake.exe”
git : “C:\Program Files\Git\cmd\git.exe”
Detecting msvc 2017
“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
‘“C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe” -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64’ is not recognized as an internal or external command,
operable program or batch file.
Visual Studio is detected but the “Desktop development with C++” workload has not been instlled
Visual Studio 2017 not found (try with the ‘verbose’ switch for more information)

C:\blender-git\blender>


#18

Hi, I have recently been ‘blessed’ with COMODO which I believe to be part of the problem.

However now I have a new issue - MsBuild tools - I have 140 and not 141, where can I get my hands on 141 - i tried the Visual Studio Installer but I do not see that version


#19

Have you tried opening Visual Studio first , maybe it needs to configure something automatically.

Make sure to delete the blender folders and try again from complete scratch add if that does not work uninstall everything and try VS 2017 community edition.


#20

Hi
Thank you for the advice, I have tried the first step by deleting the blender-git folder etc. then re-retrieving everything via the git command line arguments.

This time I got further by disabling COMODO antivirus and then the make full nobuild worked!

However the Visual Studio solution did not want to build the INSTALL project due to hundreds of errors.

I can unfortunately not install the communicate edition since I need VS 2017 professional for other projects.

I have decided to abandon any further attempts to build Blender and will leave it to the experts :slight_smile: I have opened and built many other services and asp.net / windows apps in the past without these many errors.