[Qt-interest] Specify Qwt Libs

Thomas Dähling t.daehling at googlemail.com
Wed Jun 24 23:18:14 CEST 2009


You cannot link against a .dll file, you must link against the .lib file.

However, you must ship that .dll file with your application.

/Thomas

Am 24.06.2009, 21:13 Uhr, schrieb Justus Best <Just18 at gmx.de>:

> Hallo, now I read the documentation twice, but that doesn't answere my
> question, maybe I'm just to stupid.
> I'll try to explain my Problem again.
> I compiled qwt fist with qmake qwt.pro followed by nmake release, then
> copied the qwt5.dll to a temp directory. After that I cleand up and
> compiled again with nmake debug and renamed the new qwt5.dll to  
> qwt5d.dll.
> In my pro file I have LIBS += -L<Path to !qwt5.lib!> -lqwt5.
> But I start my application in debug mode the qwt5.dll gets loaded.
> May be its a lack of knowleg but where is defined which dll gets loaded
> ? Because even if I rename the lib to qwt5d.lib the Programm doesn't  
> work.
> Hope I could explain what my problem is.
>
> Regards Justus
>
> e.jokisch at orange-moon.de schrieb:
>> google is your friend with search for "qmake conditional use".
>> Take the first link ;)
>>
>>> I have a question nearly concerning the same.
>>> Only on windows, I know how to add the lib to my pro file and it works
>>> on release mode. But qwt seems to create the same binary dlls for
>>> release and debug. I could rename them but is there any possibility to
>>> specify, in my .pro file, which dll will be searched? Like
>>> debug: DLLNAMES += qwt5d.dll
>>> release: DLLNAMES += qwt5.dll
>>>
>>> Regards Justus
>>>
>>> e.jokisch at orange-moon.de schrieb:
>>>> what about reading?
>>>> for example:
>>>> http://doc.trolltech.com/4.0/qmake-project-files.html
>>>>
>>>>> Dear Friends
>>>>>
>>>>> How would I specify Qwt Lib files in the .pro file...
>>>>>
>>>>> Like for  qt libs it's
>>>>>
>>>>> QTLIBS += lib.so
>>>>>
>>>>> How would I write for qwt libs ? please tell me
>>>>>
>>>>>
>>>>>
>>>>> Kind regards,
>>>>> LM Glasfiber R&D (India) Pvt. Ltd.
>>>>>
>>>>> Sujan Dasmahapatra
>>>>> Project Engineer - CFD
>>>>>
>>>>> Telephone: +91 80 66470248
>>>>> Mobile:
>>>>> E-mail: sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --------------------------------------------------------------
>>>>>
>>>>> This e-mail and any attachments are confidential. If you are not the
>>>>> named or intended recipient, please notify the sender immediately and
>>>>> do
>>>>> not disclose the contents to any other person, use it for any purpose
>>>>> or
>>>>> store or copy the information in any medium. Any unauthorized
>>>>> disclosure, use or storage is prohibited and might be unlawful.
>>>>>
>>>>> _______________________________________________
>>>>> Qt-interest mailing list
>>>>> Qt-interest at trolltech.com
>>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>>
>>>>
>>>> _______________________________________________
>>>> Qt-interest mailing list
>>>> Qt-interest at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>
>>
>>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest





More information about the Qt-interest-old mailing list