Failed build Slicer in Windows10 with Visual Studio 2017,Qt 5.10.1

This text message is after configuration and generate via CMake.

Setting C++ standard
Setting C++ standard - C++11
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
Could NOT find Subversion (missing: Subversion_SVN_EXECUTABLE)
Configuring Slicer organization domain [www.na-mic.org]
Configuring Slicer organization name [NA-MIC]
Configuring Slicer default home module [Welcome]
Configuring Slicer default favorite modules [Data, Volumes, Models, Transforms, Markups, SegmentEditor]
Configuring Slicer text of disclaimer at startup [Thank you for using %1!

This software is not intended for clinical use.]
Configuring Slicer requires admin account [OFF]
Configuring Slicer install root [$LOCALAPPDATA/NA-MIC]
Configuring Slicer release type [Experimental]
CMake Warning (dev) at CMake/SlicerMacroExtractRepositoryInfo.cmake:94 (message):
Skipping repository info extraction: directory [C:/D/S4] is not a GIT or
SVN checkout
Call Stack (most recent call first):
CMake/SlicerVersion.cmake:55 (SlicerMacroExtractRepositoryInfo)
CMakeLists.txt:193 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

Configuring Slicer version [4.13.0-0000-00-00]
Configuring Slicer revision [3037]
CMake Warning (dev) at CMake/SlicerMacroExtractRepositoryInfo.cmake:94 (message):
Skipping repository info extraction: directory [C:/D/S4] is not a GIT or
SVN checkout
Call Stack (most recent call first):
CMake/SlicerVersion.cmake:99 (SlicerMacroExtractRepositoryInfo)
CMakeLists.txt:193 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

Configuring VTK
Slicer_VTK_RENDERING_BACKEND is OpenGL2
Slicer_VTK_SMP_IMPLEMENTATION_TYPE is TBB
Slicer_VTK_VERSION_MAJOR is 9
Configuring Slicer with Qt 5.15.2 (using modules: Core, Widgets, Multimedia, Network, OpenGL, PrintSupport, UiTools, Xml, XmlPatterns, Svg, Sql, WebEngine, WebEngineWidgets, WebChannel, Script, LinguistTools, Test, )
Setting QT_PLUGINS_DIR: C:/Qt/5.15.2/msvc2019_64/plugins
Setting QT_BINARY_DIR: C:/Qt/5.15.2/msvc2019_64/bin
Setting ExternalData_OBJECT_STORES to ‘C:/D/S4R/ExternalData/Objects’
Configuring Slicer for [win-amd64]
Checking if CMake supports https
Checking if CMake supports https - ok
Remote - vtkAddon [OK]
Remote - jqPlot [OK]
Remote - MultiVolumeExplorer [OK]
Remote - MultiVolumeImporter [OK]
Remote - SimpleFilters [OK]
Remote - BRAINSTools [OK]
Remote - DataStore [OK]
Remote - CompareVolumes [OK]
Remote - LandmarkRegistration [OK]
Remote - SurfaceToolbox [OK]
SuperBuild - First pass
SuperBuild - TBB_INSTALL_DIR:C:/D/S4R/tbb-install
SuperBuild - First pass - done
SuperBuild - Slicer => Requires curl, CTKAppLauncherLib, teem, VTK, ITK, CTK, LibArchive, RapidJSON, SimpleITK, SlicerExecutionModel, qRestAPI, DCMTK, CTKAPPLAUNCHER, python, python-pythonqt-requirements, python-scipy, python-numpy, python-dicom-requirements, python-extension-manager-requirements, python-extension-manager-ssl-requirements, tbb[INCLUDED], JsonCpp,
SuperBuild - curl => Requires zlib, OpenSSL,
SuperBuild - zlib[OK]
SuperBuild - ZLIB_INCLUDE_DIR:C:/D/S4R/zlib-install/include
SuperBuild - ZLIB_LIBRARY:C:/D/S4R/zlib-install/lib/zlib.lib
SuperBuild - ZLIB_ROOT:C:/D/S4R/zlib-install
SuperBuild - OpenSSL[OK]
SuperBuild - LIB_EAY_DEBUG:C:/D/S4R/OpenSSL-install/Debug/lib/libcrypto.lib
SuperBuild - LIB_EAY_RELEASE:C:/D/S4R/OpenSSL-install/Release/lib/libcrypto.lib
SuperBuild - SSL_EAY_DEBUG:C:/D/S4R/OpenSSL-install/Debug/lib/libssl.lib
SuperBuild - SSL_EAY_RELEASE:C:/D/S4R/OpenSSL-install/Release/lib/libssl.lib
SuperBuild - OpenSSL 1.1.1g
SuperBuild - OPENSSL_LIBRARY_DIR:C:/D/S4R/OpenSSL-install/$(Configuration)/lib
SuperBuild - OPENSSL_EXPORT_LIBRARY_DIR:C:/D/S4R/OpenSSL-install/$(Configuration)/bin
SuperBuild - OPENSSL_INCLUDE_DIR:C:/D/S4R/OpenSSL-install/$(Configuration)/include
SuperBuild - OPENSSL_LIBRARIES:optimized;C:/D/S4R/OpenSSL-install/Release/lib/libssl.lib;debug;C:/D/S4R/OpenSSL-install/Debug/lib/libssl.lib;optimized;C:/D/S4R/OpenSSL-install/Release/lib/libcrypto.lib;debug;C:/D/S4R/OpenSSL-install/Debug/lib/libcrypto.lib
SuperBuild - curl[OK]
SuperBuild - CURL_INCLUDE_DIR:C:/D/S4R/curl-install/include
SuperBuild - CURL_LIBRARY:C:/D/S4R/curl-install/lib/libcurl.lib
SuperBuild - CTKAppLauncherLib[OK]
SuperBuild - teem => Requires zlib[INCLUDED], VTK,
SuperBuild - VTK => Requires zlib[INCLUDED], python, tbb[INCLUDED],
SuperBuild - python => Requires bzip2, CTKAPPLAUNCHER, LZMA, zlib[INCLUDED], sqlite, OpenSSL[INCLUDED],
SuperBuild - bzip2[OK]
SuperBuild - BZIP2_INCLUDE_DIR:C:/D/S4R/bzip2
SuperBuild - BZIP2_LIBRARIES:C:/D/S4R/bzip2-install/lib/libbz2.lib
SuperBuild - CTKAPPLAUNCHER => Requires CTKResEdit,
SuperBuild - CTKResEdit[OK]
SuperBuild - CTKAPPLAUNCHER[OK]
SuperBuild - LZMA[OK]
SuperBuild - sqlite[OK]
SuperBuild - python[OK]
SuperBuild - PYTHON_EXECUTABLE:C:/D/S4R/python-install/bin/PythonSlicer.exe
SuperBuild - PYTHON_INCLUDE_DIR:C:/D/S4R/python-install/include
SuperBuild - PYTHON_LIBRARY:C:/D/S4R/python-install/libs/python36.lib
SuperBuild - PYTHON_DEBUG_LIBRARY:C:/D/S4R/python-install/libs/python36.lib
SuperBuild - Python3_ROOT_DIR:C:/D/S4R/python-install
SuperBuild - Python3_INCLUDE_DIR:C:/D/S4R/python-install/include
SuperBuild - Python3_LIBRARY:C:/D/S4R/python-install/libs/python36.lib
SuperBuild - Python3_LIBRARY_DEBUG:C:/D/S4R/python-install/libs/python36.lib
SuperBuild - Python3_LIBRARY_RELEASE:C:/D/S4R/python-install/libs/python36.lib
SuperBuild - Python3_EXECUTABLE:C:/D/S4R/python-install/bin/PythonSlicer.exe
SuperBuild - VTK[OK]
SuperBuild - teem[OK]
SuperBuild - ITK => Requires zlib[INCLUDED], VTK[INCLUDED], DCMTK, Swig[INCLUDED], python[INCLUDED], tbb[INCLUDED],
SuperBuild - DCMTK => Requires zlib[INCLUDED],
SuperBuild - DCMTK[OK]
SuperBuild - ITK[OK]
SuperBuild - CTK => Requires VTK[INCLUDED], ITK[INCLUDED], python[INCLUDED], DCMTK[INCLUDED],
SuperBuild - CTK[OK]
SuperBuild - LibArchive => Requires zlib[INCLUDED], zlib[INCLUDED],
SuperBuild - LibArchive[OK]
SuperBuild - RapidJSON[OK]
SuperBuild - SimpleITK => Requires ITK[INCLUDED], Swig[INCLUDED], python[INCLUDED], python-setuptools,
SuperBuild - python-setuptools => Requires python[INCLUDED], python-ensurepip,
SuperBuild - python-ensurepip => Requires python[INCLUDED],
SuperBuild - python-ensurepip[OK]
SuperBuild - python-setuptools[OK]
SuperBuild - SimpleITK[OK]
SuperBuild - SlicerExecutionModel => Requires ITK[INCLUDED], tbb[INCLUDED], JsonCpp, ParameterSerializer,
SuperBuild - JsonCpp[OK]
SuperBuild - ParameterSerializer => Requires JsonCpp[INCLUDED], ITK[INCLUDED],
SuperBuild - ParameterSerializer[OK]
SuperBuild - SlicerExecutionModel[OK]
SuperBuild - qRestAPI[OK]
SuperBuild - python-pythonqt-requirements => Requires python[INCLUDED], python-ensurepip[INCLUDED], python-pip, python-setuptools[INCLUDED], python-wheel,
SuperBuild - python-pip => Requires python[INCLUDED], python-ensurepip[INCLUDED], python-setuptools[INCLUDED],
SuperBuild - python-pip[OK]
SuperBuild - python-wheel => Requires python[INCLUDED], python-pip[INCLUDED], python-setuptools[INCLUDED],
SuperBuild - python-wheel[OK]
SuperBuild - python-pythonqt-requirements[OK]
SuperBuild - python-scipy => Requires python[INCLUDED], python-ensurepip[INCLUDED], python-numpy, python-pip[INCLUDED], python-setuptools[INCLUDED], python-wheel[INCLUDED],
SuperBuild - python-numpy => Requires python[INCLUDED], python-pip[INCLUDED], python-setuptools[INCLUDED],
SuperBuild - python-numpy[OK]
SuperBuild - python-scipy[OK]
SuperBuild - python-dicom-requirements => Requires python[INCLUDED], python-numpy[INCLUDED], python-pip[INCLUDED], python-requests-requirements, python-setuptools[INCLUDED],
SuperBuild - python-requests-requirements => Requires python[INCLUDED], python-pip[INCLUDED], python-setuptools[INCLUDED],
SuperBuild - python-requests-requirements[OK]
SuperBuild - python-dicom-requirements[OK]
SuperBuild - python-extension-manager-requirements => Requires python[INCLUDED], python-pip[INCLUDED], python-setuptools[INCLUDED],
SuperBuild - python-extension-manager-requirements[OK]
SuperBuild - python-extension-manager-ssl-requirements => Requires python[INCLUDED], python-pip[INCLUDED], python-requests-requirements[INCLUDED], python-setuptools[INCLUDED],
SuperBuild - python-extension-manager-ssl-requirements[OK]
SuperBuild - Slicer[OK]
Configuring done
Generating done

I can’t build this list.
22> “LibArchive.vcxproj”
43> “ITK.vcxproj”
47> “CTK.vcxproj”
48> “SlicerExecutionModel.vcxproj”
49> “Slicer.vcxproj”

I just tried to build using CMD, but it failed…I think there were more errors than using CMake-GUI.

I fixed the error of LibArchive for delete line in C:\D\S4R\LibArchive\libarchive\archive_read_support_format_rar5.c line 74.

And now, I can’t fix this error (MSB8066 , when I build the SimpleITK)
I read here and I try to fix but I can’t understand add these and can’t find the External_SimpleITK.cmake.
Do you mean to add these before configure via CMake-GUI ??
I can find External_SImpleITKExamples.cmake in directory C:\D\S4R\SimpleITK\SuperBuild .

 if(Slicer_VTK_VERSION_MAJOR STREQUAL "9")
      list(APPEND EXTERNAL_PROJECT_OPTIONAL_CMAKE_CACHE_ARGS
        # Required by FindPython3 CMake module used by VTK
        -DPython3_ROOT_DIR:PATH=${Python3_ROOT_DIR}
        -DPython3_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIR}
        -DPython3_LIBRARY:FILEPATH=${Python3_LIBRARY}
        -DPython3_LIBRARY_DEBUG:FILEPATH=${Python3_LIBRARY_DEBUG}
        -DPython3_LIBRARY_RELEASE:FILEPATH=${Python3_LIBRARY_RELEASE}
        -DPython3_EXECUTABLE:FILEPATH=${Python3_EXECUTABLE}
        )
    endif()
심각도 코드 설명 프로젝트 파일 비표시 오류(Suppression) 상태
오류 MSB8066 'C:\D\S4R\CMakeFiles\b2bcbfa553be6b76f5311151bbb771b6\SimpleITK-configure.rule;C:\D\S4R\CMakeFiles\b2bcbfa553be6b76f5311151bbb771b6\SimpleITK-build.rule;C:\D\S4R\CMakeFiles\b2bcbfa553be6b76f5311151bbb771b6\SimpleITK-install.rule;C:\D\S4R\CMakeFiles\d0fbb327fb5d8976f542b004b1325aa2\SimpleITK-complete.rule;C:\D\S4R\CMakeFiles\dbe9d635f197b17f63b9c895eaab2164\SimpleITK.rule’에 대한 사용자 지정 빌드가 종료되었습니다(코드 1). SimpleITK C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 241

This build error and solution (workaround) is discussed here.

@lassoan Thanks for reply.
Do you mean to add these lines into S4\Super-build\External_SImpleITK.cmake and then configure via CMake-GUI and build again??
if(Slicer_VTK_VERSION_MAJOR STREQUAL “9”)
list(APPEND EXTERNAL_PROJECT_OPTIONAL_CMAKE_CACHE_ARGS
# Required by FindPython3 CMake module used by VTK
-DPython3_ROOT_DIR:PATH=${Python3_ROOT_DIR}
-DPython3_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIR}
-DPython3_LIBRARY:FILEPATH=${Python3_LIBRARY}
-DPython3_LIBRARY_DEBUG:FILEPATH=${Python3_LIBRARY_DEBUG}
-DPython3_LIBRARY_RELEASE:FILEPATH=${Python3_LIBRARY_RELEASE}
-DPython3_EXECUTABLE:FILEPATH=${Python3_EXECUTABLE}
)
endif()

Please keep the discussion of this error at one place, the issue tracker.

/fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"cmTC_1ecf8.dir\Debug\" /Fd"cmTC_1ecf8.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue /bigobj /bigobj “D:\D\SR\Slicer-build\CMakeFiles\CMakeTmp\src.cxx”
src.cxx
D:\D\SR\Slicer-build\CMakeFiles\CMakeTmp\src.cxx(1,1): error C2059: 语法错误:“/” [D:\D\SR\Slicer-build\CMakeFiles\CMakeTmp\cmTC_1ecf8.vcxproj]

Source file was:
/Od
Hello, I encountered the same problem. May I ask how you resolved it?