# Slicer IGT extension build errors in visual studio 2019

**URL:** <https://discourse.slicer.org/t/slicer-igt-extension-build-errors-in-visual-studio-2019/19236>\
**Category:** Support\
**Created:** [August 17, 2021, 5:52pm UTC](https://discourse.slicer.org/t/slicer-igt-extension-build-errors-in-visual-studio-2019/19236 "2021-08-17T17:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar\_Ranabhat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/raj_kumar_ranabhat/32/9857_2.png) [@Raj\_Kumar\_Ranabhat](https://discourse.slicer.org/u/Raj_Kumar_Ranabhat)\
**Post date:** [August 17, 2021, 5:52pm UTC](https://discourse.slicer.org/t/slicer-igt-extension-build-errors-in-visual-studio-2019/19236/1 "2021-08-17T17:52:03Z")

</div>

Hi @lassoan

I was able to build slicer both on debug and release mode. I would like to build Slicer IGT extension which is required for my project but I am getting several errors.

Steps I have used to build is from [Documentation/Nightly/Developers/FAQ/Extensions - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/Developers/FAQ/Extensions)

source = SlicerIGT cloned file

Add entry :  
Slicer\_DIR = Slicer\_build folder from released build version of Slicer  
and QT added

I didn’t see errors in Cmake configuration and generation (using GUI) but while building in Visual studio 2019 , I received several errors. like ,

23\>Done building project “vtkSlicerPathExplorerModuleMRMLPythonD.vcxproj” – FAILED.  
30\>Done building project “vtkSlicerTransformProcessorModuleMRMLPythonD.vcxproj” – FAILED.

What could be the reasons ?

Thank you for feedbacks and corrections.

---

<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 17, 2021, 6:06pm UTC](https://discourse.slicer.org/t/slicer-igt-extension-build-errors-in-visual-studio-2019/19236/2 "2021-08-17T18:06:51Z")

</div>

SlicerIGT builds without error using VS2019 using v142 (VS2019) toolset, see on the [dashboard](https://slicer.cdash.org/build/2362938).

Make sure you use the latest Slicer master version and that you choose Debug/Release that matches the chosen Slicer\_DIR. You need to use completely different build trees for Debug and Release builds.
