Re: MPD 0.15 and MPC 0.16
Posted: Sat Aug 15, 2009 1:02 am
Would anyone like to volunteer to attempt this? I am totally swamped at the moment and this may be beyond my Makefile-kung-fu/buildroot abilities anyway.
Create, share, discuss. Join the resistance.
https://mightyohm.com/forum/
ah, libstdc++phood wrote:Hi, just wondering if anyone has got this work yet. I managed to get MPD 0.15.1 compiled into an ipk and installed on the asus wl-520. However, when I ran 'mpd', it just gave me errors that it couldn't find libasound. I tried compiling it again without alsa support and it gave me libstdc++ errors.... kind of depressing. I'm getting the latest packages from svn now and trying it again. Would like to hear if anyone has got 0.15 working yet.
Code: Select all
root@OpenWrt:/mnt/sda1/share/rapid# mpc
volume:100% repeat: off random: off single: off consume: off
ERROR: problems decoding "mms://87.98.222.193/CHILLOUT"
Code: Select all
#
# Copyright (C) 2007-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mpd
PKG_VERSION:=0.15.2
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://sunet.dl.sourceforge.net/project/musicpd/mpd/0.15.2
#PKG_MD5SUM:=eec9f5642d4a9c59a0df0a458def3505
include $(INCLUDE_DIR)/package.mk
define Package/mpd
SECTION:=sound
CATEGORY:=Sound
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +glib2 +libmms +libcurl +libffmpeg +libstdcpp
TITLE:=Music Player Daemon
URL:=http://www.musicpd.org/
endef
define Package/mpd/description
MPD is a music player supporting flac, mp3 and ogg files.
It is typically controlled over a network using one of it's many
clients including mpc(console), gmpc(gnome), phpmp(php) etc.
endef
define Package/mpd/conffiles
/etc/mpd.conf
endef
ifndef CONFIG_PACKAGE_kmod-sound-core
EXTRA_CONFIG_PARAM:=--disable-alsa
endif
CONFIGURE_VARS += \
CURL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto -lcurl" \
CURL_CFLAGS="-I$(STAGING_DIR)/usr/include" \
ID3TAG_LIBS="$(TARGET_LDFLAGS) -lz -lid3tag" \
ID3TAG_CFLAGS="$(TARGET_CPPFLAGS)" \
FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
FLAC_CFLAGS="-I$(STAGING_DIR)/usr/include/FLAC" \
MAD_LIBS="$(TARGET_LDFLAGS) -lmad" \
MAD_CFLAGS="$(TARGET_CPPFLAGS)" \
OGGVORBIS_LIBS="$(TARGET_LDLFAGS) -lvorbisidec" \
OGGVORBIS_CFLAGS="$(TARGET_CPPFLAGS)" \
GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
GLIB_LIBS="$(TARGET_LDLFAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib -lintl -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv -lglib-2.0 -lgthread-2.0 -pthread"
define Build/Configure
$(call Build/Configure/Default, \
$(EXTRA_CONFIG_PARAM) \
--disable-audiofile \
--disable-mpc \
--disable-aac \
--disable-lsr \
--disable-ao \
--disable-mvp \
--disable-lametest \
--disable-lame-encoder \
--enable-flac \
--enable-lastfm \
--enable-mms \
--enable-ffmpeg \
--with-tremor="$(STAGING_DIR)/usr/lib" \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/mpd/install
$(INSTALL_DIR) $(1)/etc
$(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
endef
$(eval $(call BuildPackage,mpd))
Code: Select all
regiscruzbr@PoderSupremo:~/OpenWr_809/8.09$ make package/mpd/{clean,compile,install} V=99
make[1]: Entering directory `/home/regiscruzbr/OpenWr_809/8.09'
make[2]: Entering directory `/home/regiscruzbr/OpenWr_809/8.09/package/mpd'
rm -f /home/regiscruzbr/OpenWr_809/8.09/staging_dir/mipsel/stamp/.mpd_installed
rm -f /home/regiscruzbr/OpenWr_809/8.09/bin/packages/mipsel/mpd_*
rm -f /home/regiscruzbr/OpenWr_809/8.09/staging_dir/mipsel/packages/mpd.list /home/regiscruzbr/OpenWr_809/8.09/staging_dir/host/packages/mpd.list
rm -rf /home/regiscruzbr/OpenWr_809/8.09/build_dir/mipsel/mpd-0.15.1
make[2]: Leaving directory `/home/regiscruzbr/OpenWr_809/8.09/package/mpd'
make[1]: Leaving directory `/home/regiscruzbr/OpenWr_809/8.09'
make[1]: Entering directory `/home/regiscruzbr/OpenWr_809/8.09'
make[2]: Entering directory `/home/regiscruzbr/OpenWr_809/8.09/package/libtool'
make[2]: Leaving directory `/home/regiscruzbr/OpenWr_809/8.09/package/libtool'
make[2]: Entering directory `/home/regiscruzbr/OpenWr_809/8.09/package/libmms'
WARNING: skipping libmms -- package not selected
if [ -f "/home/regiscruzbr/OpenWr_809/8.09/build_dir/mipsel/libmms-0.4/./libtool" -a -e "/home/regiscruzbr/OpenWr_809/8.09/staging_dir/mipsel/host/bin/libtool" ]; then rm -f /home/regiscruzbr/OpenWr_809/8.09/build_dir/mipsel/libmms-0.4/./libtool; ln -s /home/regiscruzbr/OpenWr_809/8.09/staging_dir/mipsel/host/bin/libtool /home/regiscruzbr/OpenWr_809/8.09/build_dir/mipsel/libmms-0.4/./; fi
.
.
.
.
.
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... configure: error: Package requirements (glib-2.0) were not met:
No package 'glib-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make[2]: *** [/home/regiscruzbr/OpenWr_809/8.09/build_dir/mipsel/libmms-0.4/.configured] Error 1
make[2]: Leaving directory `/home/regiscruzbr/OpenWr_809/8.09/package/libmms'
make[1]: *** [package/libmms/compile] Error 2
make[1]: Leaving directory `/home/regiscruzbr/OpenWr_809/8.09'
make: *** [package/mpd/compile] Error 2
regiscruzbr@PoderSupremo:~/OpenWr_809/8.09$
Code: Select all
define Package/mpd
SECTION:=sound
CATEGORY:=Sound
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +glib2 +libmms +libcurl +libffmpeg +libstdcpp
TITLE:=Music Player Daemon
URL:=http://www.musicpd.org/
endef
Code: Select all
mpd (MPD: Music Player Daemon) 0.15.8
Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Supported decoders:
[mad] mp3 mp2
[vorbis] ogg oga
[flac] flac
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv
cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4v mad mj2 mjpeg mjpg mka mkv m
lp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ra
m rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav wma wmv wsau
d wsvga wv wve
Supported outputs:
shout null fifo alsa oss httpd
Supported protocols:
file:// http:// lastfm:// mms:// mmsh:// mmst:// mmsu://