# Cpack is broken because of wrong dcmtk path on Ubuntu 20

**URL:** <https://discourse.slicer.org/t/cpack-is-broken-because-of-wrong-dcmtk-path-on-ubuntu-20/17327>\
**Category:** Development\
**Created:** [April 26, 2021, 8:29am UTC](https://discourse.slicer.org/t/cpack-is-broken-because-of-wrong-dcmtk-path-on-ubuntu-20/17327 "2021-04-26T08:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aymeric.chataigner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aymeric.chataigner/32/4977_2.png) [@aymeric.chataigner](https://discourse.slicer.org/u/aymeric.chataigner)\
**Post date:** [April 26, 2021, 8:29am UTC](https://discourse.slicer.org/t/cpack-is-broken-because-of-wrong-dcmtk-path-on-ubuntu-20/17327/1 "2021-04-26T08:29:18Z")

</div>

Hi,

OS: Linux Ubuntu 20  
3d slicer version: 4.11.20210226

I’m working on a 3d slicer custom app which uses slicelets.  
3d slicer cpack is used to generate the install archive.  
Unfortunately cpack process fails because it uses wrong path to copy dcmtk executables (for instance storescu).  
It is due to a FindDCMTK script into the CTK repository, here is the fix I proposed: [COMP: FindDCMTK: fix wrong DCMTK\_DIR in CTK-build/CTKConfig.cmake by achataigner · Pull Request #960 · commontk/CTK · GitHub](https://github.com/commontk/CTK/pull/960)

Could you have a look at it ?

Best regards,

Aymeric

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 26, 2021, 11:17pm UTC](https://discourse.slicer.org/t/cpack-is-broken-because-of-wrong-dcmtk-path-on-ubuntu-20/17327/2 "2021-04-26T23:17:56Z")

</div>

Thank you, we will review it as soon as we can. The best is to keep the discussion at the CTK bugtracker.

---

<div class="post-metadata">

**Author:** ![aymeric.chataigner](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aymeric.chataigner/32/4977_2.png) [@aymeric.chataigner](https://discourse.slicer.org/u/aymeric.chataigner)\
**Post date:** [May 7, 2021, 9:43am UTC](https://discourse.slicer.org/t/cpack-is-broken-because-of-wrong-dcmtk-path-on-ubuntu-20/17327/3 "2021-05-07T09:43:30Z")

</div>

Issue added in ctk bugtracker: [FindDCMTK.cmake can overwrite DCMTK\_DIR previously set · Issue #966 · commontk/CTK · GitHub](https://github.com/commontk/CTK/issues/966)
