I am trying to build Parallel version of VTK 8.2 using the following config:
#!/bin/bash
cmake \
-D CMAKE_INSTALL_PREFIX:PATH=/Users/qth20/Utilities/vtk-8.2.0 \
-D CMAKE_INSTALL_NAME_DIR:STRING=/Users/qth20/Utilities/vtk-8.2.0/lib \
-D CMAKE_INSTALL_RPATH:STRING=/Users/qth20/Utilities/vtk-8.2.0/lib \
-D BUILD_SHARED_LIBS:BOOL=ON \
-D CMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
-D BUILD_TESTING:BOOL=OFF \
-D CMAKE_C_COMPILER=mpicc \
-D CMAKE_CXX_COMPILER=mpic++ \
-D VTK_SMP_IMPLEMENTATION_TYPE=OPENMP \
-D Module_vtkFiltersParallelMPI:BOOL=ON \
-D Module_vtkIOMPIParallel:BOOL=ON \
-D Module_vtkIOParallelExodus:BOOL=ON \
-D Module_vtkIOParallelNetCDF:BOOL=ON \
-D Module_vtkParallelMPI:BOOL=ON \
-D Module_vtkRenderingParallel:BOOL=ON \
-D MPIEXEC_MAX_NUMPROCS:STRING=8 \
-D Module_vtkIOMPIImage:BOOL=ON \
-D VTK_Group_MPI:BOOL=ON \
-D VTK_MPI_MAX_NUMPROCS:STRING=8 \
-D CMAKE_BUILD_TYPE:STRING=Release \
..
When trying to build VTK 8.2 on MacOS 10.14, I run into this problem:
[ 17%] Building C object ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/tif_codec.c.o
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/AuthSession.h:32,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:42,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h:43,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h:29,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/IconsCore.h:23,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h:23,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftmac.c:100,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftbase.c:38:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7: error: variably modified 'bytes' at file scope
char bytes[kAuthorizationExternalFormLength];
^~~~~
[ 17%] Building C object ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/tif_color.c.o
Scanning dependencies of target vtklibharu
[ 17%] Building C object ThirdParty/libharu/vtklibharu/src/CMakeFiles/vtklibharu.dir/hpdf_annotation.c.o
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:21,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftmac.c:101,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftbase.c:38:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:391:15: error: expected identifier or '(' before '^' token
typedef void (^CGPathApplyBlock)(const CGPathElement * element);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h:393:53: error: unknown type name 'CGPathApplyBlock'
CG_EXTERN void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock CF_NOESCAPE block)
^~~~~~~~~~~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:14,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h:15,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h:16,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:23,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftmac.c:101,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftbase.c:38:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:103:15: error: expected identifier or '(' before '^' token
typedef bool (^CGPDFArrayApplierBlock)(size_t index,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h:113:5: error: unknown type name 'CGPDFArrayApplierBlock'; did you mean 'CFArrayApplierFunction'?
CGPDFArrayApplierBlock cg_nullable block, void * __nullable info)
^~~~~~~~~~~~~~~~~~~~~~
CFArrayApplierFunction
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h:15,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h:16,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h:23,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h:9,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:11,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftmac.c:101,
from /Users/qth20/Source/VTK-8.2.0/ThirdParty/freetype/vtkfreetype/src/base/ftbase.c:38:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:116:15: error: expected identifier or '(' before '^' token
typedef bool (^CGPDFDictionaryApplierBlock)(const char * key,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h:126:5: error: unknown type name 'CGPDFDictionaryApplierBlock'; did you mean 'CGPDFDictionaryApplierFunction'?
CGPDFDictionaryApplierBlock cg_nullable block, void * __nullable info)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
CGPDFDictionaryApplierFunction
[ 17%] Building C object ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/tif_compress.c.o
Note that the mpicc
and mpic++
was built using gcc-8
and g++-8
on MacOS. Would that be the main reason for this fail?