libmpdclient
1.1、libmpdclient简介
是什么 ?:Music Player Daemon Client library
开发语言:C
官方主页:https://www.musicpd.org
源码仓库:https://github.com/MusicPlayerDaemon/libmpdclient
1.2、通过包管理器安装libmpdclient
操作系统包管理器安装命令
macOSHomeBrewbrew install libmpdclient
GNU/LinuxHomeBrewbrew install libmpdclient
aptsudo apt-get install -y libmpdclient
CentOSyumsudo yum install -y libmpdclient
dnfsudo dnf install -y libmpdclient
openSUSEzyppersudo zypper install -y libmpdclient
Alpine Linuxapksudo apk add libmpdclient

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm libmpdclient
Gentoo LinuxPortagesudo emerge libmpdclient
1.3、通过编译源码安装libmpdclient

step1、安装依赖

所有时Terminal + Shell + GNU CoreUtils
下载时cURL
解压时tar + xz
编译时mesonninjagcc / GCC | Clang / LLVM
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用curl命令下载libmpdclient源码包 (

curl -LO https://www.musicpd.org/download/libmpdclient/2/libmpdclient-2.17.tar.xz

step3、使用tar解压libmpdclient源码包

tar vxf libmpdclient-2.17.tar.xz

step4、进入libmpdclient-2.17目录

cd libmpdclient-2.17

step5、查看libmpdclient-2.17目录的内容

step6、使用meson配置编译参数

meson setup --prefix=$(pwd)/output --buildtype=release --backend=ninja build

step7、使用ninja编译、安装

ninja -C build && ninja -C build install
1.4、libmpdclient中包含的头文件
1.5、libmpdclient中包含的库文件
  • libmpdclient.{a | so | dylib}