# CMake Error - Could Not Find X11 when trying trying to install ROOT 6.16/00

**URL:** <https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587>\
**Category:** Newbie\
**Created:** [June 14, 2019, 12:51am UTC](https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587 "2019-06-14T00:51:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jack42164](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/bcef8e/32.png) [@jack42164](https://root-forum.cern.ch/u/jack42164)\
**Post date:** [June 14, 2019, 12:51am UTC](https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587/1 "2019-06-14T00:51:37Z")

</div>

Hello!

I’m having some issues trying to install ROOT onto my computer. My OS is Linux Mint 18.2.

When I create the build directory obj, enter obj, and then execute cmake … the terminal works for a bit before saying:

– Looking for X11  
CMake Error at /home/jack/cmake-3.14.5-Linux-x86\_64/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137 (message):  
Could NOT find X11 (missing: X11\_X11\_INCLUDE\_PATH)  
Call Stack (most recent call first):  
/home/jack/cmake-3.14.5-Linux-x86\_64/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:378 (\_FPHSA\_FAILURE\_MESSAGE)  
/home/jack/cmake-3.14.5-Linux-x86\_64/share/cmake-3.14/Modules/FindX11.cmake:366 (find\_package\_handle\_standard\_args)  
cmake/modules/SearchInstalledSoftware.cmake:9 (\_find\_package)  
cmake/modules/SearchInstalledSoftware.cmake:271 (find\_package)  
CMakeLists.txt:150 (include)

– Configuring incomplete, errors occurred!  
See also “/home/jack/SOFWARE/root-6.16.00/obj/CMakeFiles/CMakeOutput.log”.  
See also “/home/jack/SOFWARE/root-6.16.00/obj/CMakeFiles/CMakeError.log”.

I’ve triple checked to make sure that I have indeed installed all of the necessary prerequisites as outlined by the ROOT website. Could someone help me figure out this issue?

Thank you!

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [June 14, 2019, 6:20am UTC](https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587/2 "2019-06-14T06:20:53Z")

</div>

Do you have development libraries for X11 installed? It seems you have the libraries, but not the headers, therefore the `Could NOT find X11 (missing: X11_X11_INCLUDE_PATH)` message.

---

<div class="post-metadata">

**Author:** ![jack42164](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/bcef8e/32.png) [@jack42164](https://root-forum.cern.ch/u/jack42164)\
**Post date:** [June 14, 2019, 7:07pm UTC](https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587/3 "2019-06-14T19:07:41Z")

</div>

I have these four from the build prerequisites website installed:  
libx11-dev: for usr/include/X11/Xlib.h and for /usr/lib/libX11.so  
libxpm-dev: for /usr/include/X11/xpm.h and for /usr/lib/libXpm.so  
libxft-dev: for /usr/include/X11/Xft/Xft.h and for /usr/lib/libXft.so  
libxext-dev: for /usr/include/X11/extensions/shape.h and for /usr/lib/libXext.so

How would I be able to get the headers?

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [June 17, 2019, 6:36am UTC](https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587/4 "2019-06-17T06:36:41Z")

</div>

I don’t know why it’s not found, then. Maybe it’s your custom CMake that is the problem. Why not use the CMake from the system?
