Results 1 to 2 of 2

Thread: QWT - first step [setup problem]

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Location
    Italy
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QWT - first step [setup problem]

    Hello.
    Sorry for this boring question but I can not find a solution and then here I am

    I am working on a Windows XP platform (but I have the same problem on Linux)
    I downloaded and installed QT-SDK LGPL from : http://qt.nokia.com/downloads/downloads#lgpl
    I downloaded qwt-5.2.1 from : http://sourceforge.net/projects/qwt/

    I compiled qwt with VisualC2008 , because qtsdk requires that the plugin is compiled as well (otherwise not working) .

    I copied the qwt5_designer_plugin.dll in :
    C:\Qt\2010.02.1\bin\designer
    C:\Qt\2010.02.1\qt\plugins\designer
    C:\Qt\2010.02.1\qt\bin

    I copied the qwt5.dll in :
    C:\Qt\2010.02.1\qt\bin

    I added these paths to the system :
    C:\qwt-5.2.1\lib;C:\qwt-5.2.1\src

    And this is my pro file :
    #-------------------------------------------------
    #
    # Project created by QtCreator 2010-05-06T09:44:36
    #
    #-------------------------------------------------

    TARGET = QTW_TEST
    TEMPLATE = app


    SOURCES += main.cpp\
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    INCLUDEPATH += C:\qwt-5.2.1\src
    DEFINES += QWT_DLL
    LIBS += C:\qwt-5.2.1\lib\qwt5.dll
    The result is that in the palette I see the qwt components and can also add them to a form but when I try to compile I get this errors:

    release/mainwindow.o:mainwindow.cpp.text$_ZN13Ui_MainWindow7setupUiEP11QMainWindow[Ui_MainWindow::setupUi:-1: error: undefined reference to `QwtPlot::QwtPlot(QWidget*)'

    :-1: error: collect2: ld returned 1 exit status
    How can I resolve and, above all , how can I install the qwt libs in a clean mode ?
    Is there a step by step tutorial for a monkey?

    Thanks to all

  2. #2
    Join Date
    Apr 2010
    Location
    Italy
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Wink Re: QWT - first step [setup problem]

    On Linux I have solved !!

    I'm Working on ArcLinux.

    I have create a file in /etc/ld.so.conf.d named qtw.conf
    in the file I write the path of my qwt lib like below

    /usr/local/qwt-5.2.1/lib
    Then in a terminal I gave the command: sudo ldconfig
    The library is in that position because I have given the command sudo make install

    I tried to do the same with the header files but did not work so I copied them in :
    /usr/include

    - To this point, if you have any suggestions for a cleaner solution there would be grateful

    Then I changed the file .pro as below (the key to clear the error I had is the line LIBS:
    #-------------------------------------------------
    #
    # Project created by QtCreator 2010-05-07T19:07:22
    #
    #-------------------------------------------------

    TARGET = test
    TEMPLATE = app


    SOURCES += main.cpp\
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    LIBS += /usr/local/qwt-5.2.1/lib/libqwt.so.5
    Now I will try the solution on windows but I think it is enough to change the file X as I did on linux

    Right now everything seems to wor

    Thanks to all
    Last edited by gandalf; 7th May 2010 at 21:42.

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

    HeyYO (4th May 2011)

Similar Threads

  1. Qt Creator Debugging step by step through else rich code does not work
    By Terjoqu in forum Qt Tools
    Replies: 1
    Last Post: 11th March 2010, 21:44
  2. Step by step Qwt on MinGW
    By Doug Broadwell in forum Qwt
    Replies: 2
    Last Post: 23rd January 2009, 00:19
  3. learn how to install QT with msvc2005 step by step
    By coder1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 20th December 2007, 19:56
  4. Video Tutorials or step by step guides?
    By Dumbledore in forum Newbie
    Replies: 2
    Last Post: 10th October 2007, 08:33
  5. Step by Step MySQL Plugin... what's next step?
    By chaosgeorge in forum Qt Programming
    Replies: 20
    Last Post: 5th November 2006, 15:32

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.