Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error Building On RedHat - #include <X11/extensions/scrnsaver.h> Not Found
Forum Updated to NodeBB v4.3 + New Features

Error Building On RedHat - #include <X11/extensions/scrnsaver.h> Not Found

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 4.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • brixelB Offline
    brixelB Offline
    brixel
    wrote on last edited by brixel
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you explain how this error relates to Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      brixelB 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Can you explain how this error relates to Qt ?

        brixelB Offline
        brixelB Offline
        brixel
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          Qt has to stay free or it will die.

          brixelB 1 Reply Last reply
          1
          • aha_1980A aha_1980

            @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.

            brixelB Offline
            brixelB Offline
            brixel
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you have libX11-devel installed ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              brixelB 1 Reply Last reply
              0
              • SGaistS SGaist

                Do you have libX11-devel installed ?

                brixelB Offline
                brixelB Offline
                brixel
                wrote on last edited by
                #7

                @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.

                1 Reply Last reply
                0
                • Y Offline
                  Y Offline
                  yalamerde
                  wrote on last edited by
                  #8

                  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
                  
                  
                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved