Menu [hide]
  Home
  News
  Forums
  Blogs
Google
Create a development environment in Debian or Ubuntu

Table of content


1. Introduction

This article describes the steps you need to do before beginning to develop for Morphine.TV on a debian or ubuntu-system.
If you are using another distro, you can easily adopt it.

2. Installation of required packages


sudo aptitude install libsqlite3-dev     \
                      sqlite3            \
                      libxine-dev        \
                      libpng12-dev       \
                      libjpeg62-dev      \
                      libx11-dev         \
                      libxext-dev        \
                      libmpeg3-dev       \
                      libcurl3-dev       \
                      libasound2-dev     \
                      libtag1-dev        \
                      libhal-storage-dev \
                      libsigc++-dev      \
                      build-essential


3. Installation of DirectFB-1.2.0


You need to install the DirectFB core and extras by executing the following commands:

wget http://www.directfb.org/downloads/Core/DirectFB-1.2.0-rc1.tar.gz
cd <path-to-DirectFB-1.2.0-rc1.tar.gz>
tar zxf DirectFB-1.2.0-rc1.tar.gz
cd DirectFB-1.2.0-rc1
./configure
make
sudo make install

wget http://www.directfb.org/downloads/Extras/DirectFB-extra-1.2.0-rc1.tar.gz
cd <path-to-DirectFB-extra-1.2.0-rc1.tar.gz>
tar zxf DirectFB-extra-1.2.0-rc1.tar.gz
cd DirectFB-extra-1.2.0-rc1
./configure
make
sudo make install


4. Installation of the disko framework


Morphine.TV is developed using our disko framework. Follow these instructions to get the sources and build them.

First you need to install git to access the latest disko sources.

sudo aptitude install git-core


Then fetch the latest sources from the git-repository.

git clone git://git.directfb.org/git/directfb/libs/disko.git


Now build and install the sources.

cd disko
make 
make [prefix=<path>] install


If you don't specify prefix the default location will be $HOME/disko.

5. Getting the Morphine.TV Sources from the Subversion repository


We host our sources at Sourceforge.
From their Subversion repositories you can get read access to our code.

If you don't have subversion installed, you can do it this way:
sudo aptitude install subversion


To get the code simply execute the following command:
svn co https://mms4l.svn.sourceforge.net/svnroot/mms4l morphine.tv


This will give you the recent sources and puts them into a directory named 'morphine.tv'.

6. Building the sources


Build all Morphine.TV components by entering:

cd <path-to-morphine.tv>
make 
make [prefix=<path>] install


If you don't specify prefix the default location will be $HOME/morphine.tv.

7. Creating Eclipse projects from the Morphine.TV sources


If you don't have installed eclipse, download it at http://www.eclipse.org. You should take the Eclipse IDE for C/C++ Developers.

You can either install the subversion plugin for eclipse and check out the sources or import the folder from the filesystem.