# TubeTK build with Slicer

**URL:** <https://discourse.slicer.org/t/tubetk-build-with-slicer/858>\
**Category:** Development\
**Created:** [August 11, 2017, 4:09pm UTC](https://discourse.slicer.org/t/tubetk-build-with-slicer/858 "2017-08-11T16:09:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [August 11, 2017, 4:09pm UTC](https://discourse.slicer.org/t/tubetk-build-with-slicer/858/1 "2017-08-11T16:09:11Z")

</div>

Hi,

Does anyone build TubeTk successfully with the latest slicer?  
i receive this kind of error message  
Make Error at /usr/local/Cellar/cmake/3.9.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):  
Could NOT find JsonCpp (missing: JsonCpp\_LIBRARIES JsonCpp\_INCLUDE\_DIRS)  
Call Stack (most recent call first):  
/usr/local/Cellar/cmake/3.9.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:377 (\_FPHSA\_FAILURE\_MESSAGE)  
/Users/longquanchen/Desktop/Github/Slicer-build/SlicerExecutionModel-build/CMake/FindJsonCpp.cmake:58 (find\_package\_handle\_standard\_args)  
CMakeLists.txt:509 (find\_package)

I think possible solution could be using the latest SlicerExecutionModel.  
Any thoughts?

Best Regards,  
Longquan

---

<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:** [August 11, 2017, 6:21pm UTC](https://discourse.slicer.org/t/tubetk-build-with-slicer/858/2 "2017-08-11T18:21:09Z")

</div>

TubeTK build worked fine for me in the past, I just had to set in CMake `-DSlicer_DIR:PATH=%SLICER_BIN_DIR_DBG_X64% -DTubeTK_BUILD_SLICER_EXTENSION:BOOL=ON`.

The build now fails for me, too, with an error complaining that Slicer is configured with different JsonCpp. It seems that you have to make TubeTK to use Slicer’s JsonCpp - the same way TubeTK already uses VTK, CTK, etc. built by Slicer.

---

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [August 11, 2017, 7:08pm UTC](https://discourse.slicer.org/t/tubetk-build-with-slicer/858/3 "2017-08-11T19:08:31Z")

</div>

Hi Andras,

Thanks for the prompt reply.  
Yes i make it build using your suggestion.  
However, the TubeTk is not maintained very well with the current Slicer API change.  
such as [https://github.com/KitwareMedical/ITKTubeTK/issues/921](https://github.com/KitwareMedical/ITKTubeTK/issues/921)  
I contact the developer in TubeTk, hope they could solve the issue.

Best Regards,  
Longquan

---

<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:** [August 11, 2017, 7:52pm UTC](https://discourse.slicer.org/t/tubetk-build-with-slicer/858/4 "2017-08-11T19:52:46Z")

</div>

All these should be very easy to fix. We just did not detect these errors because there was no automatic build set up for it. Let me know if you are stuck at any point.

---

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [August 11, 2017, 9:15pm UTC](https://discourse.slicer.org/t/tubetk-build-with-slicer/858/5 "2017-08-11T21:15:06Z")

</div>

thanks, i will let you know if any question arises.

best,  
longquan
