Results 1 to 1 of 1

Thread: qwt-5.2.0 install on Qt-4.5.0 on Ubuntu and on WinXP SP3

  1. #1
    Join Date
    Mar 2009
    Posts
    98
    Thanks
    3
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qwt-5.2.0 install on Qt-4.5.0 on Ubuntu and on WinXP SP3

    Hi,

    I try to install qwt on both GNU\Linux and Windows without success: I can't make any projects!

    I commit the last snapshot from the subversion repository with the command
    Qt Code:
    1. svn co https://qwt.svn.sourceforge.net/svnroot/qwt/branches/qwt-5.2
    To copy to clipboard, switch view to plain text mode 

    Then I edit the qwtconfig.pri: I uncomment the line
    Qt Code:
    1. #CONFIG += QwtExamples
    To copy to clipboard, switch view to plain text mode 
    to enable the compile of examples.

    Then:
    Qt Code:
    1. qmake
    2. make
    3. sudo make install
    To copy to clipboard, switch view to plain text mode 

    I try to run the example but I get this error:
    Qt Code:
    1. curvdemo2: error while loading shared libraries: libqwt.so.5: cannot open shared object file: No such file or directory
    To copy to clipboard, switch view to plain text mode 

    I also try to compile an example in QtCreator with this line in the project.pro
    Qt Code:
    1. INCLUDEPATH += /usr/local/qwt-5.2.0-svn/include/
    2. LIBS += /usr/local/qwt-5.2.0-svn/lib/libqwt.so
    To copy to clipboard, switch view to plain text mode 
    but I get the same error.


    In Windows I install the qwt with this commands on the Qt Command prompt
    Qt Code:
    1. qmake
    2. mingw32-make make
    3. mingw32-make install
    To copy to clipboard, switch view to plain text mode 

    I can run the example in the Qt Command prompt (Is there a way to run it outside, directly on windows?), but I can't make my project in the QtCreator. I can compile, in it, without errors with this line in the project.pro
    Qt Code:
    1. INCLUDEPATH += C:\Qwt-5.2.0-svn\include
    2. LIBS += C:\Qwt-5.2.0-svn\lib\qwtd5.dll
    To copy to clipboard, switch view to plain text mode 
    When I run it I get this error on the console
    MyPlot.exe exited with code -1073741515
    Don't show any windows!

    What should I do?
    Is there any tutorial to install qwt correctly on both system and use with QtCreator?



    Thanks in advance.


    Best Regards,

    PaceyIV


    -------------------------------------------------------------------
    I look at QtiPlot source code. Instead of compile and install qwt in my machine I compile it without CONFIG += QwtDll, so I generate a static library.
    Now I can compile on Windows as same as on Linux with this line on project.pro

    Qt Code:
    1. ##################### 3rd PARTY HEADER FILES SECTION ########################
    2. #!!! Warning: You must modify these paths according to your computer settings
    3. #############################################################################
    4.  
    5. unix:INCLUDEPATH += ../qwt-5.2/src
    6.  
    7. win32:INCLUDEPATH += C:\qwt-5.2\src
    8.  
    9. ##################### 3rd PARTY LIBRARIES SECTION ###########################
    10. #!!! Warning: You must modify these paths according to your computer settings
    11. #############################################################################
    12.  
    13. ##################### Linux (Mac OS X) ######################################
    14.  
    15. # statically link against libraries in 3rdparty
    16. unix:LIBS += ../qwt-5.2/lib/libqwt.a
    17.  
    18. # dynamically link against dependencies if they are installed system-wide
    19. #unix:LIBS += -lqwt
    20.  
    21. ##################### Windows ###############################################
    22.  
    23. win32:LIBS += C:\qwt-5.2\lib\libqwt.a
    24. #win32:LIBS += C:\qwt-5.2\lib\libqwtd.a # for debug
    25.  
    26. #############################################################################
    27. ###################### BASIC PROJECT PROPERTIES #############################
    28. #############################################################################
    29.  
    30. TARGET = 001-MyPlot
    31. TEMPLATE = app
    32. CONFIG += qt warn_on exceptions #thread
    To copy to clipboard, switch view to plain text mode 

    It works fine but QtCreator can't resolve the header in the editor, so I can't have the advantage of the AutoCompleate features. Where's the bug?
    Last edited by PaceyIV; 14th May 2009 at 13:56.

Similar Threads

  1. qwt polar dev on intrepid ubuntu??!?
    By telecompress in forum Qwt
    Replies: 2
    Last Post: 10th February 2009, 09:59

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.