Closed GoogleCodeExporter closed 9 years ago
I have updated the patch in subversion, it should work again.
Original comment by dirk.vdb
on 8 Dec 2009 at 6:43
Hi Dirk,
Thanks for updating the patch. I've rebuilt Mediatomb from clean SVN checkout
using
the new patch and it appears that lastfmlib is not being linked. Here's how I am
building lastfmlib.
wget -c http://lastfmlib.googlecode.com/files/lastfmlib-0.4.0.tar.gz
tar zxvf lastfmlib-0.4.0.tar.gz
cd lastfmlib-0.4.0
./configure --prefix=/usr/local --enable-logging
make
make install
I then checkout Mediatomb and the lastfmlib patch and build Mediatomb as
follows.
wget -c http://lastfmlib.googlecode.com/svn/trunk/mediatomb.patch
svn co https://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb mediatomb
cd mediatomb
patch -p0 < ../mediatomb.patch
The patch applies just fine.
autoreconf -i
./configure --prefix=/usr/local --with-liblastfmlib-h=/usr/local/include
--with-liblastfmlib-libs=/usr/local/lib
I've run the configure step without the '--with' options too. In either case I
see
the following during the configure, which looks good.
checking lastfmlib/lastfmscrobbler.h usability... yes
checking lastfmlib/lastfmscrobbler.h presence... yes
checking for lastfmlib/lastfmscrobbler.h... yes
checking for create_scrobbler in -llastfmlib... yes
Finally I get the following summary.
CONFIGURATION SUMMARY ----
sqlite3 : yes
mysql : yes
libjs : yes
libmagic : yes
inotify : yes
libexif : yes
id3lib : disabled
taglib : yes
libmp4v2 : yes
libdvdnav : yes
ffmpeg : yes
ffmpegthumbnailer : yes
lastfm : yes
external transcoding : yes
curl : yes
YouTube : yes
Weborama : disabled
Apple Trailers : yes
SopCast : disabled
libextractor : disabled
db-autocreate : yes
So at this point everything looks fine, so I run make as follows.
make
make install
However, run I run Mediatomb for the first time is doesn't add the lastfm
options to
the config file. If I 'ldd' the mediatomb binary I get the following, lastfmlib
is
missing.
linux-gate.so.1 => (0xb76ea000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb76d8000)
libmagic.so.1 => /usr/lib/libmagic.so.1 (0xb76bb000)
libmp4v2.so.0 => /usr/lib/libmp4v2.so.0 (0xb760d000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb7585000)
libmysqlclient_r.so.16 => /usr/lib/libmysqlclient_r.so.16 (0xb738f000)
libtag.so.1 => /usr/lib/libtag.so.1 (0xb72ff000)
libmozjs.so.0d => /usr/lib/libmozjs.so.0d (0xb724a000)
libexif.so.12 => /usr/lib/libexif.so.12 (0xb7218000)
libavformat.so.52 => /usr/lib/i686/cmov/libavformat.so.52 (0xb711c000)
libavutil.so.49 => /usr/lib/i686/cmov/libavutil.so.49 (0xb710b000)
libffmpegthumbnailer.so.3 => /usr/lib/libffmpegthumbnailer.so.3 (0xb70fc000)
libexpat.so.1 => /lib/libexpat.so.1 (0xb70d5000)
libdvdnav.so.4 => /usr/lib/libdvdnav.so.4 (0xb70be000)
libdvdread.so.4 => /usr/lib/libdvdread.so.4 (0xb709d000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7084000)
libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0xb7045000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6f53000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb6f2d000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6f0e000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb6dca000)
libz.so.1 => /lib/libz.so.1 (0xb6db4000)
/lib/ld-linux.so.2 (0xb76eb000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb6db0000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb6d7e000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb6d67000)
libnspr4.so.0d => /usr/lib/libnspr4.so.0d (0xb6d2b000)
libavcodec.so.52 => /usr/lib/i686/cmov/libavcodec.so.52 (0xb64e9000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb64d7000)
libswscale.so.0 => /usr/lib/i686/cmov/libswscale.so.0 (0xb64aa000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6482000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb645d000)
libidn.so.11 => /usr/lib/libidn.so.11 (0xb642a000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb641b000)
libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0xb63d0000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb63a3000)
libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb62fa000)
libgcrypt.so.11 => /lib/libgcrypt.so.11 (0xb627e000)
libdirac_encoder.so.0 => /usr/lib/libdirac_encoder.so.0 (0xb61ea000)
libfaad.so.0 => /usr/lib/libfaad.so.0 (0xb61aa000)
libgsm.so.1 => /usr/lib/libgsm.so.1 (0xb619c000)
libmp3lame.so.0 => /usr/lib/libmp3lame.so.0 (0xb6128000)
libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0xb6109000)
libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0xb6088000)
libspeex.so.1 => /usr/lib/sse2/libspeex.so.1 (0xb606b000)
libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb6015000)
libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb5f18000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb5eef000)
libx264.so.67 => /usr/lib/libx264.so.67 (0xb5e4d000)
libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0xb5d3a000)
libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb5d26000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb5d0b000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb5c59000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb5c2e000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0xb5c2a000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb5c21000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb5c1c000)
libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb5c0a000)
libgpg-error.so.0 => /lib/libgpg-error.so.0 (0xb5c05000)
liboil-0.3.so.0 => /usr/lib/liboil-0.3.so.0 (0xb5b8a000)
libogg.so.0 => /usr/lib/libogg.so.0 (0xb5b83000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb5a53000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb5a35000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb5a31000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb5a2c000)
Hope this is enough information to help you.
Regards, Martin.
Original comment by flexiondotorg
on 9 Dec 2009 at 7:56
I think I know what's wrong. I'll try to fix it this evening.
Original comment by dirk.vdb
on 9 Dec 2009 at 7:59
Just committed a new version of the patch, should work now...
Original comment by dirk.vdb
on 9 Dec 2009 at 7:32
Hi Dirk,
Thanks very much, patch is now working and lastfmlib is linked. Auto build
config.xml
has the last.fm account options.
Original comment by flexiondotorg
on 9 Dec 2009 at 9:07
Original comment by dirk.vdb
on 9 Dec 2009 at 9:36
Original issue reported on code.google.com by
flexiondotorg
on 7 Dec 2009 at 3:39