Unsolved How to Build TagLib (https://taglib.org) to . a file? I want to use it to add to my QML project.
-
I use MacOs.
I want to build TagLib to .a file and then add to to my QML project and I get stuff. -
Seems this option is not available anymore:
taglib-1.11.1/CMakeLists.txt:11But if you will change:
taglib-1.11.1/taglib/CMakeLists.txt:345
toadd_library(tag STATIC ${tag_LIB_SRCS} ${tag_HDRS})
It might work for you. But keep in mind that you also need to take care about taglib dependencies
-
Don't have MacOs but successfully using quite recent taglib version on Linux in my Qt Quick Controls 2 app. Here is my .pro file (notice libz and libdl requirement). Maybe you can adjust it to MacOS. In my project dir I have subdir "taglib" with all headers and subdir "libs" (also in project dir) with libtag.a
HEADERS += \ taglib/audioproperties.h \ taglib/fileref.h \ taglib/tag.h \ taglib/taglib_config.h \ taglib/taglib_export.h \ taglib/taglib.h \ taglib/tbytevector.h \ taglib/tbytevectorlist.h \ taglib/tbytevectorstream.h \ taglib/tdebug.h \ taglib/tfile.h \ taglib/tfilestream.h \ taglib/tiostream.h \ taglib/tlist.h \ taglib/tmap.h \ taglib/tpropertymap.h \ taglib/toolkit/tstring.h \ taglib/toolkit/tstringlist.h \ taglib/unicode.h unix|win32: LIBS += -L$$PWD/libs/ -ltag LIBS += -lz LIBS += -ldl INCLUDEPATH += taglib INCLUDEPATH += taglib/toolkit INCLUDEPATH += $$PWD/taglib DEPENDPATH += $$PWD/taglib win32:!win32-g++: PRE_TARGETDEPS += $$PWD/libs/tag.lib else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/libs/libtag.a