I use Cmake Gui to compile Slicer Source code download. The develop tools are:
3. CMake >3.15.1
I add Qt5_DIR variable pointing to Qt5 folder : D:\Qt\Qt5.13.1\5.13.1\msvc2015_64\lib\cmake\Qt5
select my compiler: Visual Studio 14 2015,
then the cmake eccor as the follow:
Slicer_VTK_RENDERING_BACKEND is OpenGL2
Slicer_VTK_SMP_IMPLEMENTATION_TYPE is TBB
Slicer_VTK_VERSION_MAJOR is 8
CMake Error at D:/Qt/Qt5.13.1/5.13.1/msvc2015_64/lib/cmake/Qt5UiTools/Qt5UiToolsConfig.cmake:74 (message):
Library not found: Qt5Cored
Call Stack (most recent call first):
Why did i meet the error, but i choose full installation for Qt.
It appears you are using Windows, so I would suggest that you follow the latest Windows build instructions if you are looking to build the
master Slicer branch. Notable differences include using VS2019 to build and using Qt 5.15 instead.
Thank James for your reply.
So different version VS tools will affect the building process.
Indeed，i build the Slicer with
branch，but if i download the v4.11， should i must use VS2019 and Qt5.15 for compile？
Today, i download the Qt 5.15 source code and VS 2019,
and i use VS2019 Native Tools command Prompt to do the following instructions:
1.cd to qtbase
2.run configure (
configure -prefix D:\Qt\qt-everywhere-build -release -opensource -mp -platform win32-msvc -c++std c++11 )
3.nmake && nmake install
Then i use Cmake GUI tool to compile Slicer code, but the cmake show me can not find
Can you enlight me the argument of Qt’s configure command?
I don’t personally build Qt from source. I follow the directions as I linked above which says
Qt5: Download Qt universal installer and install Qt 5.15 components: MSVC2019 64-bit, Qt Script, Qt WebEngine.
The gets the Qt binaries and I then build Slicer using the same configuration of VS2019 64bit.
I just find the highest version Qt binary file is 5.14.X， the 5.15.X just only source code need to compile by myself.
Have you downloaded the latest version of the Qt maintenance tool? Usually for the latest versions of Qt to show up to download, you have to have the latest maintenance tool. This could be achieved by redownloading the online installer. You may have to remove your current Qt install as well.
Thanks， this time i use online tool to download the Qt5.15 succeeded. Thank you very much！！！
I chosen offline to download source code with many problem，now i can happily compile the Slicer without any configure error.
Thank you again !!!