XBMC Community Forum
[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: XBMC General Discussion (/forumdisplay.php?fid=6)
+--- Thread: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) (/showthread.php?tid=67012)



- Flanhare - 2011-09-12 00:53

alex84 Wrote:Finaly got it working Sweet...

The steeps taken to get this running on an xbmclive install.

1.


2.


3.
Code:
cd /home/xbmc
Code:
wget -nc -q https://raw.github.com/Drol/XBMCStuff/master/sxgb.sh
Code:
chmod +x sxgb.sh
Code:
./sxgb.sh upgrade

The install will start and take around 5-15min or so, depending on pc speed. I got some warnings first of that the appkey.h was not found, and later on some missing librarys. This will get corrected soon.

When the building was done i did not have spotixbmc installed and i follow IAmNotAUser's post adding missing librarys.

Code:
apt-get install libyajl-dev
Code:
apt-get update
Code:
apt-get install libplist-dev python-support python-dev ccache libyajl-dev libvdpau-dev debhelper zip git-core make g++ gcc gawk pmount libtool yasm nasm

automake cmake gperf gettext unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev

libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl3 libcurl4-openssl-dev x11proto-xinerama-dev libxinerama-dev libxrandr-dev libxrender-

dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev

libfontconfig-dev libbz2-dev libboost-dev libfaac-dev libenca-dev libxt-dev libxtst-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev

libsamplerate-dev libmms-dev libmpeg3-dev libfaad-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libwavpack-dev libmpeg2-4-dev

libmicrohttpd-dev libmodplug-dev libboost-thread-dev -y -q

And now this will take some time....
Code:
./sxgb.sh refresh

The installation was refreshed took around 30min after this i could start upp spotifxbmc Big Grin

Thanks to Flanhare's script and IAmNotAUser 's post.
I have written the steps in the order i done them and that worked for me. If you want to do the steps in another order it's up to you.

And also a big thanks to Akeeze, this is the best thing happening to xbmc since sliced bread Nod

Best regards.
Nice it is working :-) But I still don't get it, all those libs is already in the script. Or am I missing something? *shrugs* :-)


- tsint - 2011-09-12 21:48

alex84 Wrote:And also a big thanks to Akeeze, this is the best thing happening to xbmc since sliced bread Nod

+1

I play spotify in xbmc several hours per day, love it! Cool


- idlerobbo - 2011-09-13 00:07

will this work on ATV2?


- KRKA01 - 2011-09-13 16:01

@Gr8rtek

Thanks for the guide. Used it as a reference when i compiled and configured SpotifyXBMC on Windows.

I had one problem though, you also need the "Microsoft DirectX SDK" dated August 2009 or later to be able to compile. More information here:
http://wiki.xbmc.org/index.php?title=XBMC_for_Windows

Also, according to the "HOW-TO compile XBMC for Windows from source code" guide,
you can also skip step 14 -16 and 25 -26 if you only want to build a Setup installer
and you do not plan to Running/Debugging XBMC from Visual C++ Express 2010.


- coendeurloo - 2011-09-13 19:30

Flanhare Wrote:Have you ran "apt-get update" before? Otherwise google how to install.

Yes I have done that.

Code:
apt-get install libyajl-dev

Still can't be found.

What should I google? Shouldn't there be an extra source in my sources list or something so it can find it?

Edit: got it! For everyone who has the same error (which should be every default XBMCLive user <--- my case...?) run this:

Code:
sudo add-apt-repository ppa:team-iquik/xbmc-svn

Then do an apt-get update and try it again.


- coendeurloo - 2011-09-13 20:04

Well, even though I managed to install the missing libyajl-dev, I still can't find Spotify in my music addons. These are the last lines in Putty after running the missing libraries from IAmNotAUser:

[Image: 2hi5fyr.png]

What could be wrong?


- Gr8rtek - 2011-09-14 16:20

kooolkat357 Wrote:@Gr8rtek

Thanks allot for your nice Windows compiling/installation guide Smile

Helped me out allot, got spotifyXbmc 2 work @ first try!

Edit: Spotify works but every other file online & offline will not play! Any advice?
@KoolKat357

Glad the guide was helpful. Not sure why local files won't play. I would recommend turning on debugging and see if the log files turn up any information.


- Gr8rtek - 2011-09-14 16:22

KRKA01 Wrote:@Gr8rtek

Thanks for the guide. Used it as a reference when i compiled and configured SpotifyXBMC on Windows.

I had one problem though, you also need the "Microsoft DirectX SDK" dated August 2009 or later to be able to compile. More information here:
http://wiki.xbmc.org/index.php?title=XBMC_for_Windows

Also, according to the "HOW-TO compile XBMC for Windows from source code" guide,
you can also skip step 14 -16 and 25 -26 if you only want to build a Setup installer
and you do not plan to Running/Debugging XBMC from Visual C++ Express 2010.
@KRKA01

Thanks for catching this. I will see if I can edit the original post with these new details. As I stated in the original post, I'm not a developer and am completely new to compiling, and as such I left the debug steps in tact from the thread on "How to Compile XBMC for Windows". I appreciate the feedback!


- Gr8rtek - 2011-09-14 16:52

@MDHog

I have lots of thoughts, but not sure I can repost any of them here Wink

First guess (and this is a guess) would be that something failed prior to Step 15. As KRKA01 pointed out, my guide failed to include the DirectX SDK, which would be necessary if you are building a Release (DirectX) version. I don't know if this will help, but make sure you are running the latest Visual C++ version, latest .NET version with patches and try again. Not sure if any developers can chime in and provide insight as to where to look for additional error log information or not.

Hope this helps, and best of luck!


- MDHog - 2011-09-15 01:08

Gr8rtek Wrote:@MDHog

I have lots of thoughts, but not sure I can repost any of them here Wink

First guess (and this is a guess) would be that something failed prior to Step 15. As KRKA01 pointed out, my guide failed to include the DirectX SDK, which would be necessary if you are building a Release (DirectX) version. I don't know if this will help, but make sure you are running the latest Visual C++ version, latest .NET version with patches and try again. Not sure if any developers can chime in and provide insight as to where to look for additional error log information or not.

Hope this helps, and best of luck!

It was SDK and skipping steps 14-16 (dont know which made the difference). Got it working now. Great to finally have spotify working on XBMC/Windows 7. Thanks to all for the help.