forked from metabrainz/libmusicbrainz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.txt
72 lines (47 loc) · 1.74 KB
/
INSTALL.txt
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
================================================
Installation of the MusicBrainz Client Library
================================================
The instructions in this file should help you to build and install the
MusicBrainz 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/
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.