Determining if the XRRNotifyEvent exist failed with the following output: Change Dir: /var/uhubuild/work/compile/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec1035616107/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec1035616107.dir/build.make CMakeFiles/cmTryCompileExec1035616107.dir/build make[1]: Entering directory `/var/uhubuild/work/compile/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /var/uhubuild/work/compile/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1035616107.dir/CheckSymbolExists.c.o /usr/lib/ccache/cc -o CMakeFiles/cmTryCompileExec1035616107.dir/CheckSymbolExists.c.o -c /var/uhubuild/work/compile/CMakeFiles/CMakeTmp/CheckSymbolExists.c /var/uhubuild/work/compile/CMakeFiles/CMakeTmp/CheckSymbolExists.c:4:35: fatal error: X11/extensions/Xrandr.h: No such file or directory #include ^ compilation terminated. make[1]: *** [CMakeFiles/cmTryCompileExec1035616107.dir/CheckSymbolExists.c.o] Error 1 make[1]: Leaving directory `/var/uhubuild/work/compile/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec1035616107/fast] Error 2 File /var/uhubuild/work/compile/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include #include #include int main(int argc, char** argv) { (void)argv; #ifndef XRRNotifyEvent return ((int*)(&XRRNotifyEvent))[argc]; #else (void)argc; return 0; #endif } Determining if the function XRRQueryExtension exists in the Xrandr failed with the following output: Change Dir: /var/uhubuild/work/compile/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make "cmTryCompileExec4261721886/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec4261721886.dir/build.make CMakeFiles/cmTryCompileExec4261721886.dir/build make[1]: Entering directory `/var/uhubuild/work/compile/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /var/uhubuild/work/compile/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec4261721886.dir/CheckFunctionExists.c.o /usr/lib/ccache/cc -DCHECK_FUNCTION_EXISTS=XRRQueryExtension -o CMakeFiles/cmTryCompileExec4261721886.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec4261721886 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4261721886.dir/link.txt --verbose=1 /usr/lib/ccache/cc -DCHECK_FUNCTION_EXISTS=XRRQueryExtension CMakeFiles/cmTryCompileExec4261721886.dir/CheckFunctionExists.c.o -o cmTryCompileExec4261721886 -rdynamic -lXrandr /usr/bin/ld: cannot find -lXrandr collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec4261721886] Error 1 make[1]: Leaving directory `/var/uhubuild/work/compile/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec4261721886/fast] Error 2