[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API)

  Thread Rating:
  • 9 Votes - 4.22 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Gr8rtek Offline
Senior Member
Posts: 110
Joined: Jun 2011
Reputation: 2
Location: D/FW, Texas
Post: #811
Sveen Wrote:n00bquestion: Do I have to apply for a key in the link in the readme? Can't find "c-code" anywhere on the site...

I was able to go to http://developer.spotify.com, log in with my Spotify (premium) username/password, click "libspotify" in the top navigation, find "application key" (also in the top navigation) and then click c-code. Copy/paste this code into a text file and save as appkey.h, and you should be good to go.

It's been awhile since I've done this, and can't remember fully, but you may need to sign up for a developer's account. I'm sure others on this thread can confirm that.

Best of luck!
find quote
Sveen Offline
Junior Member
Posts: 14
Joined: Aug 2011
Reputation: 0
Post: #812
This is what I see: http://bildr.no/view/1126424
(This post was last modified: 2012-03-08 17:50 by Sveen.)
find quote
dodoadoodoo Offline
Member
Posts: 55
Joined: Jan 2010
Reputation: 1
Post: #813
Sveen Wrote:This is what I see: http://bildr.no/view/1126424

And what happens after you applied?

/D
find quote
Sveen Offline
Junior Member
Posts: 14
Joined: Aug 2011
Reputation: 0
Post: #814
Haven't tried that yet, thought it seemed unlikley since I see others here just get it right off the page, but I'll try now.

Edit: Haha, feel kinda stupid, justed typed in something and got the c-code link right away Tongue
(This post was last modified: 2012-03-08 19:50 by Sveen.)
find quote
Gr8rtek Offline
Senior Member
Posts: 110
Joined: Jun 2011
Reputation: 2
Location: D/FW, Texas
Post: #815
Sveen Wrote:Haven't tried that yet, thought it seemed unlikley since I see others here just get it right off the page, but I'll try now.

Edit: Haha, feel kinda stupid, justed typed in something and got the c-code link right away Tongue

Sometimes experience is the best teacher Confused Glad you got it figured out!
find quote
Sveen Offline
Junior Member
Posts: 14
Joined: Aug 2011
Reputation: 0
Post: #816
Following your guide Gr8rtek I have a problem in the build in Visual C++, I don't know where to look for a log file, so I've pasted everything in the Output window to pastebin: http://pastebin.com/X6nBtpwA
find quote
Nakebod Offline
Junior Member
Posts: 5
Joined: Nov 2010
Reputation: 0
Location: The Netherlands
Post: #817
Don't know if you are stuck on the same part as where I was stuck, but I couldn't compile it either. And the official XBMC source compiled fine. First time I tried this, so everything is new to me Smile

After trying to build it, I got 1 failure:
Build: 0 succeeded, 1 failed, 35 up-to-date, 0 skipped

Checking the output log further, I saw this line:
..\..\xbmc\Application.cpp(4835): error C3861: 'sleep': identifier not found
On line 4835 in xbmc\Application.cpp, there is a sleep(1);
Looking around in the file, every other sleep(); is called via Sleep(); and not sleep();

So I changed sleep(1); to Sleep(1); and it builds without errors.
I'm just an user, not a developer, so it could be a wrong fix, but so far it seems to work. Got myself a nice fresh XBMC build with Spotify support!
find quote
Sveen Offline
Junior Member
Posts: 14
Joined: Aug 2011
Reputation: 0
Post: #818
Nakebod Wrote:Don't know if you are stuck on the same part as where I was stuck, but I couldn't compile it either. And the official XBMC source compiled fine. First time I tried this, so everything is new to me Smile

After trying to build it, I got 1 failure:
Build: 0 succeeded, 1 failed, 35 up-to-date, 0 skipped

Checking the output log further, I saw this line:
..\..\xbmc\Application.cpp(4835): error C3861: 'sleep': identifier not found
On line 4835 in xbmc\Application.cpp, there is a sleep(1);
Looking around in the file, every other sleep(); is called via Sleep(); and not sleep();

So I changed sleep(1); to Sleep(1); and it builds without errors.
I'm just an user, not a developer, so it could be a wrong fix, but so far it seems to work. Got myself a nice fresh XBMC build with Spotify support!

Thank you worked like a charm Smile

Running the BuildSetup.bat I get asked if I want to compile a new exe or update an existing one. Which is right?
find quote
Gr8rtek Offline
Senior Member
Posts: 110
Joined: Jun 2011
Reputation: 2
Location: D/FW, Texas
Post: #819
Nakebod Wrote:Don't know if you are stuck on the same part as where I was stuck, but I couldn't compile it either. And the official XBMC source compiled fine. First time I tried this, so everything is new to me Smile

After trying to build it, I got 1 failure:
Build: 0 succeeded, 1 failed, 35 up-to-date, 0 skipped

Checking the output log further, I saw this line:
..\..\xbmc\Application.cpp(4835): error C3861: 'sleep': identifier not found
On line 4835 in xbmc\Application.cpp, there is a sleep(1);
Looking around in the file, every other sleep(); is called via Sleep(); and not sleep();

So I changed sleep(1); to Sleep(1); and it builds without errors.
I'm just an user, not a developer, so it could be a wrong fix, but so far it seems to work. Got myself a nice fresh XBMC build with Spotify support!

I got an error trying to compile against the latest "pull", which compiled fine previously (Beta 3), so it may be something Akezeke changed on his end. I rebuilt my dev machine yesterday and am still putting my dev environment back together. I will try another compile and see if it succeeds, or if it doesn't try to look for the change you listed above.

Quote:Running the BuildSetup.bat I get asked if I want to compile a new exe or update an existing one. Which is right?

Either is correct, depending on whether you want to create a new installer file or make changes to an installer file you have already created. I just make a new file, which makes it easier to go back to a previous version if I encounter errors.
find quote
beefystripper Offline
Junior Member
Posts: 25
Joined: Jan 2012
Reputation: 0
Post: #820
Hi there

Awsome addon, does it support iOS (ATV2) yet?

//Beefy
find quote
Post Reply