# Full installation for Qt, but compite Slicer met error: "Library not found: Qt5Cored"

**URL:** https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329
**Category:** Support
**Tags:** build
**Created:** [October 30, 2020, 2:03pm UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329 "2020-10-30T14:03:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![chenyx](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chenyx](https://discourse.slicer.org/u/chenyx)
#### Post date: [October 30, 2020, 2:03pm UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/1 "2020-10-30T14:03:07Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [October 30, 2020, 5:29pm UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/2 "2020-10-30T17:29:23Z")

</div>

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.

> **[Windows — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/windows.html)**

---

<div class="post-metadata">

### Author: ![chenyx](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chenyx](https://discourse.slicer.org/u/chenyx)
#### Post date: [October 31, 2020, 5:54am UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/3 "2020-10-31T05:54:30Z")

</div>

Thank James for your reply.  
So different version VS tools will affect the building process.  
Indeed，i build the Slicer with

> master

branch，but if i download the v4.11， should i must use VS2019 and Qt5.15 for compile？

---

<div class="post-metadata">

### Author: ![chenyx](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chenyx](https://discourse.slicer.org/u/chenyx)
#### Post date: [October 31, 2020, 2:19pm UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/4 "2020-10-31T14:19:30Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [October 31, 2020, 2:39pm UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/5 "2020-10-31T14:39:55Z")

</div>

I don’t personally build Qt from source. I follow the directions as I linked above which says

> [Qt5](https://www.qt.io/download-open-source): 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.

---

<div class="post-metadata">

### Author: ![chenyx](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chenyx](https://discourse.slicer.org/u/chenyx)
#### Post date: [October 31, 2020, 2:48pm UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/7 "2020-10-31T14:48:15Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [October 31, 2020, 8:03pm UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/8 "2020-10-31T20:03:26Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![chenyx](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chenyx](https://discourse.slicer.org/u/chenyx)
#### Post date: [November 1, 2020, 10:12am UTC](https://discourse.slicer.org/t/full-installation-for-qt-but-compite-slicer-met-error-library-not-found-qt5cored/14329/9 "2020-11-01T10:12:05Z")

</div>

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 !!!
