Failling to build ParaView-Superbuild

Hi, I am trying to build ParaView-Superbuild from scratch. I want to install two plugins, (i) superquadrics to render and visualize sphero cylinders [MercuryDPM: Visualising Superquadrics in Paraview], and (ii) I want to enable Virtual Reality using OpenVR (note that OpenXR lost support last year, 2024).

Before even doing anything of this fancy build, I tried the default build to see how far I can get with my Ubuntu 24.04.2 LTS. Well, I generate the MakeFile but it fails to build. Let me share the error that pops out.

CMake Error at /home/ar-valdez/anaconda3/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find X11 (missing: X11_X11_LIB) Call Stack (most recent call first): /home/ar-valdez/anaconda3/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) VTK/CMake/patches/99/FindX11.cmake:665 (find_package_handle_standard_args) VTK/ThirdParty/glad/vtkglad/CMakeLists.txt:51 (find_package) -- Configuring incomplete, errors occurred! CMake Error at /home/ar-valdez/paraview-superbuild/build/superbuild/sb-paraview-configure.cmake:48 (message): Failed with exit code 1
The curious fact is that I DO have installed that X11 library…
libx11-dev is already the newest version (2:1.8.7-1build1). libx11-dev set to manually installed.

Is anyone facing this problem too? All help and comments are welcome…

anaconda3/share/cmake-3.28

Can you try configuring superbuild/paraview/build with --debug-find? I suspect that Anaconda might not be searching the system by default. Possible solutions (in no particular order):

  • download a separate CMake and use it (running .gitlab/ci/cmake.sh from the top of the repo will drop a suitable one to .gitlab/cmake/bin/cmake)
  • install X11 libraries in Anaconda
  • use an apt install cmake

Same mistake occurs, even deactivating (base) doing conda deactivate, I can confirm that cmake is installed version 3.28.3

Can you get the relevant X11 output from configuring ParaView with the --debug-find flag?

it is caused by anaconda: Could NOT find X11 (missing: X11_X11_LIB) · Issue #1957 · glfw/glfw · GitHub

Well, what can I say. I “deactivated conda” conda deactivate The mistake persists after generating the makefile…and hitting make -j10… Sorry this should be for @mwestphal… What can I do, beyond deactivating conda? Thank you.-

Hi Thanks for the response. I did your advice the terminal output is kind long to paste it here. Should I be looking for anything in particular? I can send it by email if you want to check the log…

If you can clip it to the X11-searching bits, that should fit here. Or on a pastebin of your choice.

Generally you need a clean build (nuke install/ and superbuild/), not just a clean configure for a clean superbuild.

Hello, this is my output file. Look at it, I get the same output if I do conda deactivate.Thanks Ben.

out.log (86.2 KB)

That’s the output of the superbuild’s configure. The output of ParaView’s configure with the extra debugging is required (this is where X11 is searched for).

I suppose you could also stick a find_package(X11) in the superbuild’s cmake and configure with it and --find-debug…probably a lot less noise there.

Not sure how to ask cmake to find X11. How should the terminal command look like?

>> ccmake --find-debug find_package(X11) ..? Thanks.-

Edit the superbuild’s top-level CMakeLists.txt to have find_package(VTK) and then configure with the --find-debug flag.