[vtkusers] Error in CMake after turning on MPI

Leo van Ruijven LvRuijven at gmx.com
Wed Sep 18 04:44:05 EDT 2013


I was able to compile VTK 6.0.0 successfully using Visual Studio 8 2005 Win64 and the default settings in CMake. Next I installed openMPI and in CMake I enabled VTK_Group_MPI in the group VTK. After that CMake reported:

Could NOT find MPI_C (missing: MPI_C_LIBRARIES)
Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES)

CMake Error at vtkBin/lib/cmake/vtk-6.0/Modules/vtkParallelMPI.cmake:4 (set):
 Syntax error in cmake code at
 C:/Users/LeovR/VTK6.0.0/vtkBin/lib/cmake/vtk-6.0/Modules/vtkParallelMPI.cmake:4
 when parsing string
 C:\Program;Files\OpenMPI_v1.6.2-x64/include""
 Invalid escape sequence \P
Call Stack (most recent call first):
 CMake/vtkModuleAPI.cmake:36 (include)
 CMake/vtkModuleAPI.cmake:9 (vtk_module_load)
 CMake/vtkModuleAPI.cmake:112 (_vtk_module_config_recurse)
 CMake/vtkModuleMacros.cmake:102 (vtk_module_config)
 CMake/vtkModuleMacros.cmake:425 (vtk_module_impl)
 Filters/ParallelGeometry/CMakeLists.txt:13 (vtk_module_library)

Line 4 of the file vtkParallelMPI.cmake states:

set(vtkParallelMPI_INCLUDE_DIRS "C:/Users/LeovR/VTK6.0.0/vtkBin/Parallel/MPI;C:/Users/LeovR/VTK6.0.0/Parallel/MPI;C:/Users/LeovR/VTK6.0.0/vtkBin/Parallel/MPI;C:/Users/LeovR/VTK6.0.0/Parallel/MPI;"C:\Program;Files\OpenMPI_v1.6.2-x64/include"")

Clearly, the MPI files are included with the wrong slashes. I tried to correct the lines manually, but CMake replaces the files every time I press Configure. Is there some other way to correct this problem?#

regards, Leo.

L van Ruijven
Functional Anatomy (ACTA)
Gustav Mahlerlaan 3004
1081 LA Amsterdam
Netherlands
Ph. +31(0)20-5980852 (out of office on friday)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130918/d027beaf/attachment.htm>


More information about the vtkusers mailing list