Using taglib on Windows



  • Hi, everybody, i'm interested in does anybody have successful experience of using taglib on windows?
    I'm trying to write a program that will automatically find all the band names in my "Music" folder.
    So everywhere in the net they say "try taglib" and i keep trying for two weeks already with no result.

    So i need instruction for newbies:
    How to compile (seems that step i passed, using "INSTALL" file in the taglib top folder)?
    Where to compile or where to move compiled files?
    And how to use it in my program?


  • Moderators

    @DrageFabeldyr said:

    How to compile (seems that step i passed, using "INSTALL" file in the taglib top folder)?

    right. The INSTALL file should cover all you need to build.

    Where to compile or where to move compiled files?

    Once the compilation is finished it should at least have created a library linker file (.lib for MSVC) and a dll file (if you chose the "shared" option)

    And how to use it in my program?

    copy these files (maybe also the header files from the include folder) somewhere to your projects folder and add it to your project: QtCreator / manually



  • @raven-worx said:

    Once the compilation is finished it should at least have created a library linker file (.lib for MSVC) and a dll file (if you chose the "shared" option)

    ok, after command mingw32-make install i get this structure of files:
    C:\taglib\bin\ libtag.dll
    C:\taglib\bin\libtag_c.dll
    C:\taglib\bin\taglib-config.cmd
    C:\taglib\include\ taglib\ .h files
    C:\taglib\lib\pkgconfig\taglib.pc
    C:\taglib\lib\pkgconfig\taglib_c.pc
    C:\taglib\lib\ libtag.dll.a
    C:\taglib\lib\libtag_c.dll.a

    copy these files (maybe also the header files from the include folder) somewhere to your projects folder and add it to your project: QtCreator / manually

    so i copied libtag.dll, libtag.dll.a and taglib folder to D:\qtproject\myprojectfolder
    then added
    win32: LIBS += -L$$PWD/ -llibtag
    INCLUDEPATH += $$PWD/
    DEPENDPATH += $$PWD/

    to .pro file and
    #include "taglib/fileref.h"
    #include "taglib/taglib.h"
    #include "taglib/tag.h"

    to .cpp file

    and it works!! great!! thanx =))


Log in to reply