Blame INSTALL.txt

Packit f70c98
================================================
Packit f70c98
 Installation of the MusicBrainz Client Library
Packit f70c98
================================================
Packit f70c98
Packit f70c98
The instructions in this file should help you to build and install the
Packit f70c98
MusicBrainz client library from source on your system.
Packit f70c98
Packit f70c98
Dependencies
Packit f70c98
============
Packit f70c98
Packit f70c98
Before you start, make sure you have installed following libraries:
Packit f70c98
Packit f70c98
 * Neon -- HTTP client library
Packit f70c98
   http://www.webdav.org/neon/
Packit f70c98
Packit f70c98
Building
Packit f70c98
========
Packit f70c98
Packit f70c98
Once you have installed all dependencies, you can compile the
Packit f70c98
library:
Packit f70c98
Packit f70c98
   cmake .
Packit f70c98
   make
Packit f70c98
Packit f70c98
And to install the built library run (as root):
Packit f70c98
Packit f70c98
   make install
Packit f70c98
Packit f70c98
Cross Compiling
Packit f70c98
===============
Packit f70c98
Packit f70c98
Cross compiling is a little more involved due to the automatic generation
Packit f70c98
of the C interface source files. Your cross compilation environment will
Packit f70c98
need appropriate headers and libraries for any dependencies.
Packit f70c98
Packit f70c98
First set up a toolchain file as specified here:
Packit f70c98
Packit f70c98
	http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file
Packit f70c98
Packit f70c98
Then build natively to generate the appropriate make-c-interface file
Packit f70c98
Packit f70c98
mkdir build-native
Packit f70c98
cd build-native
Packit f70c98
cmake ..
Packit f70c98
make
Packit f70c98
Packit f70c98
Finally, cross compile, telling cmake where to find your toolchain and the
Packit f70c98
make-c-interface binary:
Packit f70c98
Packit f70c98
mkdir build-cross
Packit f70c98
cd build-cross
Packit f70c98
cmake -DCMAKE_TOOLCHAIN_FILE=~/powerpc-cross \
Packit f70c98
	-DIMPORT_EXECUTABLES=../build-native/ImportExecutables.cmake ..
Packit f70c98
make
Packit f70c98
Packit f70c98
CMake Options
Packit f70c98
=============
Packit f70c98
Packit f70c98
By default, the library will be installed to /usr/local. You can change this
Packit f70c98
using the CMAKE_INSTALL_PREFIX option, for example:
Packit f70c98
Packit f70c98
   cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
Packit f70c98
Packit f70c98
To disable debug messages, change the build type:
Packit f70c98
Packit f70c98
   cmake -DCMAKE_BUILD_TYPE=Release .
Packit f70c98
Packit f70c98
For overview of all available options use:
Packit f70c98
Packit f70c98
   cmake -L .
Packit f70c98
Packit f70c98
or use a GUI. See http://www.cmake.org/HTML/RunningCMake.html for more details.