(Initial draft) |
|||
| Line 1: | Line 1: | ||
This tutorial introduce how to use the 3rd party libraries in MeeGo SDK. | This tutorial introduce how to use the 3rd party libraries in MeeGo SDK. | ||
| + | The contents in this page is still under development. Some features are in development and some bugs are in fixing. Please just take it as a reference instead of a formal released document. | ||
| - | + | ---- | |
| - | + | ||
| - | When you use the 3rd party library | + | When you use the 3rd party library in MeeGo, first you need to make sure the 3rd party library is built for MeeGo and has been packaged in rpm so it can be installed on MeeGo devices. |
| - | + | This tutorial creates a library called gameengine, which is a simple summator for only 2 operands. We will create an application called game-no-1 to use that library. It's simple story for developer to develop and use libraries which is not in default MeeGo distribution. | |
| - | == Create the 3rd party library | + | == Create rpm package of the 3rd party library == |
* Download the source of gameengine from http://wiki.meego.com/images/3rdparty_GameEngine.tgz | * Download the source of gameengine from http://wiki.meego.com/images/3rdparty_GameEngine.tgz | ||
* Uncompress it to your preferred directory. Here we use home directory. | * Uncompress it to your preferred directory. Here we use home directory. | ||
This tutorial introduce how to use the 3rd party libraries in MeeGo SDK.
The contents in this page is still under development. Some features are in development and some bugs are in fixing. Please just take it as a reference instead of a formal released document.
When you use the 3rd party library in MeeGo, first you need to make sure the 3rd party library is built for MeeGo and has been packaged in rpm so it can be installed on MeeGo devices. This tutorial creates a library called gameengine, which is a simple summator for only 2 operands. We will create an application called game-no-1 to use that library. It's simple story for developer to develop and use libraries which is not in default MeeGo distribution.
Contents |
cd ~/ tar zxvf 3rdparty_GameEngine.tgz
%{_prefix}/*
to
/*
sudo mad-admin -t <target> xrpm -i ~/GameEngine-build-meego/rrpmbuild/gameengine-0.0.1-1.i586.rpm
cd ~/ tar zxvf 3rdparty_game-no-1.tgz