Slicer Build error:MSB8066 in Win10

Operating system: Win 10
Slicer version: 4.10
Expected behavior:Build slicer successfully
Actual behavior:Build error occured

the error is:
50>D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(240,5): error MSB8066: “D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-mkdir.rule;D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-download.rule;D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-update.rule;D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-patch.rule;D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-configure.rule;D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-build.rule;D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-forceconfigure.rule;D:\S4R\a1\CMakeFiles\d6c65a9bb95612b23b9f7dfd2809760b\Slicer-install.rule;D:\S4R\a1\CMakeFiles\81bb6dc9211ca64d8deb9e385f10b1b4\Slicer-complete.rule;D:\S4R\a1\CMakeFiles\7a1ce418cc5f93f32cda57dd5b58d729\Slicer.rule”的自定义生成已退出,代码为 1。
50>已完成生成项目“Slicer.vcxproj”的操作 - 失败。
51>------ 已跳过全部重新生成: 项目: ALL_BUILD, 配置: Debug x64 ------
51>没有为此解决方案配置选中要生成的项目
========== 全部重新生成: 成功 47 个,失败 1 个,跳过 3 个 ==========
the file is:
CppCommon.targets

please help me ,I have no solution for it. thanks!

Can you build latest Slicer master version using these build instructions?

Hi gylucy
I got MSB8066 error too. Did you solve this problem?

HI Lassoan
When I build slicer follwoing above guide, I get this MSB8066 error too. May you help to check what is wrong?
The log file could be found with following link

thanks

Which Slicer version are you trying to build?
What is your CPU model?

What build outputs do you get if you start the build again?

Slicer:4.13.0 (debug)
CPU: Xeon Gold 6128
The 2nd outputs are:
47>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for ‘C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-configure.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-build.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-forceconfigure.rule;C:\D\S4R\CMakeFiles\26b24c13142eddf123c97e3494499225\Slicer-install.rule;C:\D\S4R\CMakeFiles\d0fbb327fb5d8976f542b004b1325aa2\Slicer-complete.rule;C:\D\S4R\CMakeFiles\dbe9d635f197b17f63b9c895eaab2164\Slicer.rule’ exited with code 1.
The whole outputs are uploaded to github too. FYI

thanks

It seems that the error is caused by some network connectivity issues:

47>CMake Error at Base/QTCore/Testing/Cxx/CMakeLists.txt:23 (file):
47>  file DOWNLOAD HASH mismatch
47>
47>    for file: [C:/D/S4R/Slicer-build/Base/QTCore/Testing/Cxx/Resources/19354-linux-amd64-ScriptedLoadableExtensionTemplate-svn19354-2012-02-23.tar.gz]
47>      expected hash: [dd619c9bbd8f058f85c124d775fe5fec1883f05ce4c1025c0f245db1ec088b51]
47>        actual hash: [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]
47>             status: [35;"SSL connect error"]
47>
47>
47>
47>CMake Error at Base/QTCore/Testing/Cxx/CMakeLists.txt:23 (file):
47>  file DOWNLOAD HASH mismatch
47>
47>    for file: [C:/D/S4R/Slicer-build/Base/QTCore/Testing/Cxx/Resources/19615-macosx-amd64-CLIExtensionTemplate-svn19615-2012-03-18.tar.gz]
47>      expected hash: [57d76d876cb96bde01d30a16d42316941209c8b6c22ad311d623d918597141c0]
47>        actual hash: [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]
47>             status: [28;"Timeout was reached"]
47>
47>
47>
47>CMake Error at Base/QTCore/Testing/Cxx/CMakeLists.txt:23 (file):
47>  file DOWNLOAD HASH mismatch
47>
47>    for file: [C:/D/S4R/Slicer-build/Base/QTCore/Testing/Cxx/Resources/19615-macosx-amd64-LoadableExtensionTemplate-svn19615-2012-03-18.tar.gz]
47>      expected hash: [3ce4a2f0485c9f5db56fb48727421fbe9ccef213c345175e8defb573ce2113da]
47>        actual hash: [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]
47>             status: [28;"Timeout was reached"]

Maybe your workplace blocks download from github or you have some SSL errors (certificates issue, or using a CMake version that has no SSL support, etc.).

hi there, did you solve this problem? I have the same error.

Slicer downloads additional files for testing during the build process. Make sure the CMake can download files from https://github.com/Slicer/SlicerTestingData/releases/download/... during build (for example, from this URL).

Hi, I have same error too. Are there some specific soultions?

If you cannot access github then you may try to use a different internet connection or a VPN.

I tried but it still not work

I got the same error and I had use a VPN, but it still didn’t work, sadness :frowning_face:

I tried but it still not work,Are there some specific soultions?