blob: b11f8ebf583a9009cb68108c076690a26be4fdd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
You need to download libspotify 9 for ARM to be able to compile and create the .deb package.
Get it there: http://developer.spotify.com/en/libspotify/overview/
Extract the content of the tarball inside 'libspotify'
at the root of the project.
The resulting hierarchy should be:
libspotify/
include/
libspotify/
api.h
lib/
libspotify.so
libspotify.so.9
----
You also need your own libspotify API key to be able to compile and run the program
(see https://developer.spotify.com/en/libspotify/application-key/)
Create a file spotify_key.h inside libQtSpotify and copy the provided key inside it
using the following format:
#ifndef SPOTIFY_KEY_H
#define SPOTIFY_KEY_H
const uint8_t g_appkey[] = { 0x00, 0x00, ..., ... };
const size_t g_appkey_size = sizeof(g_appkey);
#endif // SPOTIFY_KEY_H
----
In addition to the libspotify API key, you also need to get a last.fm API key
(see http://www.last.fm/api/account)
Create a file lastfm_key.h inside liblastfm and copy the provided API key and shared
secret inside it using the following format:
#ifndef LASTFM_KEY_H
#define LASTFM_KEY_H
const char *g_lastfmAPIKey = "<api_key>";
const char *g_lastfmSecret = "<shared_secret>";
#endif // LASTFM_KEY_H
----
To compile the project, use the Qt SDK (version 1.1 or higher) with the Harmattan component
installed from the Qt SDK maintenance tool.
--> Open the project in Qt Creator, compile and deploy on the device!
|