Results 1 to 4 of 4

Thread: how to add new libraries to QT

  1. #1
    Join Date
    Jan 2006
    Location
    Kranj, Slovenia
    Posts
    34
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to add new libraries to QT

    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 and Exic2, 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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to add new libraries to QT

    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.

  3. #3
    Join Date
    Jan 2006
    Location
    Kranj, Slovenia
    Posts
    34
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to add new libraries to QT

    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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to add new libraries to QT

    Quote Originally Posted by whoops.slo View Post
    that's all?
    Yes, provided that these libraries are ready to be used with MinGW.

Similar Threads

  1. Hot to define the directory for the dynamic libraries?
    By Dark_Tower in forum Qt Programming
    Replies: 5
    Last Post: 28th December 2006, 23:15
  2. Qt 3.3 libraries
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st December 2006, 18:25
  3. Standardization on libraries
    By brcain in forum General Discussion
    Replies: 13
    Last Post: 16th August 2006, 23:56
  4. Replies: 4
    Last Post: 7th March 2006, 09:52
  5. Why I can't load .framework libraries on Mac X?
    By gtthang in forum Qt Programming
    Replies: 0
    Last Post: 17th February 2006, 12:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.