File: INSTALL.txt

package info (click to toggle)
libcoverart 1.0.0%2Bgit20150706-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 285
  • sloc: cpp: 2,213; ansic: 303; sh: 91; xml: 63; makefile: 32
file content (75 lines) | stat: -rw-r--r-- 1,876 bytes parent folder | download | duplicates (4)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
===================================================
 Installation of the CoverArtArchive Client Library
===================================================

The instructions in this file should help you to build and install the
CoverArtArchive client library from source on your system.

Dependencies
============

Before you start, make sure you have installed following libraries:

 * Neon -- HTTP client library
   http://www.webdav.org/neon/

 * Jansson -- C library for working with JSON data
 	 http://www.digip.org/jansson/

Building
========

Once you have installed all dependencies, you can compile the
library:

   cmake .
   make

And to install the built library run (as root):

   make install

Cross Compiling
===============

Cross compiling is a little more involved due to the automatic generation
of the C interface source files. Your cross compilation environment will
need appropriate headers and libraries for any dependencies.

First set up a toolchain file as specified here:

	http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file

Then build natively to generate the appropriate make-c-interface file

mkdir build-native
cd build-native
cmake ..
make

Finally, cross compile, telling cmake where to find your toolchain and the
make-c-interface binary:

mkdir build-cross
cd build-cross
cmake -DCMAKE_TOOLCHAIN_FILE=~/powerpc-cross \
	-DIMPORT_EXECUTABLES=../build-native/ImportExecutables.cmake ..
make

CMake Options
=============

By default, the library will be installed to /usr/local. You can change this
using the CMAKE_INSTALL_PREFIX option, for example:

   cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .

To disable debug messages, change the build type:

   cmake -DCMAKE_BUILD_TYPE=Release .

For overview of all available options use:

   cmake -L .

or use a GUI. See http://www.cmake.org/HTML/RunningCMake.html for more details.