<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, <div>Thanks David and Fcs. The generator/compiler was the issue; VTK 5.10 is compatible with visual studio 2012. </div><div><br></div><div>For anyone interested: </div><div>Steps for installing vtk in windows using cmake </div><div>1. steps: (<a href="https://www.vtk.org/Wiki/VTK/Building/Windows">https://www.vtk.org/Wiki/VTK/Building/Windows</a>) (or video: <a href="https://www.youtube.com/watch?v=IgvbhyDh8r0">https://www.youtube.com/watch?v=IgvbhyDh8r0</a>)</div><div>2. generator/compiler appropriate for any particular cmake version: (<a href="https://cmake.org/cmake/help/v3.4/manual/cmake-generators.7.html#visual-studio-generators" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/v3.4/manual/cmake-generators.7.html#visual-studio-generators</a>)</div><div>3. advisable to install visual studio in the order of release (<a href="https://visualstudio.microsoft.com/vs/support/vs2015/installing-multiple-versions-visual-studio-side-side/">https://visualstudio.microsoft.com/vs/support/vs2015/installing-multiple-versions-visual-studio-side-side/</a>)</div><div><br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Thank you</div>Idayat Salako</div><div dir="ltr"><br></div><div dir="ltr" style="text-align:center"><span style="font-size:small"><font face="arial, helvetica, sans-serif" color="#000000">***Whoever wakes up in the morning and is safe in his home, in good health and has enough provision for the day, it is as if he has all the good things of this world [HadithTirmidhi 2346]***</font></span><br></div><div dir="ltr" style="text-align:center"><br></div></div></div></div></div></div></div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 5 Nov 2018 at 11:05, Fcs <<a href="mailto:ftpronk@engits.com">ftpronk@engits.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Idayat,<br>
<br>
By looking at your CMakeErrorLog, your build is trying to find files like<br>
pthread.h and unistd.h, which are header files belonging to of the POSIX<br>
(thread) API. As you are building under Windows with Visual Studio, these<br>
files don't exist, and you need to link to the Win32 API, and not the POSIX<br>
API.  This means something is wrong with your build.<br>
<br>
Did you use the correct generator with CMake? I personally haven't built<br>
vtk5 under windows, but I expect their CMake setup to correctly deal with<br>
the POSIX/Win32 issue.  Have a look here<br>
<<a href="https://cmake.org/cmake/help/v3.4/manual/cmake-generators.7.html#visual-studio-generators" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/v3.4/manual/cmake-generators.7.html#visual-studio-generators</a>>  <br>
for more information about CMake generators.<br>
<br>
It could also be a bug introduced in the specific commit your are trying to<br>
compile.  Did you try using an earlier release?<br>
<br>
Also, keep in mind that Visual Studio 2013 did not exist when vtk 5.10 was<br>
released, and it might simply not be compatible with that compiler.  Would<br>
it be acceptable for your project to use an earlier compiler? If all else<br>
fails, you could try using a toolchain that is guaranteed to be compatible<br>
with vtk 5.<br>
<br>
Last but not least, if I remember properly, the earlier versions of vtk 5<br>
where defining macros conflicting with c++11. I don't remember if that was<br>
also the case for the later versions of vtk 5, or if you could disable those<br>
macros in CMake and use their c++11 equivalent, but keep in mind that Visual<br>
Studio 2013 has (some....) c++11 support which might conflict with vtk 5.<br>
<br>
Kind regards<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>