Installing VTK in Ubuntu 18.04

Hi @winter_mouse ,

apt install libproj-dev

In the future, please open your own topic.

I am facing the following problem. Can Anyone please help? Thank you.


Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
  FILE STRINGS file "/usr/include/python3.6/patchlevel.h" cannot be read.
Call Stack (most recent call first):
  CMake/vtkWrapPython.cmake:167 (find_package)
  Utilities/Python/CMakeLists.txt:4 (include)


CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
  FILE STRINGS file "/usr/include/python3.6/patchlevel.h" cannot be read.
Call Stack (most recent call first):
  CMake/vtkPythonWrapping.cmake:6 (find_package)
  Wrapping/PythonCore/CMakeLists.txt:2 (include)


CMake Warning at CMake/vtkPythonWrapping.cmake:14 (message):
  Python library .  mismatches python 3.10.
Call Stack (most recent call first):
  Wrapping/PythonCore/CMakeLists.txt:2 (include)


CMake Deprecation Warning at ThirdParty/verdict/vtkverdict/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find LibPROJ (missing: LibPROJ_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindLibPROJ.cmake:43 (find_package_handle_standard_args)
  CMake/vtkModuleMacros.cmake:891 (find_package)
  ThirdParty/libproj/CMakeLists.txt:1 (vtk_module_third_party)


-- Configuring incomplete, errors occurred!
See also "/home/slm_lab/vtk/build/CMakeFiles/CMakeOutput.log".
See also "/home/slm_lab/vtk/build/CMakeFiles/CMakeError.log".

Hi @YMAkib ,

Read my message above

Excuse me, after i enter this line

make -j$(($(nproc) - 1))

i get this error. Please give me some advice. Thank you very much

/home/hue/hue/software/vtk/Rendering/Qt/vtkQtLabelRenderStrategy.cxx: In member function ‘virtual void vtkQtLabelRenderStrategy::ComputeLabelBounds(vtkTextProperty*, vtkUnicodeString, double*)’:
/home/shinichihue/shinichihue/software/vtk/Rendering/Qt/vtkQtLabelRenderStrategy.cxx:229:18: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
QPainterPath path;
^~~~

Which version of VTK are you using? vtkUnicodeString no longer exists.

thank you for your reply. it happens when i install version 8.2.0