Unsolved Error Building On RedHat - #include <X11/extensions/scrnsaver.h> Not Found
-
Hello,
Running into trouble when trying to compile a project on Linux ( RedHat 7.3 ) with the following error:
fatal error: X11/extensions/scrnsaver.h: No such file or directory #include <X11/extensions/scrnsaver.h>
I've tried installing various things like libXScrnSaver but they either don't help or say they already exist.
Any ideas?
-
Hi,
Can you explain how this error relates to Qt ?
-
@SGaist - I'm running Qt Creator on RedHat 7.3, trying to compile a Qt project that would otherwise compile on the previous version of Linux I was using.
Looking for assistance with a problem I'm encountering on a Qt forum where others may have run into the same issue.
-
@brixel Hello!
Well, do you have a file /usr/include/X11/extensions/scrnsaver.h ?
I don't know about Red Hat, but for Ubuntu you have to install libxss-dev to be able to develop your own programs using this extension.
-
@aha_1980 - The file isn't there. I did try installing that and others, for whatever reason it seems like it doesn't support the screen saver and won't install it.
-
Do you have
libX11-devel
installed ? -
@SGaist - Yes, that has been installed. I just ran across a piece of information that looks like for the Developer Enterprise edition of RedHat it seems the screen saver is not supported, so that may be why it's not adding that to the extensions in my attempts. That will be unfortunate if that is the case.
-
It seems this file is included in
libXScrnSaver-devel
, e.g. https://centos.pkgs.org/7/centos-x86_64/libXScrnSaver-devel-1.2.2-6.1.el7.x86_64.rpm.html or# dnf provides '*/scrnsaver.h' Letzte Prüfung auf abgelaufene Metadaten: vor 0:11:23 am Mi 20 Mär 2019 13:44:59 CET. nx-proto-devel-3.5.99.17-1.fc29.i686 : Include files for NX development Quelle : updates Übereinstimmung von: Dateiname : /usr/include/nx-X11/extensions/scrnsaver.h nx-proto-devel-3.5.99.17-1.fc29.x86_64 : Include files for NX development Quelle : updates Übereinstimmung von: Dateiname : /usr/include/nx-X11/extensions/scrnsaver.h libXScrnSaver-devel-1.2.3-2.fc29.i686 : X.Org X11 libXScrnSaver development package Quelle : fedora Übereinstimmung von: Dateiname : /usr/include/X11/extensions/scrnsaver.h libXScrnSaver-devel-1.2.3-2.fc29.x86_64 : X.Org X11 libXScrnSaver development package Quelle : fedora Übereinstimmung von: Dateiname : /usr/include/X11/extensions/scrnsaver.h nx-proto-devel-3.5.99.16-2.fc29.i686 : Include files for NX development Quelle : fedora Übereinstimmung von: Dateiname : /usr/include/nx-X11/extensions/scrnsaver.h nx-proto-devel-3.5.99.16-2.fc29.x86_64 : Include files for NX development Quelle : fedora Übereinstimmung von: Dateiname : /usr/include/nx-X11/extensions/scrnsaver.h