[vtk-developers] CMake fails with build type "None" on Ubuntu 18.04

Elvis Stansvik elvis.stansvik at orexplore.com
Fri Jan 11 18:37:37 EST 2019


Den fre 11 jan. 2019 kl 22:55 skrev Ben Boeckel <ben.boeckel at kitware.com>:
>
> On Fri, Jan 11, 2019 at 22:39:21 +0100, Elvis Stansvik wrote:
> > Den fre 11 jan. 2019 kl 22:33 skrev Elvis Stansvik
> > > Hm, I realized I accidentally enabled testing when updating the flags.
> > > When I corrected it to -DVTK_BUILD_TESTING=OFF, the CMake got much
> > > further. Strange...
>
> `VTK_BUILD_TESTING=ON` says "build all testing" and some module's tests
> require IOParallel. But, IOParallel is gated by `VTK_USE_MPI` and
> forcefully disabled without it, so it errors saying a required module
> needs a module not allowed to build. There is also
> `VTK_BUILD_TESTING=WANT` which builds as much testing as it can without
> the disabled modules. In the long run, making these things
> `TEST_OPTIONAL_DEPENDS` instead and skipping the relevant individual
> tests is better.

Ah, thanks for the thorough clarification.

>
> > > Anyway, I'll probably get this working now.
> >
> > The golden line for me:
> >
> > cmake \
> >     -DCMAKE_INSTALL_PREFIX=/home/estan/orexplore/VTK-inst \
> >     -DCMAKE_INSTALL_RPATH=/home/estan/orexplore/VTK-inst/lib \
> >     -DVTK_GROUP_ENABLE_Qt=YES \
> >     -DVTK_GROUP_ENABLE_Imaging=YES \
> >     -DVTK_GROUP_ENABLE_Views=YES \
> >     -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=YES \
> >     -DVTK_BUILD_TESTING=OFF \
> >     -DVTK_USE_EXTERNAL=YES \
> >     -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=OFF \
> >     -DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF \
> >     -DCMAKE_BUILD_TYPE=None \
> >     ../VTK
> >
> > I had made a bunch of mistakes earlier. This line worked fine, and
> > gl2ps and libharu were the only ones I needed to use the internal ones
> > (due to slightly too old versions in Ubuntu 18.04).
>
> These two are actually patched for API changes and have pending PRs for
> them (mentioned in the CMake code), so upstream releases aren't ready
> anyways.

Ah, OK. Then I really am using as much from the system as I can :)

Elvis

>
> --Ben


More information about the vtk-developers mailing list