在 Ubuntu 上安装 VTK 的问题

在 Ubuntu 上安装 VTK 的问题

当我尝试使用命令安装 VTK 时

ccmake .

我收到这些错误:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
 Please set them or make sure they are set and tested correctly in the CMake files:
 OPENGL_INCLUDE_DIR (ADVANCED)
    used as include directory in directory /home/me/Masast/VTK
    used as include directory in directory /home/me/Masast/VTK/Wrapping
    used as include directory in directory /home/me/Masast/VTK/Utilities
    used as include directory in directory /home/me/Masast/VTK/Utilities/kwsys
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkzlib
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkhdf5
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkhdf5/src
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkjpeg
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkpng
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtktiff
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkexpat
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkfreetype
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtklibxml2
    used as include directory in directory /home/me/Masast/VTK/Utilities/DICOMParser
    used as include directory in directory /home/me/Masast/VTK/Utilities/MaterialLibrary
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtklibproj4
    used as include directory in directory /home/me/Masast/VTK/Utilities/mrmpi
    used as include directory in directory /home/me/Masast/VTK/Utilities/mrmpi/mpistubs
    used as include directory in directory /home/me/Masast/VTK/Utilities/mrmpi/src
    used as include directory in directory /home/me/Masast/VTK/Utilities/verdict
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtknetcdf
    used as include directory in directory /home/me/Masast/VTK/Utilities/vtkmetaio
.
.
.

我使用土耳其语的 Ubuntu,因此我的桌面目录名为“Masaüstü”。正如您在错误中看到的那样,ccmake 将其用作“Masast”。我的看法是,这导致了问题,但我不确定。是吗?或者问题源于其他原因?我该如何解决这个问题并成功安装 VTK?

编辑 我将目录移至主目录,但问题仍然存在。

CMake Error at CMake/vtkWrapPythonSIP.cmake:85 (MESSAGE):
   SIP_EXECUTABLE not set.
 Call Stack (most recent call first):
   CMake/KitCommonPythonWrapBlock.cmake:24 (VTK_CREATE_SIP_MODULE)
   CMake/KitCommonBlock.cmake:52 (INCLUDE)
   Common/CMakeLists.txt:555 (INCLUDE)



 CMake Error at CMake/vtkWrapPythonSIP.cmake:85 (MESSAGE):
   SIP_EXECUTABLE not set.
 Call Stack (most recent call first):
   CMake/KitCommonPythonWrapBlock.cmake:24 (VTK_CREATE_SIP_MODULE)
   CMake/KitCommonBlock.cmake:52 (INCLUDE)
   Filtering/CMakeLists.txt:396 (INCLUDE)



 CMake Error at CMake/vtkWrapPythonSIP.cmake:85 (MESSAGE):
   SIP_EXECUTABLE not set.
 Call Stack (most recent call first):
   CMake/KitCommonPythonWrapBlock.cmake:24 (VTK_CREATE_SIP_MODULE)
   CMake/KitCommonBlock.cmake:52 (INCLUDE)
   Imaging/CMakeLists.txt:184 (INCLUDE)



 CMake Error at CMake/vtkWrapPythonSIP.cmake:85 (MESSAGE):
   SIP_EXECUTABLE not set.
 Call Stack (most recent call first):
   CMake/KitCommonPythonWrapBlock.cmake:24 (VTK_CREATE_SIP_MODULE)
   CMake/KitCommonBlock.cmake:52 (INCLUDE)
   Graphics/CMakeLists.txt:363 (INCLUDE)



 CMake Error at CMake/vtkWrapPythonSIP.cmake:85 (MESSAGE):
   SIP_EXECUTABLE not set.
 Call Stack (most recent call first):
   CMake/KitCommonPythonWrapBlock.cmake:24 (VTK_CREATE_SIP_MODULE)
   CMake/KitCommonBlock.cmake:52 (INCLUDE)
   GenericFiltering/CMakeLists.txt:31 (INCLUDE)



 CMake Error at CMake/vtkWrapPythonSIP.cmake:85 (MESSAGE):
   SIP_EXECUTABLE not set.
 Call Stack (most recent call first):
   CMake/KitCommonPythonWrapBlock.cmake:24 (VTK_CREATE_SIP_MODULE)
   CMake/KitCommonBlock.cmake:52 (INCLUDE)
   IO/CMakeLists.txt:457 (INCLUDE)

答案1

尝试:

sudo apt-get install python-sip-dev

相关内容