On Tue, Nov 20, 2018 at 3:32 PM Alex Kaiser <adkai...@gmail.com> wrote:

> 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 >>>
>

It's possible that you built VTK correctly (i.e. with the correct MPI
settings), but linking failed for some other reason. Off the top of my
head, I'd suspect that it's because you are using VTK 8.x and we haven't
tested building libmesh with this version yet...  If you look through the
config.log file that gets written, you should be able to find the VTK test
program which fails to link, and the error diagnostic from the
compiler/linker, which would give us a better idea of what went wrong.

-- 
John

_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to