taglib/2.0

TagLib is a library for reading and editing the metadata of several popular audio formats.
Recipe info
LGPL-2.1-or-later, MPL-1.1
2024-02-05

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
taglib/2.0

Using taglib

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
taglib/2.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("taglib/2.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): taglib
  • CMake target name(s): taglib::taglib
  • tag => taglib::tag
    tag_c => taglib::tag_c
    
  • pkg-config file name(s): taglib_full_package.pc
  • tag => taglib.pc
    tag_c => taglib_c.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(taglib REQUIRED)
# ...
target_link_libraries(YOUR_TARGET taglib::taglib)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the taglib homepage listed above:

#include "taglib/aifffile.h"
#include "taglib/aiffproperties.h"
#include "taglib/apefile.h"
#include "taglib/apefooter.h"
#include "taglib/apeitem.h"
#include "taglib/apeproperties.h"
#include "taglib/apetag.h"
#include "taglib/asfattribute.h"
#include "taglib/asffile.h"
#include "taglib/asfpicture.h"
#include "taglib/asfproperties.h"
#include "taglib/asftag.h"
#include "taglib/attachedpictureframe.h"
#include "taglib/audioproperties.h"
#include "taglib/chapterframe.h"
#include "taglib/commentsframe.h"
#include "taglib/dsdiffdiintag.h"
#include "taglib/dsdifffile.h"
#include "taglib/dsdiffproperties.h"
#include "taglib/dsffile.h"
#include "taglib/dsfproperties.h"
#include "taglib/eventtimingcodesframe.h"
#include "taglib/fileref.h"
#include "taglib/flacfile.h"
#include "taglib/flacmetadatablock.h"
#include "taglib/flacpicture.h"
#include "taglib/flacproperties.h"
#include "taglib/generalencapsulatedobjectframe.h"
#include "taglib/id3v1genres.h"
#include "taglib/id3v1tag.h"
#include "taglib/id3v2.h"
#include "taglib/id3v2extendedheader.h"
#include "taglib/id3v2footer.h"
#include "taglib/id3v2frame.h"
#include "taglib/id3v2framefactory.h"
#include "taglib/id3v2header.h"
#include "taglib/id3v2synchdata.h"
#include "taglib/id3v2tag.h"
#include "taglib/infotag.h"
#include "taglib/itfile.h"
#include "taglib/itproperties.h"
#include "taglib/modfile.h"
#include "taglib/modfilebase.h"
#include "taglib/modproperties.h"
#include "taglib/modtag.h"
#include "taglib/mp4atom.h"
#include "taglib/mp4coverart.h"
#include "taglib/mp4file.h"
#include "taglib/mp4item.h"
#include "taglib/mp4itemfactory.h"
#include "taglib/mp4properties.h"
#include "taglib/mp4tag.h"
#include "taglib/mpcfile.h"
#include "taglib/mpcproperties.h"
#include "taglib/mpegfile.h"
#include "taglib/mpegheader.h"
#include "taglib/mpegproperties.h"
#include "taglib/oggfile.h"
#include "taglib/oggflacfile.h"
#include "taglib/oggpage.h"
#include "taglib/oggpageheader.h"
#include "taglib/opusfile.h"
#include "taglib/opusproperties.h"
#include "taglib/ownershipframe.h"
#include "taglib/podcastframe.h"
#include "taglib/popularimeterframe.h"
#include "taglib/privateframe.h"
#include "taglib/relativevolumeframe.h"
#include "taglib/rifffile.h"
#include "taglib/s3mfile.h"
#include "taglib/s3mproperties.h"
#include "taglib/speexfile.h"
#include "taglib/speexproperties.h"
#include "taglib/synchronizedlyricsframe.h"
#include "taglib/tableofcontentsframe.h"
#include "taglib/tag.h"
#include "taglib/tag_c.h"
#include "taglib/taglib.h"
#include "taglib/taglib_export.h"
#include "taglib/tbytevector.h"
#include "taglib/tbytevectorlist.h"
#include "taglib/tbytevectorstream.h"
#include "taglib/tdebuglistener.h"
#include "taglib/textidentificationframe.h"
#include "taglib/tfile.h"
#include "taglib/tfilestream.h"
#include "taglib/tiostream.h"
#include "taglib/tlist.h"
#include "taglib/tlist.tcc"
#include "taglib/tmap.h"
#include "taglib/tmap.tcc"
#include "taglib/tpicturetype.h"
#include "taglib/tpropertymap.h"
#include "taglib/trueaudiofile.h"
#include "taglib/trueaudioproperties.h"
#include "taglib/tstring.h"
#include "taglib/tstringlist.h"
#include "taglib/tvariant.h"
#include "taglib/tversionnumber.h"
#include "taglib/uniquefileidentifierframe.h"
#include "taglib/unknownframe.h"
#include "taglib/unsynchronizedlyricsframe.h"
#include "taglib/urllinkframe.h"
#include "taglib/vorbisfile.h"
#include "taglib/vorbisproperties.h"
#include "taglib/wavfile.h"
#include "taglib/wavpackfile.h"
#include "taglib/wavpackproperties.h"
#include "taglib/wavproperties.h"
#include "taglib/xingheader.h"
#include "taglib/xiphcomment.h"
#include "taglib/xmfile.h"
#include "taglib/xmproperties.h"