Machine: Windows 10
Compiler: “Visual Studio 14 2015”
Hi, I am having issues attempting to build the latest stable version of Slicer (Slicer 4.10.1). I have attempted git cloning, configuring, generating, and building 3 times and I get these same errors, I was wondering if anyone has encountered any before and how to solve them?
You only showed the superbuild result, which does not contain information about why the particular subproject failed to build. Open the .sln file of the first failed subproject and build it to see the actual errors.
Qt moc (meta object compiler) fails. Which Qt version do you use? Where is it installed? Do you have a “C:\ProgramFiles” folder? Can you find ProgramFiles text any of the *.txt, *.cmake, *.in files in the build tree?
I installed Qt 5.10.0 x64 and its installed in a folder called “C:\ProgramFiles(x86)”. I do not have a “C:\ProgramFiles” folder.The only other ones I have are “C:\Program Files” and “C\Program Files (x86)”. I will try reinstalling Qt if anything perhaps went wrong with my installation.
I think you refer to the build configuration within Visual Studio. It is not enough, you need to make sure the the right configuration is used for CMake. For example
cmake -G "Visual Studio 14 2015 Win64" -DQt5_DIR=C:/Qt/5.10.1/msvc2015_64/lib/cmake/Qt5 c:/d/Slicer
The moc problem might be related, so please do a completely clean build with fresh CMake configuration and generation, and let us know.
After I rebuilt it (keeping in mind that x64 is chosen for my configuration and redownloading qt) I was able to successfully build slicer although 1 subproject failed being "module machine type “x86” conflicted with target machine type “x64” for the Simple-ITK build.
I think the problem was that I previously downloaded a 5.10.0 qt mirror because the qt installer was always failing for me, but I attempted to redownload qt yesterday using the same installer, and it worked just fine.