Hi, I have build the 3d slicer following the instructions given in the document. I am getting the following error:
CUSTOMBUILD : error : Target (for copy_if_different command) “C:/D/D/Slicer-build/lib/Slicer-4.11/cli-modules/Debug” is not a directory. [C:\D\D\Slicer-build\Base\QTCLI\Testing\InstallPyCLITest4.vcxproj]
This is what I get when I launch the slicer.exe
qt.network.ssl: QSslSocket: cannot resolve SSL_set_alpn_protos
qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_alpn_select_cb
qt.network.ssl: QSslSocket: cannot resolve SSL_get0_alpn_selected
When loading module “DICOM” , the dependency “SubjectHierarchy” failed to be loaded.
When loading module “DICOM” , the dependency “SubjectHierarchy” failed to be loaded.
When loading module “DICOMPatcher” , the dependency “DICOM” failed to be loaded.
When loading module “MarkupsWidgetsSelfTest” , the dependency “Markups” failed to be loaded.
When loading module “MultiVolumeImporter” , the dependency “MultiVolumeExplorer” failed to be loaded.
When loading module “NeurosurgicalPlanningTutorialMarkupsSelfTest” , the dependency “Segmentations” failed to be loaded.
When loading module “PlotsSelfTest” , the dependency “Plots” failed to be loaded.
When loading module “SegmentEditor” , the dependency “Segmentations” failed to be loaded.
When loading module “SegmentStatistics” , the dependency “SubjectHierarchy” failed to be loaded.
When loading module “SubjectHierarchyCorePluginsSelfTest” , the dependency “SubjectHierarchy” failed to be loaded.
When loading module “SubjectHierarchyGenericSelfTest” , the dependency “SubjectHierarchy” failed to be loaded.
When loading module “TablesSelfTest” , the dependency “Tables” failed to be loaded.
SliceAnnotations: Disable features relying on vtkPVScalarBarActor
These are the modules enabled. Please see the snapshot:
There seems to be an error during your Slicer build. The build error you copied is probably not the first one but a consequence of previous errors. It would be important to identify the very first error occurred during build.
Do you mean that these files should be present when visual studio solution files are generated using cmake-gui? If not then it should get downloaded while building? What could be the issue? Following same steps, I am able to build in an another laptop. The only difference is that one got professional visual studio and other got enterprise(not working here). I have exactly followed the steps given in the documentation link.
I actually ran into this exact same issue just recently as part of some testing for a PR. I had a clean build building ITK 5.1rc01 and then it ultimately failed at SimpleITK, as I expected, so I cleaned out all SimpleITK build directories and files and rebuilt using a newer SimpleITK version and it succeeded but then I noticed it kept getting stuck at this error in the Slicer build project.
As a workaround I just manually created the “ c:/D/D/Slicer-build/lib/Slicer-4.11/cli-modules/$BUILD_TYPE” directory and then ran the build process again and it completed the Slicer project successfully.
I’m unsure if the build error was originally because my SimpleITK project had failed in a prior run or something to do with the parallel build process as I specify 12 threads to use. I didn’t look much further into it as manually creating the missing directory fixed my issue.
Partially cleaned out build trees and parallel builds are not guaranteed to work. The nightly dashboard shows that clean builds are successful on Windows and Mac (there is a build error on Linux due to a recent attempt to add sqlite3 to Python, but that should not affect Windows).
Visual Studio Edition should not matter.
What CMake version do you use?
Do you have any third-party antivirus software installed?
I will try this tonight my time and let you know. Thanks for your advice.
As a workaround I just manually created the “ c:/D/D/Slicer-build/lib/Slicer-4.11/cli-modules/$BUILD_TYPE” directory and then ran the build process again and it completed the Slicer project successfully.
Bugs are quite often introduced in new CMake releases. You might try an earlier version to see if that works (I’ve built Slicer from scratch successfully, using CMake 3.14.3).
@harajyoti_das Did you manually try creating the missing directory as I suggested? Did you do a regular build action of the Slicer project after this or did you do any cleaning actions? The error in your log indicates the directory isn’t present.
In parallel builds, build order projects can randomly change (it is only guaranteed that a project build starts after all dependencies are built). This seems to cause an error because a copy is attempted to be copied into a folder that does not exist yet.
Have you intentionally enabled parallel build?
Could you provide the content of your top-level CMakeCache.txt file?
I created the missing directory and built it but I got lot of linking errors after that. At present I don’t have that build log. Did you rebuild the solution after creating missing folder or just simply build it?