From: Alex K. <adk...@gm...> - 2018-11-20 22:32:16
|
Hello, I am trying link libmesh to vtk on osx. What is the best way to install vtk so that this will work? The versions of vtk that come with brew and miniconda seem to fail to include MPI and give the error <<< libMesh requires VTK to be configured with -DVTK_Group_MPI:BOOL=ON >>>. I tried building vtk from source with that flag set, but it did not work. The line passed to cmake is ccmake ../VTK-8.1.2 \ -DCMAKE_BUILD_TYPE=RELEASE \ -DVTK_Group_MPI:BOOL=ON \ -DQT_QMAKE_EXECUTABLE=/opt/Qt5.4.2/5.4/clang_64/bin/qmake When running configure on libmesh I get: checking /usr/local/include/vtk-8.1/vtkConfigure.h usability... yes checking /usr/local/include/vtk-8.1/vtkConfigure.h presence... yes checking for /usr/local/include/vtk-8.1/vtkConfigure.h... yes <<< Linking a test program against the VTK libraries failed >>> <<< libMesh requires VTK to be configured with -DVTK_Group_MPI:BOOL=ON >>> Please let me know what I could try to fix this. I looked at this thread, https://sourceforge.net/p/libmesh/mailman/message/36419977/ , and have run make install. I am passing the following to configure when trying to build libmesh: --enable-vtk --with-vtk-include=/usr/local/include/vtk-8.1 --with-vtk-lib=/usr/local/lib \ Those directories have vtk headers and vtk-related dylibs as expected. Thank you, Alex |