# Not able to build 3d slicer in my debian machine 

**URL:** <https://discourse.slicer.org/t/not-able-to-build-3d-slicer-in-my-debian-machine/5600>\
**Category:** Support\
**Created:** [January 31, 2019, 2:59pm UTC](https://discourse.slicer.org/t/not-able-to-build-3d-slicer-in-my-debian-machine/5600 "2019-01-31T14:59:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@Mahesh\_Kumar](https://discourse.slicer.org/u/Mahesh_Kumar)\
**Post date:** [January 31, 2019, 2:59pm UTC](https://discourse.slicer.org/t/not-able-to-build-3d-slicer-in-my-debian-machine/5600/1 "2019-01-31T14:59:23Z")

</div>

I want to debug one of the module in 3d slicer. I tried to install 3d slicer as per the documentation mentioned in link below (section  
Quick build on debian) [Documentation/Nightly/Developers/Build Instructions - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions#Quick_Build_on_Debian)

 ![slicer_error](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/3/438b1490ab1a9248f3f97938620284ea28d15331.png)

But I am getting error like QTemporaryDir: No such file or directory.

Please find the attached snapshot of that error.

Can any please help me on how to fix this error.

I am using cmake version 3.13.3 and qmake --version is Qt version 4.8.7

Please let me know if you need any information.

Thanks.

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [January 31, 2019, 5:19pm UTC](https://discourse.slicer.org/t/not-able-to-build-3d-slicer-in-my-debian-machine/5600/2 "2019-01-31T17:19:35Z")

</div>

Qt4 support is deprecated and will be removed soon on all platforms (if it has not been already since 4.10 – the docs may be outdated). So I suggest to build against Qt5.

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [January 31, 2019, 5:25pm UTC](https://discourse.slicer.org/t/not-able-to-build-3d-slicer-in-my-debian-machine/5600/3 "2019-01-31T17:25:10Z")

</div>

Agree. You need this:

```
cmake -DQt5_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt5 <etc>
```
