Hello.
I’m trying to build paraview locally, preferrably using external libs rather than bundled. I got as far as:
-- Could NOT find LibHaru (missing: LibHaru_LIBRARY) (found suitable version "2.4.0-dev", minimum required is "2.4.0")
CMake Error at VTK/CMake/vtkModule.cmake:4579 (message):
Could not find the LibHaru external dependency.
Call Stack (most recent call first):
VTK/CMake/vtkModule.cmake:5173 (vtk_module_find_package)
VTK/CMake/vtkModule.cmake:5044 (vtk_module_third_party_external)
VTK/ThirdParty/libharu/CMakeLists.txt:1 (vtk_module_third_party)
with the cmake command:
cmake -GNinja -DPARAVIEW_USE_PYTHON=ON -DPARAVIEW_USE_MPI=ON \
-DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DPARAVIEW_BUILD_WITH_EXTERNAL=ON \
-Dutf8cpp_INCLUDE_DIR=/usr/include/vtk-9.2/vtkutf8 \
-DExprTk_INCLUDE_DIR=/usr/include/vtk-9.2/vtkexprtk \
-DLibHaru_INCLUDE_DIR=/usr/include/vtk-9.2/vtklibharu/include \
-DCMAKE_BUILD_TYPE=Release ..
At this point, I’m not sure how to proceed. The libharu include directory looks like this:
%zsh> ls /usr/include/vtk-9.2/vtklibharu/include
hpdf.h hpdf_config.h hpdf_encrypt.h hpdf_font.h hpdf_list.h hpdf_pages.h hpdf_utils.h
hpdf_3dmeasure.h hpdf_consts.h hpdf_encryptdict.h hpdf_fontdef.h hpdf_mmgr.h hpdf_pdfa.h hpdf_version.h
hpdf_annotation.h hpdf_destination.h hpdf_error.h hpdf_gstate.h hpdf_objects.h hpdf_streams.h vtk_haru_mangle.h
hpdf_catalog.h hpdf_doc.h hpdf_exdata.h hpdf_image.h hpdf_outline.h hpdf_types.h
hpdf_conf.h hpdf_encoder.h hpdf_ext_gstate.h hpdf_info.h hpdf_page_label.h hpdf_u3d.h
There is nothing else in /usr/include/vtk-9.2/vtklibharu/
and the .so file is called /usr/lib/libvtklibharu-9.2.so
.
My questions are:
- Is the libharu dependency strictly necessary? Can this be disabled?
- Can I get a more verbose error out of cmake somehow?
- Is it possible to use the
ThirdParty
libharu only, while still using external dependencies for the rest?
Thanks