I would like to build Slicer on Windows 10. To do so, I’m using Microsoft Visual Studio 2013 and as a prerequisite I built Qt 5.9.1 (the latest).
Then I use cmake to build Slicer, as option I set QT_QMAKE_EXECUTABLE to the path to qmake and I change Slicer_REQUIRED_QT_VERSION to 5.9.1
I got the following error: “Qt 5.9.1 was not found on your system. You probably need to set the QT_QMAKE_EXECUTABLE variable”. I’ve already set this variable to the right path to qmake …
Julien is right that only the versions of Qt and VisualStudio described on the wiki can be expected to work.
There is experimental work to compile with newer versions but there are still several issues to resolve as described at the link below. Any help with the port would be very welcome!
I think this downloadable Qt package doesn’t include OpenSSL, so a couple of things will be broken. For example, download of any data from https sites will not work, therefore no sample data can be downloaded, extension manager and some Python packages will not work, etc.
Jc’s one-liner Qt build script works very well, it doesn’t require any user interaction, but it certainly takes a couple of hours of your computer to build.
I and other lab members used the script on several computers without problems. Maybe you haven’t executed the script with sufficient privileges or copy-pasted an incomplete command line. Next time, if you find any errors, report the used command line and displayed error messages immediately.