AudioManager  7.6.6
Native Application Runtime Environment
Download Compile Debug

Get the source

For compiling the source, you need to use git and the following packages:

sudo apt-get install libdbus-1-dev libsqlite3-dev doxygen libgtest-dev google-mock git cmake build-essential python2.6-dev

Getting the source got works with following command

git clone https://<kavi-account>:<kavi-password>@git.genivi.org/srv/git/AudioManager

Compile

In order to build the project (out of source build), please follow these instructions on the commandline:

mkdir /build
cd build
cmake ..

if you want to influence the build options, you can use ccmake for example (apt-get install ccmake)

ccmake ..

You will get a menue that let's you select different options for the build. Compiling with a simple

make

after the script finished, you should have:

  • a bin/ folder which contains all executables and the libraries:
  • a build/ folder which has all build objects (erase that if you need a clean build)
  • a doc/ folder in case you turned the documentation on

in order to install the AudioManager, you can do

sudo make install

package generation is supported via CPack. To build packages, you have to

make genivi_package
\endocde
this will create one package if your CMake version is < 2.8.5 (all binaries stripped):
\code
AudioManager-<git verison>-Linux.deb

if your version is above, you will get 4 packages (all binaries stripped) :

AudioManager-<git verison>-Linux-bin.deb [AudioManager binary]
AudioManager-<git verison>-Linux-dev.deb [header files needed to compile plugins]
AudioManager-<git verison>-Linux-sampleplugins.deb [sample plugins]
AudioManager-<git verison>-Linux-tests.deb [tests including tests for sample plugins,
installed in the ~/AudioMAnagerTests]

to create a tar.gz file of all sources (not including .git, build and bin folder,config files), you can do:

make package_source

This will create the following package:

AudioManager-<git verison>-Source.tar.gz

All packages will be placed in a folder called packages

Using Eclipse

First you need to get eclipse, for example by downloading it from http://www.eclipse.org/ use the C++ CDT version. Import the project with
File-> import project
Select "existing code as makefile project" and choose the root folder auf the AudioManager
In order to build with eclipse you need to tell eclipse where the makefile can be found:
In project properties enter as build command:

"make -j4 -C build" as build command

Debugging with eclipse

For debugging you need to modify debug configurations, choose the audiomanager as binary, the debugging should work.