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
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)
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
Re: Which QWt Files/Libraries does the End User need?
Quote:
Originally Posted by
Uwe
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.
Re: Which QWt Files/Libraries does the End User need?
Quote:
Originally Posted by
Astronomy
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.
Quote:
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
Re: Which QWt Files/Libraries does the End User need?
Thank You UWE,
i found it in qwtconfig.pri, and disabled the DLL.
Quote:
################################################## ####################
# 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
Quote:
# -------------------------------------------------
# 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
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.