# About compile errors

**URL:** <https://discourse.slicer.org/t/about-compile-errors/31532>\
**Category:** Development\
**Tags:** build\
**Created:** [September 4, 2023, 1:29am UTC](https://discourse.slicer.org/t/about-compile-errors/31532 "2023-09-04T01:29:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwangwangwang](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Post date:** [September 4, 2023, 1:29am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/1 "2023-09-04T01:29:28Z")

</div>

Hello!  
When I compiled the 3DSLICER source code, the following error occurred. How Do I fix it?

1. Failed to clone repository:  
‘[GitHub - KitwareMedical/ITKMorphologicalContourInterpolation: An implementation of morphological contour interpolation](https://github.com/KitwareMedical/ITKMorphologicalContourInterpolation.git)’

2. By not providing “FindITK.cmake” in CMAKE\_MODULE\_PATH this project has  
asked CMake to find a package configuration file provided by “ITK”, but  
CMake did not find one.  
Could not find a package configuration file provided by “ITK” with any of  
the following names:  
ITKConfig.cmake  
itk-config.cmake

3. By not providing “FindCTK.cmake” in CMAKE\_MODULE\_PATH this project has  
asked CMake to find a package configuration file provided by “CTK”, but  
CMake did not find one.  
Could not find a package configuration file provided by “CTK” with any of  
the following names:  
CTKConfig.cmake  
ctk-config.cmake

 ![图片1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/9/e95d8a0bf90af09844c3696add3b9cd36719eca0.png)

---

<div class="post-metadata">

**Author:** ![yulaomao](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yulaomao/32/78556_2.png) [@yulaomao](https://discourse.slicer.org/u/yulaomao)\
**Post date:** [September 4, 2023, 3:35am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/2 "2023-09-04T03:35:04Z")

</div>

> [@iwangwangwang](#):
>
> Failed to clone repository:  
> ‘[GitHub - KitwareMedical/ITKMorphologicalContourInterpolation: An implementation of morphological contour interpolation](https://github.com/KitwareMedical/ITKMorphologicalContourInterpolation.git)’

Are you compiling in China? This is a network issue. If you are in China, you will need to configure a VPN.

---

<div class="post-metadata">

**Author:** ![yulaomao](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yulaomao/32/78556_2.png) [@yulaomao](https://discourse.slicer.org/u/yulaomao)\
**Post date:** [September 4, 2023, 3:36am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/3 "2023-09-04T03:36:03Z")

</div>

The other issues are likely caused by the previous problem as well.

---

<div class="post-metadata">

**Author:** ![iwangwangwang](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Post date:** [September 4, 2023, 3:56am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/4 "2023-09-04T03:56:35Z")

</div>

Yes, I have configured a VPN， but I found that some sub projects must require VPN, while others cannot use VPN, I cannot compile successfully at once, I am seeking a solution。

---

<div class="post-metadata">

**Author:** ![yulaomao](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yulaomao/32/78556_2.png) [@yulaomao](https://discourse.slicer.org/u/yulaomao)\
**Post date:** [September 4, 2023, 3:59am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/5 "2023-09-04T03:59:07Z")

</div>

Simply enabling a VPN cannot solve the problem. You need to configure it separately for Git. When installing certain libraries in Python, you may need to turn off the VPN.

---

<div class="post-metadata">

**Author:** ![iwangwangwang](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Post date:** [September 4, 2023, 4:04am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/7 "2023-09-04T04:04:37Z")

</div>

What you said is correct, so do I need to compile each sub project separately? or are there any other simple and feasible configuration methods?

---

<div class="post-metadata">

**Author:** ![yulaomao](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yulaomao/32/78556_2.png) [@yulaomao](https://discourse.slicer.org/u/yulaomao)\
**Post date:** [September 4, 2023, 5:44am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/8 "2023-09-04T05:44:11Z")

</div>

You can search on Baidu for how to configure VPN for Git. Once you have done that, most of the download issues should be resolved. If you encounter failures with Python’s pip, it will typically display relevant error messages. When you see an error, try closing the VPN and retrying the process again.

---

<div class="post-metadata">

**Author:** ![iwangwangwang](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@iwangwangwang](https://discourse.slicer.org/u/iwangwangwang)\
**Post date:** [September 4, 2023, 6:32am UTC](https://discourse.slicer.org/t/about-compile-errors/31532/9 "2023-09-04T06:32:21Z")

</div>

I will try, thank you
