Results 1 to 3 of 3

Thread: Can not build qwt example prog from home folder.

  1. #1
    Join Date
    Feb 2008
    Posts
    36
    Thanks
    4

    Default Can not build qwt example prog from home folder.

    Hi all,

    I am using Qt-4.5.3 on Ubuntu 8.0.4. I have downloaded and compiled qwt-5.2.0 successfully. The examples works fine. I managed to compile the examples
    under /usr/local/qwt-5.2.0/examples/sub example folder. The problem is when I try to compile the examples from my home folder. In the example.pro files for example realtime_plot.pro the first line is include(../examples.pri). In the examples.pri there is a reference to qwtconfig.pri.

    I copied the realtime_plot.pro and the projects .cpp and .h files to my home folder, then I changed Include(../examples.pri) to (usr/local/qwt-5.2.0/examples.pri). The following lines were added to the .pro file:
    INCLUDEPATH=$QWT/include
    LIBS +=/usr/local/qwt-5.2.0/lib/libqwt.so.5.2.0

    qmake realtime_plot.pro, make gives a lot of errors. It seams like the compiler can't find a lot of .h files like qwt_array.h and qwt_plot.h located in the QWT-dir/include.

    In .profile I have added:
    QWT=/usr/local/qwt-5.2.0
    export LD_LIBRARY_PATH=$QWT/lib:$LD_LIBRARY_PATH
    export QWT

    My question is which changes can I do to my .pro (realtime_plot.pro) and or .profile to build the application successfully from my home folder?
    I have tried to google for a solution but with no result.
    Any help is deeply appreciated!

    Regards
    gQt

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Can not build qwt example prog from home folder.

    INCLUDEPATH=$QWT/include
    That doesn't look like valid qmake syntax to me. AFAIR it should be something like "INCLUDEPATH=$$(QWT)/include" - better check the Qt docs.

    Note that you better try to understand qmake instead of copying project files. In the end all you need for a Qwt project is setting the INCLUDEPATH and the LIBS.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    gQt (11th March 2010)

  4. #3
    Join Date
    Feb 2008
    Posts
    36
    Thanks
    4

    Default Re: Can not build qwt example prog from home folder.

    Thank you Uwe! MY INCLUDEPATH was wrong.

    gQt

Similar Threads

  1. Replies: 1
    Last Post: 19th January 2010, 21:35
  2. Replies: 1
    Last Post: 14th July 2009, 09:28
  3. can the image be displayed as it is in chips prog..
    By sh123 in forum Qt Programming
    Replies: 11
    Last Post: 7th February 2009, 08:15
  4. Qt Prog skip the file reading block
    By dgg32 in forum Qt Programming
    Replies: 10
    Last Post: 10th December 2008, 18:12
  5. QTextBroxser : home() problem
    By Nyphel in forum Newbie
    Replies: 20
    Last Post: 25th May 2007, 12:30

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.