Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. can not set permissions for usr/include/x11 qt
Qt 6.12 LTS is out! See what's new in the release blog

can not set permissions for usr/include/x11 qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 337 Views
  • 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by
    #1

    how to solve it?
    pro.file

    TEMPLATE = app
    CONFIG += console c++17
    CONFIG -= app_bundle
    CONFIG -= qt

    SOURCES +=
    linuxkbhit.cpp
    main.cpp

    HEADERS +=
    linuxkbhit.h
    LIBS += -L/usr/X11/lib -lX11
    QT += x11extras
    LIBS += -lX11

    J 1 Reply Last reply
    0
    • J JacobNovitsky

      how to solve it?
      pro.file

      TEMPLATE = app
      CONFIG += console c++17
      CONFIG -= app_bundle
      CONFIG -= qt

      SOURCES +=
      linuxkbhit.cpp
      main.cpp

      HEADERS +=
      linuxkbhit.h
      LIBS += -L/usr/X11/lib -lX11
      QT += x11extras
      LIBS += -lX11

      J Offline
      J Offline
      JacobNovitsky
      wrote on last edited by
      #2

      @JacobNovitsky 2.png 1.png

      JonBJ 1 Reply Last reply
      0
      • J JacobNovitsky

        @JacobNovitsky 2.png 1.png

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @JacobNovitsky
        You should not be doing anything which would cause to (try to) write/save to /usr/include/... anything --- that's a system area!

        What are you doing to make this happen? You didn't read in /usr/include/X11/Xlib.h (perhaps while following definitions), and then accidentally change it, did you?

        HEADERS +=
        linuxkbhit.h
        

        I might be mistaken, but I would have expected the first line to end with a \, i.e.

        HEADERS += \
        linuxkbhit.h
        

        Similarly

        SOURCES +=
        linuxkbhit.cpp
        main.cpp
        

        ought be

        SOURCES += \
        linuxkbhit.cpp \
        main.cpp
        

        Is that relevant?

        You have two LIBS += lines both adding -lX11. Probably no harm, but just commenting.

        1 Reply Last reply
        1

        • Login

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