# CMake Error: The Xinerama library and headers were not found

**URL:** <https://discourse.glfw.org/t/cmake-error-the-xinerama-library-and-headers-were-not-found/1100>\
**Category:** support\
**Created:** [March 29, 2018, 5:48am UTC](https://discourse.glfw.org/t/cmake-error-the-xinerama-library-and-headers-were-not-found/1100 "2018-03-29T05:48:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynl7130](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@lynl7130](https://discourse.glfw.org/u/lynl7130)\
**Post date:** [March 29, 2018, 5:48am UTC](https://discourse.glfw.org/t/cmake-error-the-xinerama-library-and-headers-were-not-found/1100/1 "2018-03-29T05:48:31Z")

</div>

(ubuntu14.04+ssh+VMware)

I’ve just downloaded glfw-3.2.1 and tried to do:  
cmake … -DCMAKE\_INSTALL\_PREFIX=. -DBUILD\_SHARED\_LIBS=ON

But all I got was  
CMake Error at CMakeLists.txt:231 (message):  
The Xinerama library and headers were not found

I installed sdl2 and libxinerama via anaconda by:

conda install -c conda-forge sdl2  
conda install -c conda-forge xorg-xineramaproto  
conda install -c anaconda libxinerama-devel-cos6-x86\_64

How could I fix this?

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [March 29, 2018, 4:40pm UTC](https://discourse.glfw.org/t/cmake-error-the-xinerama-library-and-headers-were-not-found/1100/2 "2018-03-29T16:40:25Z")

</div>

I’m not familiar with conda as a package manager, but the main package for [compiling GLFW on Ubuntu for X11](http://www.glfw.org/docs/latest/compile.html#compile_deps_x11) is normally `xorg-dev`.

---

<div class="post-metadata">

**Author:** ![lynl7130](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@lynl7130](https://discourse.glfw.org/u/lynl7130)\
**Post date:** [March 29, 2018, 8:36pm UTC](https://discourse.glfw.org/t/cmake-error-the-xinerama-library-and-headers-were-not-found/1100/3 "2018-03-29T20:36:54Z")

</div>

Thanks a lot for your reply!!

I installed xorg-dev by sudo apt-get install xorg-dev, but it still gives the same error…

Does this error come from using Virtual Machine??

---

<div class="post-metadata">

**Author:** ![mmozeiko](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/mmozeiko/32/29_2.png) [@mmozeiko](https://discourse.glfw.org/u/mmozeiko)\
**Post date:** [March 29, 2018, 8:53pm UTC](https://discourse.glfw.org/t/cmake-error-the-xinerama-library-and-headers-were-not-found/1100/4 "2018-03-29T20:53:52Z")

</div>

This has nothing to do with Virtual Machine.

This is an issue with your installed packages on your Linux. You need to figure out how to install correct xinerama development libraries so cmake can find them. I believe it is doing it with help of pkg-config.

No idea about conda, but try installing libxinerama-dev with apt. It should provide necessary development files for xinerama: [https://packages.ubuntu.com/trusty/amd64/libxinerama-dev/filelist](https://packages.ubuntu.com/trusty/amd64/libxinerama-dev/filelist)

---

<div class="post-metadata">

**Author:** ![lynl7130](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@lynl7130](https://discourse.glfw.org/u/lynl7130)\
**Post date:** [March 29, 2018, 9:44pm UTC](https://discourse.glfw.org/t/cmake-error-the-xinerama-library-and-headers-were-not-found/1100/5 "2018-03-29T21:44:09Z")

</div>

Thanks a lot!!

I did sudo apt-get install libxinerama-dev but it still does not work??

But I made it by conda install …
