# How Can I fix this bug SimpleITK (MSB8066)

**URL:** <https://discourse.slicer.org/t/how-can-i-fix-this-bug-simpleitk-msb8066/19850>\
**Category:** Development\
**Tags:** build\
**Created:** [September 25, 2021, 1:23pm UTC](https://discourse.slicer.org/t/how-can-i-fix-this-bug-simpleitk-msb8066/19850 "2021-09-25T13:23:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kookoo9999](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kookoo9999/32/12394_2.png) [@kookoo9999](https://discourse.slicer.org/u/kookoo9999)\
**Post date:** [September 25, 2021, 1:23pm UTC](https://discourse.slicer.org/t/how-can-i-fix-this-bug-simpleitk-msb8066/19850/1 "2021-09-25T13:23:56Z")

</div>

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](https://github.com/Slicer/Slicer/issues/5498) 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 .

```auto
 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.CppCo | | |

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 26, 2021, 4:03am UTC](https://discourse.slicer.org/t/how-can-i-fix-this-bug-simpleitk-msb8066/19850/2 "2021-09-26T04:03:09Z")

</div>

This build error and solution (workaround) is discussed [here](https://github.com/Slicer/Slicer/issues/5498).
