PDA

View Full Version : how to add new libraries to QT



whoops.slo
11th January 2007, 22:13
Hello!

I would like to read informations from .mp3 and .jpg files (ID3 and Exif). Is that possible with Qt or do I need new libraries. If so I have found id3lib (http://id3lib.sourceforge.net/) and Exic2 (http://www.exiv2.org/), but I do not know how to compile program with those two libraries. Please help. I am using Qt 4.2.0, Codeblock and MinGW on Windows XP SP2. I would like to know at least basics, like how can I link a library that is not originally part of the Qt with it and how can I make an application with dynamically linked libraries.
Thanks!

Luka

jacek
11th January 2007, 22:36
You have to add these to your .pro file:

INCLUDEPATH += c:/directory/with/header/files
LIBS += -LC:/directory/with/library -llibrary_name
Don't forget to re-run qmake to get a new Makefile.

whoops.slo
12th January 2007, 09:26
that's all? I was expecting at least a mile long tutorial with several links to articles in this forum. will try this as soon as I get to my computer. thanks!

Luka

jacek
12th January 2007, 11:15
that's all?
Yes, provided that these libraries are ready to be used with MinGW.