(Created page with "== Introduction == 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 …") |
(→Create rpm package with meego-sdk-qtcreator) |
||
| Line 52: | Line 52: | ||
* Go to File->Open file or project | * Go to File->Open file or project | ||
Browse to $workspace/textures-0.0.1 and choose textures.pro, choose any MeeGo target you installed when prompted. | Browse to $workspace/textures-0.0.1 and choose textures.pro, choose any MeeGo target you installed when prompted. | ||
| - | * Go to Build-> | + | * Go to Build->Build project "textures" (or "Deploy Project" in QtCreator 2.1.0) |
| - | 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 | + | 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. |
| - | + | ||
| - | + | ||
| - | + | ||
== Verify the rpm package == | == Verify the rpm package == | ||
Contents |
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
cp -a $sysroot/usr/lib/qt4/examples/opengl/textures $workspace/textures-0.0.1 cd $workspace/textures-0.0.1
cp images/side6.png textures.png
vi textures.desktop
with following contents:
[Desktop Entry] Name=QtDemoTextures Comment=Qt Demo Textures Exec=textures Categories=Development; Icon=textures Type=Application Terminal=false StartupNotify=true
vi textures.pro
The contents will be:
HEADERS = glwidget.h \
window.h
SOURCES = glwidget.cpp \
main.cpp \
window.cpp
RESOURCES = textures.qrc
QT += opengl
# install
target.path = /usr/bin
icon.files = textures.png
icon.path = /usr/share/icons
desktop.files = textures.desktop
desktop.path = /usr/share/applications
INSTALLS += target icon desktop
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.