[Qt-interest] Adding libraries to .pro file

Donal O'Connor donaloconnor at gmail.com
Thu Oct 21 13:23:40 CEST 2010


have you set your LD_LIBRARY_PATH to this?

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
/home/pcor/Development/cpp/qt/libs/TableModel-build-desktop/

On Thu, Oct 21, 2010 at 12:21 PM, Chasc <chasc at tpg.com.au> wrote:

> Hi,
>
> I am having trouble linking a shared library I have created into my
> current application. My project file reads as follows:
>
> LIBS += -L/home/pcor/Development/cpp/qt/libs/TableModel-build-desktop
> LIBS += -llibTableModel
> INCLUDEPATH
> += /home/pcor/Development/cpp/qt/libs/TableModel-build-desktop
>
> where libTableModel.so is a link pointing to libTableModel.so.1.0.0 in
> the
> directory /home/pcor/Development/cpp/qt/libs/TableModel-build-desktop.
> My header files are also in this same directory.
>
> I can build the project OK but when I try running it I get:
>
> /home/pcor/Development/cpp/qt/TableSelection2/TableSelection2-build-desktop/TableSelection2:
> error while loading shared libraries: libTableModel.so.1: cannot open shared
> object file: No such file or directory
>
> every time. My platform is Linux and I am using Qt Creator 2.0.1. Can
> anyone help me with this?
>
> Paul Cornford (newbie)
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101021/34569e2a/attachment.html 


More information about the Qt-interest-old mailing list