# Light Weigh Robot IGT

**URL:** <https://discourse.slicer.org/t/light-weigh-robot-igt/5094>\
**Category:** Support\
**Tags:** build\
**Created:** [December 16, 2018, 1:27pm UTC](https://discourse.slicer.org/t/light-weigh-robot-igt/5094 "2018-12-16T13:27:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mary7291](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mary7291](https://discourse.slicer.org/u/Mary7291)\
**Post date:** [December 16, 2018, 1:27pm UTC](https://discourse.slicer.org/t/light-weigh-robot-igt/5094/1 "2018-12-16T13:27:22Z")

</div>

Hi every one,  
I want to build an extension(Lignt Weight Robot IGT) on slicer. But i get this error on Cmake-gui:

* * *

CMake Error at CMakeLists.txt:14 (find\_package):  
By not providing "FindSlicer.cmake" in CMAKE\_MODULE\_PATH this project has  
asked CMake to find a package configuration file provided by "Slicer", but  
CMake did not find one.

Could not find a package configuration file provided by "Slicer" with any  
of the following names:

SlicerConfig.cmake  
slicer-config.cmake

Add the installation prefix of "Slicer" to CMAKE\_PREFIX\_PATH or set  
"Slicer\_DIR" to a directory containing one of the above files. If "Slicer"  
provides a separate development package or SDK, be sure it has been  
installed.

* * *

I have built the slicer from source on my system using visual studio 2015 and i can open the slicer using slicer.exe.

I would be so appreciated if anyone could help me…

Operating system: windows 7 (64 bit operating system)  
Slicer version: build: nightly 4.11. install on windows: 4.8.  
Expected behavior:  
Actual behavior:

---

<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:** [December 16, 2018, 3:31pm UTC](https://discourse.slicer.org/t/light-weigh-robot-igt/5094/2 "2018-12-16T15:31:21Z")

</div>

When you configure the extension in CMake, set Slicer\_DIR to the Slicer-build subfolder in the Slicer build tree.

---

<div class="post-metadata">

**Author:** ![Mary7291](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mary7291](https://discourse.slicer.org/u/Mary7291)\
**Post date:** [December 16, 2018, 4:22pm UTC](https://discourse.slicer.org/t/light-weigh-robot-igt/5094/3 "2018-12-16T16:22:22Z")

</div>

Thanks Mr. Lasso.

I do this way and it seem that the module is configured and generated.  
But 96 errors are appeared when i try to build the module in release mode (by opening the LightWeightRobotIGT.sln in VS and build the all build in release mode). The output errors are such as:  
\*\*  
12\>LINK : fatal error LNK1181: cannot open input file ‘…\lib\Slicer-4.11\qt-loadable-modules\Release\qSlicerLightWeightRobotIGTModuleWidgets.lib’

and

9\>E:\LightWeightRobotIGT\LightWeightRobotIGT\Widgets\qSlicerLightWeightRobotIGTFooBarWidget.cxx(53): fatal error C1083: Cannot open include file: ‘vtkMRMLIGTLConnectorNode.h’: No such file or directory  
\*\*  
Finally, the output of the VS is:  
========== Build: 6 succeeded, 10 failed, 0 up-to-date, 0 skipped ==========

could you please help me in building the module correctly?

---

<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:** [December 16, 2018, 5:41pm UTC](https://discourse.slicer.org/t/light-weigh-robot-igt/5094/4 "2018-12-16T17:41:21Z")

</div>

The dashboard shows build error, too: [http://slicer.cdash.org/viewBuildError.php?buildid=1462832](http://slicer.cdash.org/viewBuildError.php?buildid=1462832)

It should be easy to fix, seems to be caused by moving out OpenIGTLinkIF module to an extension.

Please submit an issue to the extension’s GitHub repository. If you don’t get an answer within a few days then let us know and we’ll help.

---

<div class="post-metadata">

**Author:** ![Mary7291](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Mary7291](https://discourse.slicer.org/u/Mary7291)\
**Post date:** [December 16, 2018, 6:34pm UTC](https://discourse.slicer.org/t/light-weigh-robot-igt/5094/5 "2018-12-16T18:34:17Z")

</div>

Thanks Mr. Lasso.  
Ok, I will do that.
