(→Create rpm package with meego-sdk-qtcreator) |
(wikify links, categorize) |
||
| Line 3: | Line 3: | ||
== Preparation == | == Preparation == | ||
| - | Assuming that we have [ | + | Assuming that we have [[SDK/Docs/1.1/Getting started with the MeeGo SDK for Linux|MeeGo Linux SDK]] or [[SDK/Docs/1.1/Getting started with the MeeGo SDK for Windows|MeeGo Windows SDK]] installed. |
| - | The textures is one example of Qt demo and included in qt-examples package. The project is at $sysroot/usr/lib/qt4/example/opengl/textures, where $sysroot is located in /usr/lib/madde/linux-${arch}/sysroots | + | The textures is one example of Qt demo and included in qt-examples package. The project is at <code>$sysroot/usr/lib/qt4/example/opengl/textures</code>, where <code>$sysroot</code> is located in <code>/usr/lib/madde/linux-${arch}/sysroots</code> |
| - | * Copy it to a separate folder $workspace as a stand-alone project. | + | * Copy it to a separate folder <code>$workspace</code. as a stand-alone project. |
cp -a $sysroot/usr/lib/qt4/examples/opengl/textures $workspace/textures-0.0.1 | cp -a $sysroot/usr/lib/qt4/examples/opengl/textures $workspace/textures-0.0.1 | ||
cd $workspace/textures-0.0.1 | cd $workspace/textures-0.0.1 | ||
| Line 45: | Line 45: | ||
INSTALLS += target icon desktop | INSTALLS += target icon desktop | ||
| - | |||
| Line 61: | Line 60: | ||
* Use "rpm -qpl <path to rpm> to check the content of the generated RPM file | * Use "rpm -qpl <path to rpm> to check the content of the generated RPM file | ||
| - | * [ | + | * [[SDK/Docs/1.1#Setting_up_your_device|Connect to a device]] or [[SDK/Docs/1.1/Configuring QEMU runtimes|Configure a QEMU runtime]] and go to meego-sdk-qtcreator's Build->Deploy project "textures" |
Then you can find QtDemoTextures in applications Zone under ''Programming''. | Then you can find QtDemoTextures in applications Zone under ''Programming''. | ||
| + | |||
| + | [[Category:Tutorial]] | ||
| + | [[Category:Packaging]] | ||
This page will create a MeeGo rpm package from an existing qt project - an OpenGL application called "textures" in qt examples. The original project is just a qt example project and has no icon and can not be launched from MeeGo UI. We will make it more like a stand alone application which can be launched from MeeGo applications panel and create a rpm package which can be installed on MeeGo device.
Assuming that we have MeeGo Linux SDK or MeeGo Windows SDK installed.
The textures is one example of Qt demo and included in qt-examples package. The project is at $sysroot/usr/lib/qt4/example/opengl/textures, where $sysroot is located in /usr/lib/madde/linux-${arch}/sysroots
$workspaceOpen file or project
Browse to $workspace/textures-0.0.1 and choose textures.pro, choose any MeeGo target you installed when prompted.
The project will be built and there will be errors in the "Compile Output" window if you haven't had a runtime running. You can see there's log "Started uploading file <path to rpm>". That means the RPM have been created successfully. You can look for the RPM there.
You can have the following ways to verify if your RPM is OK:
Then you can find QtDemoTextures in applications Zone under Programming.