Skip to content
  • 0 Votes
    14 Posts
    2k Views
    Christian EhrlicherC

    @Nick-Redwill This is what windeployqt is for...

  • Using taglib on Windows

    Unsolved General and Desktop
    3
    0 Votes
    3 Posts
    4k Views
    DrageFabeldyrD

    @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 =))

  • 0 Votes
    5 Posts
    5k Views
    SGaistS

    Since your on Linux, why not install the taglib devel package from your distribution ?

  • 0 Votes
    4 Posts
    3k Views
    kshegunovK

    @Gagiopapinni
    Okay, can you verify that this symbol is present in the static lib? (you could use "dependency walker" for that purpose)

  • QString with taglib

    Solved General and Desktop
    6
    0 Votes
    6 Posts
    3k Views
    S

    Thanks. It worked

  • Taglib In Qt

    Solved General and Desktop
    12
    0 Votes
    12 Posts
    7k Views
    mrjjM

    @shahriar25
    Congrationations :)
    Good work!

  • 0 Votes
    3 Posts
    3k Views
    B

    The solution from SGaist helped me out when I had the same error messages, many thanks!

  • 0 Votes
    11 Posts
    4k Views
    D

    @devbrs You certainly must check if taglib is null. And you must use toUTF8() instead of toAscii().

    The last problem is that some of the string conversion functions in TagLib don't appear to work with the QString conversion functions.

    Namely the functions that create c++ string and wstring objects:

    QString::fromStdString(tag->title().to8Bit()); QString::fromStdWString(tag->title().toWString());

    The functions that return c style string pointers do work:

    QString::fromWCharArray(tag->title().toCWString()); QString(tag->title().toCString(true));

    Now, why the string functions work on Linux and not on the Mac, I don't know. Perhaps you could delve into it.