DevelopmentalImagingMCRI / MCRIBS

Surface version of the M-CRIB atlases.
12 stars 6 forks source link

error configuring VTK #6

Open rosella1234 opened 2 years ago

rosella1234 commented 2 years ago

When trying to build vtk and itk with build.sh script, at the end the following error occurs:

-- Looking for VTK 8 or 7 or 6 [vtkCommonCore;vtkCommonDataModel] (optional)...
-- Looking for VTK 8 or 7 or 6 [vtkCommonCore;vtkCommonDataModel] (optional)... - not found
CMake Error at CMake/Basis/CommonTools.cmake:840 (message):

  Module Common was requested to be build with VTK version 876.  Please
  ensure that the package is installed in a standard system location or set
  DEPENDS_VTK_DIR to the installation prefix (i.e., root directory of the
  installation).  To disable features which require this optional dependency,
  set the WITH_VTK option to OFF and try again.

  The DEPENDS_VTK_DIR variable can alternatively be set to the directory
  containing a VTKConfig.cmake or vtk-config.cmake file.  If no such file
  exists, contact either the developer of this project or CMake BASIS to
  provide a FindVTK.cmake file.

Call Stack (most recent call first):
  CMake/Basis/ProjectTools.cmake:2188 (basis_find_package)
  CMake/Basis/ProjectTools.cmake:2475 (basis_find_packages)
  CMake/Modules/mirtkProjectBegin.cmake:90 (basis_project_begin)
  CMake/Modules/mirtkConfigureModule.cmake:41 (mirtk_project_begin)
  Modules/Common/CMakeLists.txt:20 (mirtk_configure_module)

-- Configuring incomplete, errors occurred!
See also "/home/rosella/MCRIBS/MIRTK/MIRTK-build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

Have you an idea on how to solve it? thanks

chrisadamsonmcri commented 2 years ago

Hmm thats weird. Can you give me a bit more info? What commit version are you using? What operating system are you building under?

rosella1234 commented 2 years ago

The OS features are:

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.9.2009 (Core)
Release:        7.9.2009
Codename:       Core

and I downloaded the code from current github page doing: git clone https://github.com/DevelopmentalImagingMCRI/MCRIBS.git thank you

chrisadamsonmcri commented 2 years ago

So i had a look in a centos7 VM. in build.sh

line 16 change lib64 to lib

Make sure you have the following libraries installed tbb-devel python36-devel libXt-devel boost-devel eigen3-devel

Best of luck