[Qt-creator] Change path to external DLLs for program execution

André Hartmann andre.hartmann at iseg-hv.de
Wed Apr 16 15:47:11 CEST 2014


Hi Daniel,

Thanks for the tip.

Unfortunately, our library has .lib and .dll in two different 
directories, but I just added further dummy LIBS += -L/path/to/dll.

Works perfectly with VS 2010.

Thank you very much!

Best regards,
André

Am 16.04.2014 15:09, schrieb Daniel Teske:
> On Wednesday 16 Apr 2014 15:03:45 André Hartmann wrote:
>> Hello,
>>
>> I have (Windows) projects that depends on external
>> libraries.
>>
>> Whenever a new version of this lib is released,
>> I have to compile and test the projects against
>> the new version and sometimes switch back to the
>> old version.
>>
>> Qmake already makes my life very easy, as I can
>> switch between them by changing the CONFIG variable:
>>
>> # project.pro
>>
>> CONFIG += LIB_V1
>> #CONFIG += LIB_V2
>>
>> LIB_V1 {
>> 	INCLUDEPATH += "c:/lib_v1/include"
>> 	QMAKE_LIBDIR += "c:/lib_v1/lib"
>> }
>>
>> LIB_V2 {
>> 	INCLUDEPATH += "c:/lib_v2/include"
>> 	QMAKE_LIBDIR += "c:/lib_v2/lib"
>> }
>>
>> Now my last problem is, that I need the corresponding
>> DLLs from either c:/lib_v1/bin or c:/lib_v2/bin when
>> executing my program from Qt Creator.
>>
>> Is there a way to achive this?
> Use "LIBS +=-Lc:/lib_v2/lib" instead of QMAKE_LIBDIR and creator should
> automatically add those diretories to the path.
>
> daniel
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>


-- 
Best regards / Mit freundlichen Grüßen
André Hartmann, Dipl.-Ing. (FH)
Software Project Manager

iseg Spezialelektronik GmbH         |  phone: ++49 (0)351 26996-43
Bautzner Landstr. 23                |  fax:   ++49 (0)351 26996-21
D-01454 Radeberg / Rossendorf       |  web:   www.iseg-hv.com

Geschäftsführer / Managing director: Dr. F. Gleisberg, Dr. J. Pöthig
Amtsgericht / Lower district court: Dresden HRB 16250
Ust.-Id.-Nr. / VAT-ID: DE812508942

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and delete this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.



More information about the Qt-creator mailing list