Hi @tomy!
ROOT uses the standard find_package to look for the required X11 components:
- root/cmake/modules/SearchInstalledSoftware.cmake at v6-26-00-patches · root-project/root · GitHub
- FindX11 — CMake 3.30.0 Documentation
- find_package — CMake 3.30.0 Documentation
So most likely this is not a ROOT problem but an issue with your environment.
You should make sure that you can get this simple CMake example to work (create a directory, put this snippet in CMakeLists.txt and run cmake .).
cmake_minimum_required(VERSION 3.5)
project(test)
find_package(X11 REQUIRED)
# All these need to be true for ROOT to compile
message(STATUS ${X11_FOUND})
message(STATUS ${X11_Xpm_FOUND})
message(STATUS ${X11_Xft_FOUND})
message(STATUS ${X11_Xext_FOUND})
In general we strongly advise against such an environment where you install system packages outside the system to circumvent the need to sudo.
Have you asked your server administrator to install the required dependencies for building ROOT? Especially if you are in a particle physics institute, I’m sure they will have no problem installing the dependencies of ROOT with with system package manager. That would save everyone a lot of headache.
Cheers,
Jonas