VTK 9.0.0 Build Config Failure with Python support error.
Mac OSX 10.15.5, Python3.8.3
Build fails with:
cmake version 3.18.20200611-g566b743 CMake suite maintained and supported by Kitware (kitware.com/cmake). -- The C compiler identification is AppleClang 126.96.36.19930032 -- The CXX compiler identification is AppleClang 188.8.131.5230032 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test Support for 64 bit file systems -- Performing Test Support for 64 bit file systems - Success CMake Error at CMake/vtkModuleWrapPython.cmake:67 (message): Only Python2 and Python3 are supported right now. Call Stack (most recent call first): CMakeLists.txt:272 (vtk_module_python_default_destination) -- Configuring incomplete, errors occurred! See also "/Users/chrisgmorton/fusion/build/VTK-9.0.0/build/CMakeFiles/CMakeOutput.log". make: *** No targets specified and no makefile found. Stop.
cmake configuration is using:
$CMAKE --version $CMAKE -DCMAKE_INSTALL_PREFIX:PATH=$PRODROOT \ -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DVTK_QT_VERSION:STRING=5 \ -DQT_QMAKE_EXECUTABLE:PATH=$PRODROOT/bin/qmake \ -DVTK_Group_Qt:BOOL=ON \ -DCMAKE_PREFIX_PATH:PATH=$CMAKE \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DVTK_PYTHON_VERSION:STRING=3.8.3 \ -DPYTHON_EXECUTABLE:FILEPATH=$PRODROOT/bin/python3.8 \ -DPYTHON_INCLUDE_DIR:PATH=$PRODROOT/include/python3.8 \ -DPYTHON_LIBRARY:FILEPATH=$PYTHONLIB \ -DOPENGL_INCLUDE_DIR:PATH=$OPENGL_INCLUDE_DIR \ -DVTK_WRAP_PYTHON:BOOL=ON .. make -j$CORES
Where $PRODROOT is the prefix where my python installation is located as well as QT5 and HDF5. Compilers supplied by Apple begin used from /usr/bin. As you can see from the output, I grabbed a daily snapshot of the latest CMAKE release with the hope of resolving this issue.
Builds perfectly with VTK-8.2.0 and the 0001-Compatibility-for-Python-3.8 patch.
If you can suggest a workaround so I can start to test with the 9.0.0 release, that would be helpful.