Results 1 to 2 of 2

Thread: qmake does not find features file after setting QMAKEFEATURES

  1. #1
    Join Date
    Jun 2014
    Posts
    30
    Thanks
    4
    Qt products
    Qt5

    Default qmake does not find features file after setting QMAKEFEATURES

    I have installed Qwt:

    Qt Code:
    1. /usr/local/qwt-6.1.0/
    2. features/
    3. qwt.prf
    4. qwtconfig.pri
    5. qwtfunctions.pri
    To copy to clipboard, switch view to plain text mode 

    I set `QMAKEFEATURES` as according to the docs:

    Qt Code:
    1. qmake -set QMAKEFEATURES /usr/local/qwt-6.1.0/features
    To copy to clipboard, switch view to plain text mode 

    Sanity-check:

    Qt Code:
    1. $ qmake -query
    2. QMAKEFEATURES:/usr/local/qwt-6.1.0/features
    3. ...
    To copy to clipboard, switch view to plain text mode 

    In my project .pro file I add qwt:

    Qt Code:
    1. QT += qwt
    To copy to clipboard, switch view to plain text mode 

    When I build...

    Qt Code:
    1. $ qmake
    2. $ make
    3. ...
    4. Project ERROR: Unknown module(s) in QT: qwt
    To copy to clipboard, switch view to plain text mode 

    I have tried using an environment variable instead:

    Qt Code:
    1. $ export QMAKEFEATURES=/usr/local/qwt-6.1.0/features
    2. $ echo ${QMAKEFEATURES}
    3. /usr/local/qwt-6.1.0/features/
    4. $ qmake
    5. $ make
    To copy to clipboard, switch view to plain text mode 

    And I still get the same problem.

    I have tried to direct include the .prf in the .pro file:

    Qt Code:
    1. include ( /usr/local/qwt-6.1.0/features/qwt.prf )
    To copy to clipboard, switch view to plain text mode 

    Same error again.

    Why won't qmake pick up the prf file?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: qmake does not find features file after setting QMAKEFEATURES

    It should be:
    Qt Code:
    1. CONFIG += qwt
    To copy to clipboard, switch view to plain text mode 
    Not
    Qt Code:
    1. QT += qwt
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. qmake: does no generate .h file from .ui file
    By miodas007 in forum Newbie
    Replies: 7
    Last Post: 18th April 2011, 22:57
  2. Where i can find qmake in Windows Vista?
    By priya in forum Newbie
    Replies: 4
    Last Post: 1st September 2010, 07:05
  3. Setting OS Specified Icon on the File?
    By vishal.chauhan in forum Qt Programming
    Replies: 4
    Last Post: 31st May 2008, 12:37
  4. How to find file using Qt?
    By rajeshs in forum Qt Programming
    Replies: 2
    Last Post: 1st January 2008, 13:07
  5. Help with qmake and pro setting
    By lni in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2007, 10:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.