Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Add module for unix only

Add module for unix only

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 602 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.
  • M Offline
    M Offline
    Mwoua
    wrote on last edited by
    #1

    Hello,
    im building an application that requires

    QT += x11extras for linux

    I have put it in a unix condition :

    unix
    {
        QT += x11extras
    }
    

    But when I run qmake on my windows host, it still try to add the module :
    error: Unknown module(s) in QT: x11extras

    Can I add the module for unix only?

    Thanks

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

      Hi,

      Your syntax is wrong:

      unix {
          QT += x11extras
      }
      

      See Scope syntax for more information.

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

      1 Reply Last reply
      3
      • M Offline
        M Offline
        Mwoua
        wrote on last edited by
        #3

        I knew it was something stupid, thanks

        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