Dear everybody:
I am building 3D Slicer 4.11.0 on windows10 for a whole week. But still I met lots of problems and failed. My building process is as follows:
- System: win10x64
- CMake: 3.16.5, self-build with openssl ( both self-built and downloaded from official website have been tried.)
- git. version 2.25.1. windows.1
- svn. 1.13.0 (r1867053)
- qt: version 5.10.1 from official website
- vs2015x64.
- My source directotry is D:\S\S4 and my binary directory is D:\S\SD
When 3D Slicer is built, Qt5_DIR is correctly selected. The Option Slicer_USE_PYTHONQT_WITH_OPENSSL is selected to ON and OFF both. Neither of them works for me.
The build error is as follows:
-
Slicer_USE_PYTHONQT_WITH_OPENSSL is set to ON
-
Slicer_USE_PYTHONQT_WITH_OPENSSL is set to OFF
It seems the errors are related to OpenSSL and no matter whether I switch the option Slicer_USE_PYTHONQT_WITH_OPENSSL ON or OFF, the building errors are still there. I can’t solve it. Could anyone help ?
The addition error information is as follows:
- If I built the python-setuptools project separately, the building error is as follows:
1>------ 已启动生成: 项目: python-setuptools, 配置: Debug x64 ------
1> Creating directories for 'python-setuptools'
1> Building Custom Rule D:/S/S4/CMakeLists.txt
1> No download step for 'python-setuptools'
1> No update step for 'python-setuptools'
1> No patch step for 'python-setuptools'
1> Generate version-python-setuptools.txt and license-python-setuptools.txt
1> fatal: not a git repository (or any of the parent directories): .git
1> CMake Warning (dev) at D:/S/SD/CMakeFiles/python-setuptools-generate-project-description.cmake:68 (message):
1> python-setuptools: Could not find a license file
1> This warning is for project developers. Use -Wno-dev to suppress it.
1>
1> No configure step for 'python-setuptools'
1> No build step for 'python-setuptools'
1> Performing install step for 'python-setuptools'
1> CMake Error at D:/S/SD/python-setuptools-prefix/src/python-setuptools-stamp/python-setuptools-install-Debug.cmake:49 (message):
1> Command failed: 1
1>
1> 'D:/S/SD/python-install/bin/SlicerPython.exe' '-m' 'pip' 'install' '--require-hashes' '-r' 'D:/S/SD/python-setuptools-requirements.txt'
1>
1> See also
1>
1> D:/S/SD/python-setuptools-prefix/src/python-setuptools-stamp/python-setuptools-install-*.log
1>
1>
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe”已退出,代码为 1。
If I looked into the error log, the file shows:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools==41.6.0 (from -r D:/S/SD/python-setuptools-requirements.txt (line 1)) (from versions: )
No matching distribution found for setuptools==41.6.0 (from -r D:/S/SD/python-setuptools-requirements.txt (line 1))
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
I serously doubt it is related to OpenSSL option. However, even if I turn the option OFF, still the error jumps out.
And I have some additional doubts here.
-
Why 3D Slicer need to build VTK, ITK, CTK from scratch all the time? The most inconvenient thing is that I have to redownload about 1GB source files from web each time I failed in building and retry. It costs a lot of time. I noticed that the building process of VTK, ITK, CTK and some other project is OK and cost lots of time.
-
Another trial I have done is to reserve the downloaded github files in the binary directory for the new building, however it still failed during the procedures.
Are there are methods to solve this problems?
Most important, how to successfuly build the Slicer on Windows. I have succeeded on Ubuntu system. It is a great software.
Thank you very much.
tangtang