libmusicbrainz-5.1.0

Introduction to libmusicbrainz

The libmusicbrainz package contains a library which allows you to access the data held on the MusicBrainz server.

[注記]

注記

LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。

Package Information

Additional Downloads

libmusicbrainz Dependencies

Required

CMake-3.28.1, libxml2-2.12.3 and neon-0.32.5

Optional

Doxygen-1.9.8

Installation of libmusicbrainz

First, fix a problem caused by CMake-3.18.0 and later:

patch -Np1 -i ../libmusicbrainz-5.1.0-cmake_fixes-1.patch

Fix also a problem caused by libxml-2.12.x:

sed -e '/tree\.h/a #include <libxml/parser.h> \
    -e 's/xmlErrorPtr /const xmlError */'     \
    -i src/xmlParser.cc

Install libmusicbrainz by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. &&
make

If you have installed Doxygen-1.9.8, optionally build the API documentation:

doxygen ../Doxyfile

This package does not come with a test suite.

Now, as the root user:

make install

If you have built the API documentation, install, as the root user:

rm -rf /usr/share/doc/libmusicbrainz-5.1.0 &&
cp -vr docs/ /usr/share/doc/libmusicbrainz-5.1.0

Contents

Installed Programs: None
Installed Library: libmusicbrainz5.so
Installed Directory: /usr/include/libmusicbrainz5 and /usr/share/doc/libmusicbrainz-5.1.0

Short Descriptions

libmusicbrainz5.so

contains API functions for accessing the MusicBrainz database