Qt-interest Archive, March 2007
Re: Dynamic QT Linking and static linking of one another 3rd party library
Message 1 in thread
thanks a lot !
I'll try this !
Heiko
Paul Koshevoy schrieb:
> If you use gcc, and you have both static and dynamic link libraries, you
> can tell the linker to use static libraries like this:
> LIBS += -Wl,-Bstatic -L<path_where_static_lib_resides> -l<3rdpartylib>
> -Wl,-Bdynamic
>
> Paul.
>
>
> Heiko Steindl wrote:
>
>> Thank you very much !
>>
>> the problem was, that the 3rd party lib installed both versions (a
>> dynamic and a static lib).
>> I removed the dynamic one and now it links with the static version.
>>
>> Thanks a lot for your help !
>>
>>
>> Thomas Mittelstaedt schrieb:
>>
>>> Am 27.02.2007, 16:37 Uhr, schrieb Heiko Steindl <heiko@xxxxxx>:
>>>
>>>
>>>> Hello !
>>>>
>>>> I have a litte problem and I don't found something in the docu.
>>>>
>>>> Is it possible to Link a program dynamic with qt (Version is 4.2.2)
>>>> and also link the program static with one 3rd party library ?
>>>>
>>> Sure. Just do a LIBS += -L<path_where_static_lib_resides>
>>> -l<3rdpartylib>
>>> in your pro-file and your app will link with this lib in addition to qt.
>>> --
>>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>>> with "unsubscribe" in the subject or the body.
>>> List archive and information: http://lists.trolltech.com/qt-interest/
>>>
>>>
>>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
>> "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
Message 2 in thread
Heiko Steindl <heiko@xxxxxx> wrote on 03/01/2007 01:01:05 AM:
# thanks a lot !
#
# I'll try this !
I've another option, which I've posted onto QtCentre on this
page:
http://wiki.qtcentre.org/index.php?title=Building_static_applications
I needed this because I had cases where I was using the system()
function to call something like "mylib-config --libs" to get the
libraries I needed - so I didn't have direct control over the
contents of LIBS. This works beautifully for me though.
--
[ signature omitted ]