# Build slicer error,need your help

**URL:** <https://discourse.slicer.org/t/build-slicer-error-need-your-help/7207>\
**Category:** Support\
**Tags:** build\
**Created:** [June 17, 2019, 8:41pm UTC](https://discourse.slicer.org/t/build-slicer-error-need-your-help/7207 "2019-06-17T20:41:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhaobingshuai](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhaobingshuai/32/7608_2.png) [@zhaobingshuai](https://discourse.slicer.org/u/zhaobingshuai)\
**Post date:** [June 17, 2019, 8:41pm UTC](https://discourse.slicer.org/t/build-slicer-error-need-your-help/7207/1 "2019-06-17T20:41:30Z")

</div>

hello, when i build slicer, i enter \<ccmake -DCMAKE\_BUILD\_TYPE:STRING=Release DQt5\_DIR:PATH=/home/zbs/package/Qt/5.12.2/gcc\_64/lib/cmake/Qt5/Qt5Config.cmake …/Slicer\>  
i meet errors as follows, maybe the reason is i install qt more than one.Could you give me some advice? Thank you very much.

CMake Warning at CMake/SlicerBlockFindQtAndCheckVersion.cmake:22 (find\_package):  
Found package configuration file:

```
 /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake

```

but it set Qt5\_FOUND to FALSE so package “Qt5” is considered to be NOT  
FOUND. Reason given by package:

Failed to find Qt5 component “Multimedia” config file at  
“/usr/lib/x86\_64-linux-gnu/cmake/Qt5Multimedia/Qt5MultimediaConfig.cmake”

Failed to find Qt5 component “XmlPatterns” config file at  
“/usr/lib/x86\_64-linux-gnu/cmake/Qt5XmlPatterns/Qt5XmlPatternsConfig.cmake”

Failed to find Qt5 component “Svg” config file at  
“/usr/lib/x86\_64-linux-gnu/cmake/Qt5Svg/Qt5SvgConfig.cmake”

Failed to find Qt5 component “WebEngine” config file at  
“/usr/lib/x86\_64-linux-gnu/cmake/Qt5WebEngine/Qt5WebEngineConfig.cmake”

Failed to find Qt5 component “WebEngineWidgets” config file at  
“/usr/lib/x86\_64-linux-gnu/cmake/Qt5WebEngineWidgets/Qt5WebEngineWidgetsConfig.cmake”

Failed to find Qt5 component “WebChannel” config file at  
“/usr/lib/x86\_64-linux-gnu/cmake/Qt5WebChannel/Qt5WebChannelConfig.cmake”

Errors occurred during the last pass

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [June 17, 2019, 10:01pm UTC](https://discourse.slicer.org/t/build-slicer-error-need-your-help/7207/2 "2019-06-17T22:01:28Z")

</div>

Considering setting `Qt5_DIR` to `/home/zbs/package/Qt/5.12.2/gcc_64/lib/cmake/Qt5` instead of `/home/zbs/package/Qt/5.12.2/gcc_64/lib/cmake/Qt5/Qt5Config.cmake`

For more details, see [https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build\_Instructions#Unix-like](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Unix-like)

---

<div class="post-metadata">

**Author:** ![alankrutha](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@alankrutha](https://discourse.slicer.org/u/alankrutha)\
**Post date:** [March 23, 2020, 11:54am UTC](https://discourse.slicer.org/t/build-slicer-error-need-your-help/7207/3 "2020-03-23T11:54:27Z")

</div>

Hi Jean,

I have tried with “cmake -DCMAKE\_BUILD\_TYPE:STRING=Debug -DQt5\_DIR:PATH=/usr/lib/x86\_64-linux-gnu/cmake/Qt5/ …/…/Slicer” , but still i’m getting same errors.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 23, 2020, 5:32pm UTC](https://discourse.slicer.org/t/build-slicer-error-need-your-help/7207/4 "2020-03-23T17:32:06Z")

</div>

In your last attempt to configure, you used `/usr/lib/x86_64-linux-gnu/cmake/Qt5/` instead of `/home/zbs/package/Qt/5.12.2/gcc_64/lib/cmake/Qt5`

I suggest the following:  
(1) Use the version of Qt5 installed in `/home/zbs/package/Qt/5.12.2/`  
(2) Make sure that WebEngine and QtScript are installed. The files `Qt5Script/Qt5ScriptConfig.cmake` and `Qt5WebEngine/Qt5WebEngineConfig.cmake` should exist in the directory `/home/zbs/package/Qt/5.12.2/gcc_64/lib/cmake`. If not, update your Qt install to install the corresponding components. See [https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build\_Instructions#Linux](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Linux)

```auto

```

---

<div class="post-metadata">

**Author:** ![dlanuza](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dlanuza/32/9003_2.png) [@dlanuza](https://discourse.slicer.org/u/dlanuza)\
**Post date:** [November 27, 2020, 3:13am UTC](https://discourse.slicer.org/t/build-slicer-error-need-your-help/7207/5 "2020-11-27T03:13:47Z")

</div>

> **[Installing BuildmLearn-ToolKit On Ubuntu 14.04](https://ravirnjn.wordpress.com/2015/03/03/installing-buildmlearn-toolkit-on-ubuntu-14-04/)**
>
> BuildmLearn Toolkit is an easy-to-use program that helps the users make mobile apps without any knowledge of application development. (Github Page , Download Link) Installation instruction for Linu…

  
sudo apt-get install qtmultimedia5-dev
