I am building a fresh release build of slicer 4.7 (commit 42630e641fde4bb8f6e0903cf15ad3ac9cd00b78) using VS2013, Windows x64, QT 4.8.7, and get the following error. This error also seems to cause SITK to fail. I’ve tried a few different solutions but none seem to work - the problem seems to be with these 2 lines of code in FindPythonLibs.cmake. Everything else builds well. I would greatly appreciate some assistance.
Many of us rebuild Slicer successfully every day using VS2013, Windows x64, Qt-4.8.7. Please use latest master version (Slicer 4.9) and follow build instructions closely.
Build in a shorter build path: Source directory: C:\S4. Build directory: C:\S4R (or C:\S4D).
I tried using the master version and following all the instructions (I have built slicer several times in the past) but I still get the same errors. I have begun implementing this unofficial solution outlined here:
I believe the problem has to do with multiple Python Libraries, given that implementing this solution in several cmake files does seem to push the build further along (CTK now builds, but SITK does not, however I will implement this solution in some of the cmake files related to SITK that throw this same error). I was hoping this would provide insight to come up with a better fix.
If you are customizing the Slicer build then you will need to set that variable yourself…
Otherwise, it is defined in Applications/SlicerApp/CMakeLists.txt for standard builds.