I use Cmake Gui to compile Slicer Source code download. The develop tools are:
1.vs 2015
2.Qt 5.13.1
3. CMake >3.15.1
4.Git >1.7.10
I add Qt5_DIR variable pointing to Qt5 folder : D:\Qt\Qt5.13.1\5.13.1\msvc2015_64\lib\cmake\Qt5
and
select my compiler: Visual Studio 14 2015,
then the cmake eccor as the follow:
Configuring VTK
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):
D:/Qt/Qt5.13.1/5.13.1/msvc2015_64/lib/cmake/Qt5UiTools/Qt5UiToolsConfig.cmake:227 (_qt5_UiTools_process_prl_file)
D:/Qt/Qt5.13.1/5.13.1/msvc2015_64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
CMake/SlicerBlockFindQtAndCheckVersion.cmake:22 (find_package)
CMake/SlicerBlockFindQtAndCheckVersion.cmake:67 (__SlicerBlockFindQtAndCheckVersion_find_qt)
CMakeLists.txt:620 (include)
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.
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 QtMultimedia and QtWebEngine
Can you enlight me the argument of Qt’s configure command?
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.