visual studio 2017 - CMake error: ItkVtkGlue -
i built vtk-8.0.0
(using msvc2017_64
) , itk-4.12.0
(using msvc2017_64
). during itk-build below:
1) building vtk (cmake3.9.0
)
2) building itk (cmake3.9.0): module_itkvtkglue
+ vtk_dir path c:\vtk\8.0.0\build\msvc2017_64
3) compiling vtk using msvc2017 (in release mode)
4) create new environment variable vtk_dir
value c:\vtk\8.0.0\build\msvc2017_64
5) add path: %vtk_dir%\bin\release
6) compiling itk using msvc2017 (in release mode)
7) creating new environment variable itk_dir
value c:\itk\4.12.0\build\msvc2017_64
8) add path: %itk_dir%\bin\release
and now, want build , compile simple project link below: https://itk.org/wiki/itk/examples/io/imagetovtkimagefilter
however, can't configure project getting error below in cmake:
*************************************************************** cmake error @ c:/itk/4.12.0/build/msvc2017_64/lib/cmake/itk-4.12/modules/itkvtkglue.cmake:14 (set): syntax error in cmake code @ c:/itk/4.12.0/build/msvc2017_64/lib/cmake/itk-4.12/modules/itkvtkglue.cmake:14 when parsing string c:\vtk\8.0.0\build\msvc2017_64 invalid escape sequence \v call stack (most recent call first): c:/itk/4.12.0/src/cmake/itkmoduleapi.cmake:54 (include) c:/itk/4.12.0/src/cmake/itkmoduleapi.cmake:26 (itk_module_load) c:/itk/4.12.0/src/cmake/itkmoduleapi.cmake:84 (_itk_module_config_recurse) c:/itk/4.12.0/build/msvc2017_64/itkconfig.cmake:74 (itk_module_config) cmakelists.txt:6 (find_package) configuring incomplete, errors occurred! see "c:/new_dev/tests/imagetovtkimagefilter/build/cmakefiles/cmakeoutput.log". ***************************************************************
to solve problem, @ first, tried add entry itkvtkglue
path same error achieved. then, created itkvtkglue.lib
individually , added added new environment variable itkvtkglue_dir
value c:\itkvtkglue\build\release
, added path , again creating entry itkvtkglue
, got same error.
i appreciate help... looking forward advice ...
the issue went vtk_dir
defined "\". first, tried replace "\" in environment variable vtk_dir
"/" resulted in same error. defined vtk_dir entry in cmake , path "/" dedicated, again same error. in fact problem due itkvtkglue.cmake
. vtk_dir
set "\" , manually replaced them "/", , itk+vtk
goes well...
Comments
Post a Comment