About compile errors

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

  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

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

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

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。

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.

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?

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.

I will try, thank you