<div dir="ltr">Hello,<div><br></div><div>I have already fixed the error in configuring VTK. It seems that building VTK on a separate disk is what caused the error for some reason. It worked fine after I re-downloaded VTK and kept it on my desktop when I configured it.</div><div><br></div><div>However, when I try to link ITK and VTK together, I get an error message when I configure ITK with the box for "Module_ItkVtkGlue". The message states: </div><div><br></div><div>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error at /Users/JJ/Desktop/ITKstuffs/VTK/VTKbin/CMakeFiles/VTKConfig.cmake:68 (include):<br>  include could not find load file:<br><br>    /Users/JJ/Desktop/ITKstuffs/lib/cmake/vtk-7.0/VTKTargets.cmake<br>Call Stack (most recent call first):<br>  Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)<br>  CMake/ITKModuleEnablement.cmake:316 (include)<br>  CMakeLists.txt:316 (include)<br><br></span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error at /Users/JJ/Desktop/ITKstuffs/VTK/VTKbin/CMakeFiles/VTKConfig.cmake:72 (include):<br>  include could not find load file:<br><br>    /Users/JJ/Desktop/ITKstuffs/lib/cmake/vtk-7.0/vtkModuleAPI.cmake<br>Call Stack (most recent call first):<br>  Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)<br>  CMake/ITKModuleEnablement.cmake:316 (include)<br>  CMakeLists.txt:316 (include)<br><br></span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error at /Users/JJ/Desktop/ITKstuffs/VTK/VTKbin/CMakeFiles/VTKConfig.cmake:88 (vtk_module_config):<br>  Unknown CMake command "vtk_module_config".<br>Call Stack (most recent call first):<br>  Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)<br>  CMake/ITKModuleEnablement.cmake:316 (include)<br>  CMakeLists.txt:316 (include)</span></p><p style="margin:0px"><span style="color:rgb(255,0,0)"><br></span></p><p style="margin:0px"><font color="#000000">I could not find any file named VTKTargets.cmake or vtkModuleAPI.cmake. Are these files I have to add myself? Any help would be greatly appreciated.</font></p><p style="margin:0px"><font color="#000000"><br></font></p><p style="margin:0px"><font color="#000000">Thanks in advance.</font></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 3, 2016 at 11:37 AM, Jeanna S. <span dir="ltr"><<a href="mailto:jeannasheen@gmail.com" target="_blank">jeannasheen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am trying to install VTK, but when I configure VTK in CMake, I get the following error:</div><div><br></div><div>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error: Error in cmake code at<br>/Volumes/FAT32G/ITKstuffs/VTK/Remote/._PoissonReconstruction.remote.cmake:1:<br>Parse error.  Expected a command name, got unquoted argument with text "".</span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error at Remote/CMakeLists.txt:6 (include):<br>  include could not find load file:<br><br>    /Volumes/FAT32G/ITKstuffs/VTK/Remote/._PoissonReconstruction.remote.cmake<br><br></span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error: Error in cmake code at<br>/Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkAddon.remote.cmake:1:<br>Parse error.  Expected a command name, got unquoted argument with text "".</span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error at Remote/CMakeLists.txt:6 (include):<br>  include could not find load file:<br><br>    /Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkAddon.remote.cmake<br><br></span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error: Error in cmake code at<br>/Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkDICOM.remote.cmake:1:<br>Parse error.  Expected a command name, got unquoted argument with text "".</span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error at Remote/CMakeLists.txt:6 (include):<br>  include could not find load file:<br><br>    /Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkDICOM.remote.cmake<br></span></p><p style="margin:0px"><span style="color:rgb(255,0,0)"><br></span></p><p style="margin:0px"><font color="#000000">FAT32G is the name of the disk I am trying to install VTK on, and ITKstuffs is the name of the folder I put all my ITK- and VTK-related things in. I am not sure what is wrong with the VTK code that is causing this error. Below is the code in PoissonReconstruction.remote.cmake, vtkAddon.remote.cmake, and vtkDICOM.remote.cmake:</font></p><p style="margin:0px"><font color="#000000"><br></font></p><p style="margin:0px"><font color="#000000">#</font></p><p style="margin:0px"><font color="#000000"># Poisson Reconstruction</font></p><p style="margin:0px"><font color="#000000">#</font></p><p style="margin:0px"><font color="#000000"><br></font></p><p style="margin:0px"><font color="#000000">vtk_fetch_module(PoissonReconstruction</font></p><p style="margin:0px"><font color="#000000">  "Poisson Surface reconstruction from unorganized points"</font></p><p style="margin:0px"><font color="#000000">  GIT_REPOSITORY <a href="https://github.com/lorensen/PoissonReconstruction" target="_blank">https://github.com/lorensen/PoissonReconstruction</a></font></p><p style="margin:0px"><font color="#000000">  # July 5, 2015 - first working as a remote module</font></p><p style="margin:0px"><font color="#000000">  GIT_TAG a3fdb529774d48329a2e807e542f2fe589060ccb</font></p><p style="margin:0px"><font color="#000000"></font></p><p style="margin:0px"><font color="#000000">  )</font></p></div><div>--------------------<br></div><div><div>#</div><div># vtkAddon</div><div>#</div><div><br></div><div>vtk_fetch_module(vtkAddon</div><div>  "Slicer additions to vtk"</div><div>  GIT_REPOSITORY <a href="https://github.com/lorensen/vtkAddon" target="_blank">https://github.com/lorensen/vtkAddon</a></div><div>  GIT_TAG 0d324d0a7afbd2f7ddd79ae52640fddd15091b34</div><div>  )</div></div><div>--------------------</div><div><div>#</div><div># Dicom Classes</div><div>#</div><div><br></div><div>vtk_fetch_module(vtkDICOM</div><div>  "Dicom classes and utilities"</div><div>  GIT_REPOSITORY <a href="https://github.com/dgobbi/vtk-dicom" target="_blank">https://github.com/dgobbi/vtk-dicom</a></div><div>  # vtk-dicom tag v0.7.1 (Nov 16, 2015)</div><div>  GIT_TAG f51f08a74d82d620850a39be34e11ab1fb009a19</div><div>  )</div></div><div><br></div><div><br></div><div>Any suggestions on how to fix this error would be greatly appreciated. Thanks in advance.</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">when the rich wage war, it's the poor who die<br></div></div></div></div>
</div>