# Error in installing OpenIGTLink

**URL:** <https://discourse.slicer.org/t/error-in-installing-openigtlink/8015>\
**Category:** Support\
**Created:** [August 13, 2019, 7:59pm UTC](https://discourse.slicer.org/t/error-in-installing-openigtlink/8015 "2019-08-13T19:59:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed\_elshreif](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ahmed_elshreif/32/4311_2.png) [@ahmed\_elshreif](https://discourse.slicer.org/u/ahmed_elshreif)\
**Post date:** [August 13, 2019, 7:59pm UTC](https://discourse.slicer.org/t/error-in-installing-openigtlink/8015/1 "2019-08-13T19:59:33Z")

</div>

I use windows 10 with amd64 what is the version of the Cmake that should I use and which generator to use with is like the attached image

 ![1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/5/c5e0b9f9b1affa8b609c184a199b41bce51b5f07.png)

Also after that I how tyo compile the sln as I tried to compile it with diffrent versions of Visual studio but I don’t get the 2 files that is needed as the build instructions here say:

[github.com](https://github.com/openigtlink/OpenIGTLink/blob/master/BUILD.md)

#### [openigtlink/OpenIGTLink/blob/master/BUILD.md](https://github.com/openigtlink/OpenIGTLink/blob/master/BUILD.md)

```auto
The OpenIGTLink Library Build Instruction
=========================================

Linux / Mac OS X
----------------

First, obtain the source code from the repository using Git. To simply download
the code, run the following command from a terminal:

~~~~
$ git clone https://github.com/openigtlink/OpenIGTLink.git
~~~~

Then configure using CMake. The library requires CMake version higher than 2.4.

~~~~
$ mkdir OpenIGTLink-build
$ cd OpenIGTLink-build
$ cmake -DBUILD_EXAMPLES:BOOL=ON ../OpenIGTLink
$ make

```

This file has been truncated. [show original](https://github.com/openigtlink/OpenIGTLink/blob/master/BUILD.md)

Also this is the logs of the configration and I don’t know whats wrong

Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.18362.  
The C compiler identification is MSVC 19.0.24215.1  
The CXX compiler identification is MSVC 19.0.24215.1  
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86\_amd64/cl.exe  
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86\_amd64/cl.exe – works  
Detecting C compiler ABI info  
Detecting C compiler ABI info - done  
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86\_amd64/cl.exe  
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86\_amd64/cl.exe – works  
Detecting CXX compiler ABI info  
Detecting CXX compiler ABI info - done  
Detecting CXX compile features  
Detecting CXX compile features - done  
Looking for pthread.h  
Looking for pthread.h - not found  
Found Threads: TRUE  
Looking for getsockname in socket  
Looking for getsockname in socket - not found  
Checking for getsockname with socklen\_t  
Checking for getsockname with socklen\_t – no  
Looking for strnlen  
Looking for strnlen - found  
Looking for SO\_REUSEADDR  
Looking for SO\_REUSEADDR - not found  
Looking for sys/types.h  
Looking for sys/types.h - found  
Looking for stdint.h  
Looking for stdint.h - found  
Looking for stddef.h  
Looking for stddef.h - found  
Check size of int  
Check size of int - done  
Check size of long  
Check size of long - done  
Check size of void\*  
Check size of void\* - done  
Check size of char  
Check size of char - done  
Check size of short  
Check size of short - done  
Check size of float  
Check size of float - done  
Check size of double  
Check size of double - done  
Check size of long long  
Check size of long long - done  
Check size of \_\_int64  
Check size of \_\_int64 - done  
Check size of int64\_t  
Check size of int64\_t - done  
CMake Warning (dev) at C:/Devel/OpenIGTLink\_build/OpenIGTLinkConfig.cmake:67 (include):  
Policy CMP0024 is not set: Disallow include export result. Run “cmake  
–help-policy CMP0024” for policy details. Use the cmake\_policy command to  
set the policy and suppress this warning.

The file

```auto
C:/Devel/OpenIGTLink_build/OpenIGTLinkTargets.cmake

```

was generated by the export() command. It should not be used as the  
argument to the include() command. Use ALIAS targets instead to refer to  
targets by alternative names.

Call Stack (most recent call first):  
Testing/CMakeLists.txt:4 (find\_package)  
This warning is for project developers. Use -Wno-dev to suppress it.

– Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.18362.

– Configuring done

– Generating done

– Build files have been written to: C:/Devel/OpenIGTLink\_build/Testing/googletest-download

Microsoft ® Build Engine version 14.0.25420.1  
Copyright © Microsoft Corporation. All rights reserved.

Build started 8/12/2019 12:55:01 PM.

Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\ALL\_BUILD.vcxproj” on node 1 (default targets).

Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\ALL\_BUILD.vcxproj” (1) is building “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\ZERO\_CHECK.vcxproj” (2) on node 1 (default targets).  
PrepareForBuild:

Creating directory “x64\Debug\ZERO\_CHECK”.

Creating directory “x64\Debug\ZERO\_CHECK\ZERO\_CHECK.tlog”.

InitializeBuildStatus:

Creating “x64\Debug\ZERO\_CHECK\ZERO\_CHECK.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.

CustomBuild:

Checking Build System

CMake does not need to re-run because C:/Devel/OpenIGTLink\_build/Testing/googletest-download/CMakeFiles/generate.stamp is up-to-date.

FinalizeBuildStatus:

Deleting file “x64\Debug\ZERO\_CHECK\ZERO\_CHECK.tlog\unsuccessfulbuild”.

Touching “x64\Debug\ZERO\_CHECK\ZERO\_CHECK.tlog\ZERO\_CHECK.lastbuildstate”.

Done Building Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\ZERO\_CHECK.vcxproj” (default targets).

Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\ALL\_BUILD.vcxproj” (1) is building “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\googlemock.vcxproj” (3) on node 1 (default targets).

PrepareForBuild:  
Creating directory “x64\Debug\googlemock”.

Creating directory “x64\Debug\googlemock\googlemock.tlog”.

InitializeBuildStatus:

Creating “x64\Debug\googlemock\googlemock.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.

ComputeCustomBuildOutput:

Creating directory “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\googlemock-prefix\src\googlemock-stamp\Debug”.

Creating directory “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\CMakeFiles\Debug”.

CustomBuild:

Creating directories for ‘googlemock’

Building Custom Rule C:/Devel/OpenIGTLink\_build/Testing/googletest-download/CMakeLists.txt

CMake does not need to re-run because C:/Devel/OpenIGTLink\_build/Testing/googletest-download/CMakeFiles/generate.stamp is up-to-date.

Performing download step (download, verify and extract) for ‘googlemock’

– Downloading…

```auto
 dst='C:/Devel/OpenIGTLink_build/Testing/googletest-download/googlemock-prefix/src/release-1.7.0.zip'
 timeout='none'

```

– Using src=‘[https://github.com/google/googlemock/archive/release-1.7.0.zip’](https://github.com/google/googlemock/archive/release-1.7.0.zip%E2%80%99)

– [download 1% complete]

– [download 2% complete]

– [download 4% complete]

– [download 5% complete]

– [download 8% complete]

– [download 11% complete]

– [download 14% complete]

– [download 15% complete]

– [download 16% complete]

– [download 20% complete]

– [download 24% complete]

– [download 26% complete]

– [download 30% complete]

– [download 35% complete]

– [download 38% complete]

– [download 50% complete]

– [download 54% complete]

– [download 56% complete]

– [download 57% complete]

– [download 58% complete]

– [download 61% complete]

– [download 62% complete]

– [download 65% complete]

– [download 68% complete]

– [download 72% complete]

– [download 73% complete]

– [download 82% complete]

– [download 91% complete]

– [download 100% complete]

– Downloading… done

– extracting…

```auto
   src='C:/Devel/OpenIGTLink_build/Testing/googletest-download/googlemock-prefix/src/release-1.7.0.zip'
   dst='C:/Devel/OpenIGTLink_build/Testing/gmock'

```

– extracting… [tar xfz]

– extracting… [analysis]

– extracting… [rename]

– extracting… [clean up]

– extracting… done

No update step for ‘googlemock’

No patch step for ‘googlemock’

No configure step for ‘googlemock’

No build step for ‘googlemock’

No install step for ‘googlemock’

No test step for ‘googlemock’

Completed ‘googlemock’

FinalizeBuildStatus:

Deleting file “x64\Debug\googlemock\googlemock.tlog\unsuccessfulbuild”.

Touching “x64\Debug\googlemock\googlemock.tlog\googlemock.lastbuildstate”.

Done Building Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\googlemock.vcxproj” (default targets).

Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\ALL\_BUILD.vcxproj” (1) is building “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\googletest.vcxproj” (4) on node 1 (default targets).

PrepareForBuild:  
Creating directory “x64\Debug\googletest”.

Creating directory “x64\Debug\googletest\googletest.tlog”.

InitializeBuildStatus:

Creating “x64\Debug\googletest\googletest.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.

ComputeCustomBuildOutput:

Creating directory “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\googletest-prefix\src\googletest-stamp\Debug”.

CustomBuild:

Creating directories for ‘googletest’

Building Custom Rule C:/Devel/OpenIGTLink\_build/Testing/googletest-download/CMakeLists.txt

CMake does not need to re-run because C:/Devel/OpenIGTLink\_build/Testing/googletest-download/CMakeFiles/generate.stamp is up-to-date.

Performing download step (download, verify and extract) for ‘googletest’

– Downloading…

```auto
 dst='C:/Devel/OpenIGTLink_build/Testing/googletest-download/googletest-prefix/src/release-1.7.0.zip'
 timeout='none'

```

– Using src=‘[https://github.com/google/googletest/archive/release-1.7.0.zip’](https://github.com/google/googletest/archive/release-1.7.0.zip%E2%80%99)

– [download 0% complete]

– [download 2% complete]

– [download 4% complete]

– [download 5% complete]

– [download 6% complete]

– [download 7% complete]

– [download 8% complete]

– [download 10% complete]

– [download 12% complete]

– [download 13% complete]

– [download 15% complete]

– [download 18% complete]

– [download 20% complete]

– [download 23% complete]

– [download 25% complete]

– [download 29% complete]

– [download 32% complete]

– [download 33% complete]

– [download 34% complete]

– [download 35% complete]

– [download 36% complete]

– [download 37% complete]

– [download 40% complete]

– [download 42% complete]

– [download 43% complete]

– [download 46% complete]

– [download 56% complete]

– [download 61% complete]

– [download 64% complete]

– [download 66% complete]

– [download 69% complete]

– [download 72% complete]

– [download 79% complete]

– [download 87% complete]

– [download 90% complete]

– [download 97% complete]

– [download 100% complete]

– Downloading… done

– extracting…

```auto
   src='C:/Devel/OpenIGTLink_build/Testing/googletest-download/googletest-prefix/src/release-1.7.0.zip'
   dst='C:/Devel/OpenIGTLink_build/Testing/gtest'

```

– extracting… [tar xfz]

– extracting… [analysis]

– extracting… [rename]

– extracting… [clean up]

– extracting… done

No update step for ‘googletest’

No patch step for ‘googletest’

No configure step for ‘googletest’

No build step for ‘googletest’

No install step for ‘googletest’

No test step for ‘googletest’

Completed ‘googletest’

FinalizeBuildStatus:

Deleting file “x64\Debug\googletest\googletest.tlog\unsuccessfulbuild”.

Touching “x64\Debug\googletest\googletest.tlog\googletest.lastbuildstate”.

Done Building Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\googletest.vcxproj” (default targets).

PrepareForBuild:

Creating directory “x64\Debug\ALL\_BUILD”.

Creating directory “x64\Debug\ALL\_BUILD\ALL\_BUILD.tlog”.

InitializeBuildStatus:

Creating “x64\Debug\ALL\_BUILD\ALL\_BUILD.tlog\unsuccessfulbuild” because “AlwaysCreate” was specified.

CustomBuild:

Building Custom Rule C:/Devel/OpenIGTLink\_build/Testing/googletest-download/CMakeLists.txt

CMake does not need to re-run because C:/Devel/OpenIGTLink\_build/Testing/googletest-download/CMakeFiles/generate.stamp is up-to-date.

FinalizeBuildStatus:

Deleting file “x64\Debug\ALL\_BUILD\ALL\_BUILD.tlog\unsuccessfulbuild”.

Touching “x64\Debug\ALL\_BUILD\ALL\_BUILD.tlog\ALL\_BUILD.lastbuildstate”.

Done Building Project “C:\Devel\OpenIGTLink\_build\Testing\googletest-download\ALL\_BUILD.vcxproj” (default targets).

Build succeeded.

```auto
0 Warning(s)
0 Error(s)

```

Time Elapsed 00:00:03.70

Found PythonInterp: C:/Users/diigi/Anaconda2/python.exe (found version “2.7.15”)  
Configuring done

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [August 13, 2019, 8:35pm UTC](https://discourse.slicer.org/t/error-in-installing-openigtlink/8015/2 "2019-08-13T20:35:19Z")

</div>

A response was added to your original thread where this same message was posted.

> [@Real Time Visualization](https://discourse.slicer.org/t/real-time-visualization/7854/13):
>
> @ahmed_elshreif Your OpenIGTLink build succeeded as evident by the following: Build succeeded. 0 Warning(s) 0 Error(s) igtlSocketTest.cxx is currently [commented out](https://github.com/openigtlink/OpenIGTLink/blob/eb71a36a0603db4971771738b4afde63a034c596/Testing/CMakeLists.txt#L59-L61) from the OpenIGTLinkTesting project. Someone had a similar issue and the developer that previously spent a lot of time on the project responded [here](https://github.com/openigtlink/OpenIGTLink/issues/187#issuecomment-398576462). As you have noticed the build instructions are not completely up-to-date, however you have built the project successfully.

---

<div class="post-metadata">

**Author:** ![ahmed\_elshreif](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ahmed_elshreif/32/4311_2.png) [@ahmed\_elshreif](https://discourse.slicer.org/u/ahmed_elshreif)\
**Post date:** [August 14, 2019, 5:22pm UTC](https://discourse.slicer.org/t/error-in-installing-openigtlink/8015/3 "2019-08-14T17:22:44Z")

</div>

> [@jamesobutler](#):
>
> onse was added to your original thread where this same message was posted.
> 
> [Real Time Visualization](https://discourse.slicer.org/t/real-time-visualization/7854/13) [Support](https://discourse.slicer.org/c/support)

how can I run this example or start using the OpenIGTLink in sending data to the slicer?
