[vtkusers] Configuring VTK Error
Jeanna S.
jeannasheen at gmail.com
Wed Aug 3 20:14:14 EDT 2016
Hello,
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.
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:
CMake Error at
/Users/JJ/Desktop/ITKstuffs/VTK/VTKbin/CMakeFiles/VTKConfig.cmake:68
(include):
include could not find load file:
/Users/JJ/Desktop/ITKstuffs/lib/cmake/vtk-7.0/VTKTargets.cmake
Call Stack (most recent call first):
Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)
CMake/ITKModuleEnablement.cmake:316 (include)
CMakeLists.txt:316 (include)
CMake Error at
/Users/JJ/Desktop/ITKstuffs/VTK/VTKbin/CMakeFiles/VTKConfig.cmake:72
(include):
include could not find load file:
/Users/JJ/Desktop/ITKstuffs/lib/cmake/vtk-7.0/vtkModuleAPI.cmake
Call Stack (most recent call first):
Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)
CMake/ITKModuleEnablement.cmake:316 (include)
CMakeLists.txt:316 (include)
CMake Error at
/Users/JJ/Desktop/ITKstuffs/VTK/VTKbin/CMakeFiles/VTKConfig.cmake:88
(vtk_module_config):
Unknown CMake command "vtk_module_config".
Call Stack (most recent call first):
Modules/Bridge/VtkGlue/itk-module-init.cmake:9 (find_package)
CMake/ITKModuleEnablement.cmake:316 (include)
CMakeLists.txt:316 (include)
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.
Thanks in advance.
On Wed, Aug 3, 2016 at 11:37 AM, Jeanna S. <jeannasheen at gmail.com> wrote:
> Hello,
>
> I am trying to install VTK, but when I configure VTK in CMake, I get the
> following error:
>
> CMake Error: Error in cmake code at
>
> /Volumes/FAT32G/ITKstuffs/VTK/Remote/._PoissonReconstruction.remote.cmake:1:
> Parse error. Expected a command name, got unquoted argument with text "".
>
> CMake Error at Remote/CMakeLists.txt:6 (include):
> include could not find load file:
>
> /Volumes/FAT32G/ITKstuffs/VTK/Remote/._PoissonReconstruction.remote.cmake
>
> CMake Error: Error in cmake code at
> /Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkAddon.remote.cmake:1:
> Parse error. Expected a command name, got unquoted argument with text "".
>
> CMake Error at Remote/CMakeLists.txt:6 (include):
> include could not find load file:
>
> /Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkAddon.remote.cmake
>
> CMake Error: Error in cmake code at
> /Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkDICOM.remote.cmake:1:
> Parse error. Expected a command name, got unquoted argument with text "".
>
> CMake Error at Remote/CMakeLists.txt:6 (include):
> include could not find load file:
>
> /Volumes/FAT32G/ITKstuffs/VTK/Remote/._vtkDICOM.remote.cmake
>
>
> 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:
>
>
> #
>
> # Poisson Reconstruction
>
> #
>
>
> vtk_fetch_module(PoissonReconstruction
>
> "Poisson Surface reconstruction from unorganized points"
>
> GIT_REPOSITORY https://github.com/lorensen/PoissonReconstruction
>
> # July 5, 2015 - first working as a remote module
>
> GIT_TAG a3fdb529774d48329a2e807e542f2fe589060ccb
>
> )
> --------------------
> #
> # vtkAddon
> #
>
> vtk_fetch_module(vtkAddon
> "Slicer additions to vtk"
> GIT_REPOSITORY https://github.com/lorensen/vtkAddon
> GIT_TAG 0d324d0a7afbd2f7ddd79ae52640fddd15091b34
> )
> --------------------
> #
> # Dicom Classes
> #
>
> vtk_fetch_module(vtkDICOM
> "Dicom classes and utilities"
> GIT_REPOSITORY https://github.com/dgobbi/vtk-dicom
> # vtk-dicom tag v0.7.1 (Nov 16, 2015)
> GIT_TAG f51f08a74d82d620850a39be34e11ab1fb009a19
> )
>
>
> Any suggestions on how to fix this error would be greatly appreciated.
> Thanks in advance.
>
--
when the rich wage war, it's the poor who die
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160803/aefa2c96/attachment.html>
More information about the vtkusers
mailing list