TagLibAmalgam: A new way to use TagLib

Manfred Schwind lists at mani.de
Wed Apr 18 13:22:23 UTC 2012

Ah, ok. Yes, I've done the amalgamation myself and needed to add the following to TagLibAmalgamTemplate.h:

#include "mpeg/mpegfile.h"
#include "mpeg/id3v2/id3v2tag.h"
#include "mpeg/id3v2/id3v2frame.h"
#include "mpeg/id3v2/frames/commentsframe.h"

#include "mp4/mp4file.h"

#include "riff/aiff/aifffile.h"

... but I am also only using a small subset of taglib. There are much much more header files around.
For me it's working great now. Thanks for the entire Amalgamation project!


Am 18.04.2012 um 13:06 schrieb Vinnie Falco:

> Mani:
> Ah, yes that's entirely possible that I left out some headers. The
> amalgamation does work for me in my application but I am only using a
> subset of features. Which headers should go into TagLibAamalgam.h?
> And thanks for the kind words.
> On Wed, Apr 18, 2012 at 12:14 AM, Manfred Schwind wrote:
>> That's cool news! Would like to use that.
>> Have you actually tried to use the amalgamated taglib?
>> It compiles fine for me, but if I try to use it in my code, I get compiler errors like that:
>> error: no member named 'ID3v2' in namespace 'TagLib'
>>        TagLib::ID3v2::Tag *_id3v2tag;
>> If I search for "namespace ID3v2", I can find it in the TagLibAmalgam.cpp file, but not in the TagLibAmalgam.h file, so there seems to be missing something ...
>> Maybe the relevant header files are missing in the TagLibAmalgamTemplate.h?
>> Regards,
>> Mani
>> Am 17.04.2012 um 17:10 schrieb Vinnie Falco:
>>> Thanks to the help from the project maintainers, I am proud to present:
>>> TagLibAmalgam: https://github.com/vinniefalco/TagLibAmalgam
>>> This is a whole new way to include TagLib to your program. Instead of
>>> dealing with CMake or messy include paths, just drop the one .cpp file
>>> into your existing IDE-specific project file or Makefile, and include
>>> one .h, and presto you have TagLib!
>>> _______________________________________________
>>> taglib-devel mailing list
>>> taglib-devel at kde.org
>>> https://mail.kde.org/mailman/listinfo/taglib-devel
> -- 
> Follow me on Github: https://github.com/vinniefalco

More information about the taglib-devel mailing list