Results 1 to 7 of 7

Thread: Which QWt Files/Libraries does the End User need?

  1. #1
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Which QWt Files/Libraries does the End User need?

    Hello,

    Which Files/Libraries do i have to copy to End User?
    I'm using a simple QwtPlot program to draw a Frequency.

    I'm sending the
    1) Output File: frequency_64bit
    2) the 5 libqwt Files (libqwt.so; libqwt.so.5; libqwt.so.5.2;libqwt.so.5.2.0 ) from the path: qwt-5.2.0/lib

    But on the other target PC (ubuntu Linux AMD64bit), the message comes:

    ./frequency_64bit: symbol lookup error: ./comagui_64bit: undefined symbol: _ZN13QwtPlotMarker19setLabelOrientationEN2Qt11Orie ntationE


    It seems that the compiled bin does not know where the libraries are to find?
    Must i set some PATH Variables or do i have to copy the libs to a special Linux directory? Is there any docu or Howto?

    im working with QT 4.5.2 (QT-Creator 1.2.1) and QWt 5.2.0 under (ubuntu 9.04 AMD64bit)

    many thanks, Astronomy

  2. #2
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Which QWt Files/Libraries does the End User need?

    Hi,
    running my QT Program on another machines gives me an error message:

    ./Program: error while loading shared libraries: libqwt.so.5: cannot open shared object file: No such file or directory

    1) I've copied the libqwt.so.5 Libraries from qwt in the path where my Program is, but without success. (I had to put the path of these files in: "LD_LIBRARY_PATH" or "etc/ld.so.conf". of my developing pc, but i cant do this at every target pc?)

    2) Or should this library be integrated in the compiled output ./Program?

    Anyone who uses/copies Qwt programs on other machines than developing pc's?

    Thanx Astronomy
    (QT 4.5.3, Qwt 5.2.1)
    Last edited by Astronomy; 3rd November 2009 at 13:34.

  3. #3
    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: Which QWt Files/Libraries does the End User need?

    Most Linux distributions offer Qwt packages. If you want to offer packages of your application for a special distribution simply refer to it. If you absolutely need to ship your own Qwt library I recommend to link it statically ( the Qwt license allows you to do this without any additional consequences for the license of your code ) to your application.

    Another option is to use the rpath flag to add a runtime search path to your executable.

    Uwe

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

    Astronomy (15th January 2010)

  5. #4
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Which QWt Files/Libraries does the End User need?

    Quote Originally Posted by Uwe View Post
    Most Linux distributions offer Qwt packages. If you want to offer packages of your application for a special distribution simply refer to it. If you absolutely need to ship your own Qwt library I recommend to link it statically ( the Qwt license allows you to do this without any additional consequences for the license of your code ) to your application.

    Another option is to use the rpath flag to add a runtime search path to your executable.

    Uwe
    Thanx UWE,

    The only package for fedora or Ubuntu i found, is to install the Qwt sources from the sourceforge site with make install. That may be too complicated for the End Users.
    Did you've meant this: export LD_LIBRARY_PATH=$home/path to the Files/bin/lib
    with statically? It didn't work. Maybe the rpath flag will, i'll try that too...

    thanx again

    greetz A.

  6. #5
    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: Which QWt Files/Libraries does the End User need?

    Quote Originally Posted by Astronomy View Post
    Thanx UWE,The only package for fedora or Ubuntu i found, is to install the Qwt sources from the sourceforge site with make install.
    No there are binary packages.
    Did you've meant this... with statically?
    No you have to build a static libray: remove QwtDll from the CONFIg options in qwt.pri and run make. Then you should find a libqwt.a instead of a libqwt.so, what can be linked statically into your application.

    Uwe

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

    Astronomy (10th November 2009)

  8. #6
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Which QWt Files/Libraries does the End User need?

    Thank You UWE,

    i found it in qwtconfig.pri, and disabled the DLL.


    ################################################## ####################
    # Build the static/shared libraries.
    # If QwtDll is enabled, a shared library is built, otherwise
    # it will be a static library.
    ################################################## ####################

    # CONFIG += QwtDll
    Now i have the 33MB libqwt.a But the created bin File always wants the dynamic lib?
    How can i tell the QT project tu use the libqwt.a Library?

    I have written the Path in my Project File. Is the last entry correct? I've looked in the Project settings but did not find other options?

    thanx Astronomy




    # -------------------------------------------------
    # Project created by QtCreator 2009-10-14T16:57:18
    # -------------------------------------------------
    include( ../examples.pri )
    TARGET = ComaView
    TEMPLATE = app
    SOURCES += main.cpp \
    mainwindow.cpp \
    scrollzoomer.cpp \
    scrollbar.cpp \
    plot.cpp \
    CData.cpp
    HEADERS += mainwindow.h \
    scrollzoomer.h \
    scrollbar.h \
    plot.h \
    CData.h \
    CZoomer.h \
    Constants.h
    FORMS += mainwindow.ui


    SUBDIRS = += \
    \lib \
    \ \
    \ \
    \ \
    INCLUDEPATH \
    += \
    /home/user/qwt-5.2/src
    INCLUDEPATH += /home/user/qwt-5.2/lib
    LIBS += /home/user/qwt-5.2/lib/libqwt.a \
    -lqwt

  9. #7
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Which QWt Files/Libraries does the End User need?

    It's working!!!

    I had to define the path of the target PC (where libqwt.a was copied..) in the Project settings of QWTLIB too.
    QWTLIB /lib:/home/user/qwt-5.2/lib/:/home/targetpcworkingdirectory/bin/lib

    and it is beautifull!


    thanx again UWE

    greetz A.

Similar Threads

  1. Logging Qt User Actions
    By Frank J. Lhota in forum Qt Programming
    Replies: 14
    Last Post: 30th May 2014, 21:36
  2. QWT doesnt show any windows
    By Cal in forum Qwt
    Replies: 5
    Last Post: 30th June 2009, 17:05
  3. qwt 5.2 install on qt 4.5
    By HyperB in forum Qwt
    Replies: 4
    Last Post: 13th May 2009, 20:03
  4. QWT introduction
    By nitriles in forum Qwt
    Replies: 4
    Last Post: 28th September 2007, 10:48
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

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.