See build instructions here.
If I download all of 3DSLICER’s libraries locally, can I compile them on my computer without the network?
Slicer need to download dozens of additional libraries. You can download all the packages, github repositories, etc. manually and configure the build to use those. For example, it should be possible to replace each reference to a
github.com/... git repository by a local folder; set up pip to install packages from already downloaded files, etc.
You may also just build Slicer once to automatically download all dependencies, inspect them, and after that build again from those sources without network connection.
What is the reason for needing a build without network connection?
thank,Local compilation does not require downloading the corresponding library from the Internet, which improves the speed of compilation.
If I download all of Slicer’s dependent libraries, how do I configure it (or configure it via cmake) so that I can compile locally without connecting to the network?
Network access does not significantly affect the build time. The first build may be slightly slower if you have a very, very slow network, but typically you download a library in a few ten seconds, but then build may takes tens of minutes. Also, this only slows down the first build. During subsequent builds, there is just a quick check if something is changed in the remote repository.
Thank you very much for your reply.