Results 1 to 3 of 3

Thread: qwt_plot.h: No such file or directory

  1. #1
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question qwt_plot.h: No such file or directory

    Hi all,

    I have downloaded qwt from http://ignum.dl.sourceforge.net/proj.../qwt-6.0.1.zip

    I have build qwt by following the next steps:

    1.- qmake qwt.pro
    2.- make
    3.- make install

    Then, I have build the examples:

    1.- cd examples
    2.- qmake examples.pro
    3.- make

    But when I try to use qwt in a project I get the next error:

    qwt_plot.h: No such file or directory
    I have added this line in the .pro file:

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

    How can I solve the problem?

    Best regards.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qwt_plot.h: No such file or directory

    have you done this http://doc.qt.nokia.com/4.7/qmake-ad...tion-features?

    Otherwise you have to do this
    If you don't use qmake you have to add the include path to find the Qwt
    headers to your compiler flags and the Qwt library to your linker list.
    Don't forget to add QWT_DLL to the compiler flags, when you work with a
    Qwt-DLLs on Windows.
    http://qwt.sourceforge.net/qwtinstall.html


    How much of that guide have you done?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Feb 2012
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: qwt_plot.h: No such file or directory

    Quote Originally Posted by qt_developer View Post
    Hi all,

    I have downloaded qwt from http://ignum.dl.sourceforge.net/proj.../qwt-6.0.1.zip

    I have build qwt by following the next steps:

    1.- qmake qwt.pro
    2.- make
    3.- make install

    Then, I have build the examples:

    1.- cd examples
    2.- qmake examples.pro
    3.- make

    But when I try to use qwt in a project I get the next error:



    I have added this line in the .pro file:

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

    How can I solve the problem?

    Best regards.

    Yo

    Check if you can execute "make" or something like "mingw32-make"

    1.- qmake qwt.pro
    2.- make
    3.- make install

    after these steps



    Don't forget to tell qmake where to find qwt.prf:
    do this in the same directory path

    qmake -set QMAKEFEATURES C:\Qwt-6.0.1\features

    or

    qmake -set QMAKEFEATURES <Qwt Install Path>\features


    if windows then do this

    Open System Properties -> Advanced -> Environment Variables

    create new user variable "PATH" and set variable value as

    C:\Qwt-6.0.1\lib

    or

    edit existing user variable "PATH" and set variable value as

    ;C:\Qwt-6.0.1\lib


    finally press all OK


    If you require custom Qwt widgets to be shown as plugins in Qt Designer
    then do this

    Open System Properties -> Advanced -> Environment Variables

    create new user variable "QT_PLUGIN_PATH" and set variable value as

    C:\Qwt-6.0.1\plugins

    finally press all OK


    Include

    CONFIG += qwt

    in corresponding project file ( *.pro file )

    All done



    now Qwt should be working

Similar Threads

  1. Replies: 1
    Last Post: 23rd May 2011, 04:53
  2. Replies: 5
    Last Post: 10th November 2010, 15:39
  3. Replies: 1
    Last Post: 8th November 2010, 03:24
  4. Replies: 4
    Last Post: 9th May 2010, 16:18
  5. Replies: 2
    Last Post: 9th March 2010, 05:21

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
  •  
Qt is a trademark of The Qt Company.