[vtk-developers] CMake fails with build type "None" on Ubuntu 18.04
Elvis Stansvik
elvis.stansvik at orexplore.com
Fri Jan 11 16:30:03 EST 2019
Den fre 11 jan. 2019 kl 22:04 skrev Ben Boeckel <ben.boeckel at kitware.com>:
>
> On Fri, Jan 11, 2019 at 21:49:31 +0100, Elvis Stansvik wrote:
> > Den fre 11 jan. 2019 kl 21:28 skrev Ben Boeckel <ben.boeckel at kitware.com>:
> > > I probably missed nop-ing out a section of CMake. The code to neuter is
> > > here:
> > >
> > > https://gitlab.kitware.com/third-party/eigen/blob/for/vtk/CMakeLists.txt#L24
> >
> > Yep, I know I can fix it by just removing that check (that's what the
> > Debian package does:
> > https://salsa.debian.org/science-team/eigen3/blob/master/debian/patches/02_remove_buildtype_check.patch).
> >
> > I was just wondering how come the old build I did worked? Why didn't
> > it come across those same lines and bail out?
>
> Hmm, not sure. That block has always been active AFAICS. Maybe `eigen`
> wasn't being built before?
Now following your suggestions with an amended CMake line:
[estan at newton VTK-build]$ 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=ON \
> -DVTK_USE_EXTERNAL=YES \
> -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=ON \
> -DCMAKE_BUILD_TYPE=None \
> ../VTK
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE
-- Performing Test HAVE_GCC_ERROR_RETURN_TYPE - Success
-- Performing Test Support for 64 bit file systems
-- Performing Test Support for 64 bit file systems - Success
CMake Error at CMake/vtkModule.cmake:811 (message):
The VTK::IOExportGL2PS module requires the disabled module VTK::IOParallel.
Call Stack (most recent call first):
CMakeLists.txt:197 (vtk_module_scan)
-- Configuring incomplete, errors occurred!
See also "/home/estan/orexplore/VTK-build/CMakeFiles/CMakeOutput.log".
[estan at newton VTK-build]$
I think I'm now past the trouble with eigen3, due to using the correct
VTK_USE_EXTERNAL (so it uses the system eigen), thanks!
But how about this error above? How can I find out why it disabled the
IOParallel module?
Elvis
>
> --Ben
More information about the vtk-developers
mailing list