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. What does CONFIG += x11 actually do?

What does CONFIG += x11 actually do?

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

    Simple Question, what does >CONFIG += x11< if defined for qmake?
    It is part of the general configuration. However the docs are not very verbose about that:

    "The project is an X11 application or library."
    

    If compiling with -Wmissing-include-dirs g++ complains about:
    /usr/X11R6/include: No such file or directory [-Werror]

    If not using it on Ubuntu14.04 my QtGui-Application seems to run fine. Is my guess correct, that those included are resolved by the QtGui-Library if using it, and I only would need that flag if I would make use of the X11-development files?

    kshegunovK 1 Reply Last reply
    0
    • kodiak32K kodiak32

      Simple Question, what does >CONFIG += x11< if defined for qmake?
      It is part of the general configuration. However the docs are not very verbose about that:

      "The project is an X11 application or library."
      

      If compiling with -Wmissing-include-dirs g++ complains about:
      /usr/X11R6/include: No such file or directory [-Werror]

      If not using it on Ubuntu14.04 my QtGui-Application seems to run fine. Is my guess correct, that those included are resolved by the QtGui-Library if using it, and I only would need that flag if I would make use of the X11-development files?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @kodiak32 said in What does CONFIG += x11 actually do?:

      I only would need that flag if I would make use of the X11-development files?

      Yes. Just ignore it (don't set the config value) for the most of cases.

      Read and abide by the Qt Code of Conduct

      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