• 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24
  • 84
[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API)
@akezeke

Can it be installed from your instructions on a livecd installation ?

Im running 10.1 installed to hd from livecd, im very happy with the bare system and dont want to run a full linux install on my asrock htcp.

Best regards.
---------------------------------------------------
Intel NUC Haswell D34010WYK | ATV2 | Logitech Harmony One | Onkyo TX-NR808 Receiver | QNAP 809 | APC Back-UPS RS 550
Reply
@alex84

I dont know, I have never used xbmc live but I suppose it should work.
Reply
Akezeke, many thanks for your continued efforts.
I have tried following your instructions with with libspotify 0.08 but I get the following error towards the end of the "make" phase:

xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::connect(bool)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:812: undefined reference to `sp_session_create'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:824: undefined reference to `sp_session_set_connection_type'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:825: undefined reference to `sp_session_set_connection_rules'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:822: undefined reference to `sp_session_preferred_bitrate'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getBrowseToplistTracks(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1653: undefined reference to `sp_session_user_country'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getBrowseToplistAlbums(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1626: undefined reference to `sp_session_user_country'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getBrowseToplistArtists(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1599: undefined reference to `sp_session_user_country'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getPlaylistItems(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1392: undefined reference to `sp_playlistcontainer_is_loaded'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1397: undefined reference to `sp_playlistcontainer_add_ref'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1417: undefined reference to `sp_playlist_get_image'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1423: undefined reference to `sp_track_is_local'
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

Have you any idea what is going wrong. Your previous instructions for libspotify 0.03 worked fine for me. I am running ubuntu maverick 64 bit.
Thanks.
Reply
Jackdaw Wrote:Akezeke, many thanks for your continued efforts.
I have tried following your instructions with with libspotify 0.08 but I get the following error towards the end of the "make" phase:

xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::connect(bool)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:812: undefined reference to `sp_session_create'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:824: undefined reference to `sp_session_set_connection_type'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:825: undefined reference to `sp_session_set_connection_rules'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:822: undefined reference to `sp_session_preferred_bitrate'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getBrowseToplistTracks(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1653: undefined reference to `sp_session_user_country'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getBrowseToplistAlbums(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1626: undefined reference to `sp_session_user_country'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getBrowseToplistArtists(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1599: undefined reference to `sp_session_user_country'
xbmc/xbmc.a(spotinterface.o): In function `SpotifyInterface::getPlaylistItems(CFileItemList&)':
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1392: undefined reference to `sp_playlistcontainer_is_loaded'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1397: undefined reference to `sp_playlistcontainer_add_ref'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1417: undefined reference to `sp_playlist_get_image'
/home/xbmc/downloads/xbmcspotify_v8/xbmc/xbmc/spotinterface.cpp:1423: undefined reference to `sp_track_is_local'
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

Have you any idea what is going wrong. Your previous instructions for libspotify 0.03 worked fine for me. I am running ubuntu maverick 64 bit.
Thanks.

It seems that libspotify didn't get installed correctly. Try to reinstall it and also try to install to an other path with prefix=...

I tryed the instructions on a natty 64 and it works, don't know if anything is different with maverick.
Reply
I have tried this under natty 64 also but get precisely the same error.
I have tried installing libspotify with prefix=usr/local but this makes no difference too. I don't know what's going wrong.
Reply
That's weird, I'm sure you installed the 64 bit version of the lib. Did the lib install correct? No errors?
Reply
Yes to all.
I am using a minimal install, XBMCbuntu.
I will try later today on a full install to see if it works that way.
Reply
It worked for me on a full install.
I can't see what is missing on my minimal install. As I say I was able to compile with the old 0.03 version and instructions.
Reply
This works fine for me except that it crashes when browsing playlists. Seems that the userdata passed to cb_imageLoaded contains corrupt data.
Reply
@tsint

Is it crashing every time? Is it also crashing if you have only playlists without local files?

I have made a small fix that hopefully solves it, it works for me even if I have local files in playlists.

Please try the updated version and report back.

/David
Reply
This compiled and installed on a Lucid 64 bit minimal install: http://wiki.xbmc.org/?title=XBMCbuntu
Many thanks for your efforts.
Reply
@akezeke: same problem with the new version, both with and without local tracks.

As a workaround I just return from the method, no thumbnail is loaded but I can browse the playlist and playback also works.

This is the row that causes the seg fault:
Code:
129: fileName.Format("%s", item->GetExtraInfo());
Reply
tsint Wrote:@akezeke: same problem with the new version, both with and without local tracks.

As a workaround I just return from the method, no thumbnail is loaded but I can browse the playlist and playback also works.

This is the row that causes the seg fault:
Code:
129: fileName.Format("%s", item->GetExtraInfo());

Ok, Iĺl take a look at it tomorrow!
Reply
@tsint I am not able to reproduce the error you are seeing, I added a small fix that might solve it.

I have updated the visual studio 2010 files and added the needed files for making it work on windows!

I also created an addon that jumps to the spotyXBMC menu, it allows you to add spotyXBMC as a shortcut in the main menu. (it is not a spotify addon, simply a starter script)
Reply
Thanks, but the fault remains. I will give it a try during the weekend, are you also using libspotify 0.0.8?
Reply
  • 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24
  • 84

Logout Mark Read Team Forum Stats Members Help
[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API)10