You are not logged in.

#1 2009-05-04 20:00:58

Tristelune
Member
Registered: 2007-10-09
Posts: 86

[Solved] xmms2 and cdda plugin

Hello, I want to use the cdda plugin with xmms2. By default in AUR this plugin isn't enabled, so I have to modify the PKGBUILD to use it.
I do it by adding

--with-plugins cdda

in the PKGBUILD. So it looks like:

pkgname=xmms2
pkgver=0.5DrLecter
pkgrel=5          
pkgdesc="complete rewrite of the popular music player"
arch=('i686' 'x86_64')                                
url="http://xmms2.xmms.org/"                          
license=('LGPL')                                      
backup=('etc/conf.d/xmms2d.conf')                     
depends=('sqlite3' 'alsa-lib' 'libmad' 'boost')       
makedepends=('python' 'glib' 'sqlite3' 'curl' 'libmad' 'faad2' 'libvorbis'
        'flac' 'libmpcdec' 'smbclient' 'libmms' 'ffmpeg'                  
        'jack-audio-connection-kit' 'libxml2' 'pyrex'                     
        'ruby')                                                           
conflicts=('xmms2-devel')                                                 
install=xmms2.install
options=('force')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 \
        xmms2d.conf \
        xmms2d.rc \
        xmms2-helpers.patch)
md5sums=('9033ef15be9069ef43aeb4b6360a4d36'
         'b3e92b8e2275efc478af775df7a57a13'
         '893371ba4dc7b428322e44329683211f'
         'eddb800ebcc495b8574044a110a34add')

build() {
  cd $startdir/src/$pkgname-$pkgver

  patch -Np1 < $srcdir/xmms2-helpers.patch || return 1
  sed -i -e 's#avcodec.h#libavcodec/avcodec.h#' src/plugins/avcodec/avcodec.c

  ./waf configure --prefix=/usr --with-optionals=python,cli,launcher,xmmsclient++,xmmsclient++-glib,perl,ruby --with-plugins cdda || return 1
  ./waf build || return 1
  ./waf --destdir=$startdir/pkg install || return 1

  install -D -m 0755 ../xmms2d.rc $startdir/pkg/etc/rc.d/xmms2d && \
  install -D -m 0644 ../xmms2d.conf $startdir/pkg/etc/conf.d/xmms2d.conf
}

During the building there is no error excepted

/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied

But it is at the end, after I got I message saying that the installation is successful, so I think it should be no problem.

After installing it, if I try to play any file (not only audio cd), I get:

$ xmms2-launcher
Log output will be stored in /home/user/.cache/xmms2/xmms2d.log
xmms2 started
$ xmms2 play
ERROR: Couldn't start playback: Could not start playback

If I have a look at the log file:

--- Starting new xmms2d ---
 INFO: ../src/xmms/log.c:49: Initialized logging system :)
20:16:55  INFO: ../src/xmms/ipc.c:795: IPC listening on 'unix:///tmp/xmms-ipc-macquat'.
20:16:55  INFO: ../src/xmms/main.c:517: Using output plugin: alsa
20:16:55 ERROR: ../src/xmms/main.c:521: Baaaaad output plugin, try to change theoutput.plugin config variable to something usefull
20:16:55 ERROR: ../src/xmms/output.c:981: initalized output without a plugin, please fix!

But if I build the xmms2 package without enabling the cdda plugin I have no problem. A difference is that less files are compiled. Could somebody give me some hints what is wrong ?
Does somebody use the cdda plugin with xmms2 without problem ?

Thank you!

Last edited by Tristelune (2009-05-07 20:42:47)

Offline

#2 2009-05-07 20:42:23

Tristelune
Member
Registered: 2007-10-09
Posts: 86

Re: [Solved] xmms2 and cdda plugin

After searching I discovered that with the option

--with-plugins cdda

a lot of plugins are disabled and among them all output plugins, so it can't work. I gave a look at the configuration options and tried to disabled all the plugins
like in the package with --without-plugins:

--without-plugins=coreaudio, ices, mac, modplug, nms, pulse, sid, sun, waveout

In that way the cdda plugin can be used and it solved the problem, but I'm not sure it's necessary to recompile xmms2.

If somebody manages to use cdda without recompiling xmms2 I'm still interested.

And now I can listen to audio cd big_smile!

Offline

Board footer

Powered by FluxBB