Re: Packaging Qt application
MADDE doesn't have dh_make, on MADDE you use
[CODE]mad pscreate -t qt_simple myprojectname[/CODE]
to produce Debian package from the template.
[url]http://wiki.forum.nokia.com/index.php/Getting_started_with_MADDE_on_Windows[/url]
[url]http://wiki.maemo.org/MADDE/Qt_Example[/url]
Re: Packaging Qt application
[QUOTE=divanov;734674]MADDE doesn't have dh_make, on MADDE you use
[CODE]mad pscreate -t qt_simple myprojectname[/CODE]
to produce Debian package from the template.
[url]http://wiki.forum.nokia.com/index.php/Getting_started_with_MADDE_on_Windows[/url]
[url]http://wiki.maemo.org/MADDE/Qt_Example[/url][/QUOTE]
But this command is used to create the sample project from the templates, and the 'Debian' folder is already exist.
My question is that I have created a project with Qt for windows, there is no 'Debian' folder. How I run the 'mad dpkg-buildpackage' in this case?
Re: Packaging Qt application
[QUOTE=wktsang1;734707]But this command is used to create the sample project from the templates, and the 'Debian' folder is already exist.
My question is that I have created a project with Qt for windows, there is no 'Debian' folder. How I run the 'mad dpkg-buildpackage' in this case?[/QUOTE]
The name of the folder is debian, everything is case sensitive on Unix/Linux. debian folder contains information about package and it's produced either by
[I]mad pscreate[/I] or by [I]dh_make[/I] or manually.
Re: Packaging Qt application
[QUOTE=divanov;734711]The name of the folder is debian, everything is case sensitive on Unix/Linux. debian folder contains information about package and it's produced either by
[I]mad pscreate[/I] or by [I]dh_make[/I] or manually.[/QUOTE]
Sorry I am still not understand how to create the debian folder. Now I find a 'stupid' way to generate the project package but still have problem.
First I run the command "mad pscreate -t qt_simple testing", the 'testing' folder is created with the sample project with the debian folder. Then I delete all files in this folder except the debian & data folder, and copy all files/folder from my existing project to the 'testing' folder.
In this case I can run the 'mad dpkg-buildpackage' command, and it can generate the DEB file in the parent folder. There is no error to install it in the mobile, but I cannot find my application in the program file.
I have check all files in the debian folder, but still find no hint, please help
Re: Packaging Qt application
[QUOTE=wktsang1;734791]Sorry I am still not understand how to create the debian folder.[/QUOTE]
It's produced either by mad pscreate or by dh_make or manually.
[QUOTE=wktsang1;734791]Then I delete all files in this folder except the debian & data folder, and copy all files/folder from my existing project to the 'testing' folder.[/QUOTE]
Normally you copy your files to [I]src[/I] folder. Otherwise you need to modify qtprog.pro appropriately.
[QUOTE=wktsang1;734791]
In this case I can run the 'mad dpkg-buildpackage' command, and it can generate the DEB file in the parent folder. There is no error to install it in the mobile, but I cannot find my application in the program file.[/QUOTE]
What is [I]the program file[/I]?
Re: Packaging Qt application
[QUOTE=divanov;734800]It's produced either by mad pscreate or by dh_make or manually.
Normally you copy your files to [I]src[/I] folder. Otherwise you need to modify qtprog.pro appropriately.
What is [I]the program file[/I]?[/QUOTE]
Here is my testing.pro, I does not use the src folders, the .pro and other source codes are in same folder.
=========
TARGET = testing
TEMPLATE = app
SOURCES += main.cpp \
frmmain.cpp
HEADERS += frmmain.h
FORMS += frmmain.ui
RESOURCES += ImagesList.qrc
=========
Re: Packaging Qt application
[QUOTE=wktsang1;734806]Here is my testing.pro, I does not use the src folders, the .pro and other source codes are in same folder.
=========
TARGET = testing
TEMPLATE = app
SOURCES += main.cpp \
frmmain.cpp
HEADERS += frmmain.h
FORMS += frmmain.ui
RESOURCES += ImagesList.qrc
=========[/QUOTE]
Your project file misses installation commands. Check automatically generated qtprog.pro for the missing stuff.
Re: Packaging Qt application
[QUOTE=divanov;734813]Your project file misses installation commands. Check automatically generated qtprog.pro for the missing stuff.[/QUOTE]
I used 'src' folder to contain the source files, and changed the pro as following:
=========
TARGET = iconferenceroom
TEMPLATE = app
SOURCES += main.cpp \
frmmain.cpp
HEADERS += frmmain.h
FORMS += frmmain.ui
RESOURCES += ImagesList.qrc
LEXSOURCES += #LEXS#
YACCSOURCES += #YACCS#
INCLUDEPATH +=
LIBS +=
DEFINES +=
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
DESTDIR = build
TEMPLATE = app
DEPENDPATH +=
VPATH += src uis
CONFIG -=
CONFIG += debug
QT=core gui
INSTALLS += target
target.path = /usr/bin/
INSTALLS += desktop
desktop.path = /usr/share/applications/hildon
desktop.files = data/iconferenceroom.desktop
INSTALLS += service
service.path = /usr/share/dbus-1/services
service.files = data/iconferenceroom.service
INSTALLS += icon64
icon64.path = /usr/share/icons/hicolor/64x64/apps
icon64.files = data/64x64/iconferenceroom.png
debian-src.commands = dpkg-buildpackage -S -r -us -uc -d
debian-bin.commands = dpkg-buildpackage -b -r -uc -d
debian-all.depends = debian-src debian-bin
compiler_clean.commands = -$(DEL_FILE) $(TARGET)
QMAKE_EXTRA_TARGETS += debian-all debian-src debian-bin compiler_clean
=============
Now I can run the appliication in my N900 via MAD Developer, and I also can create the package file, but the app icon does not occur after installation.
Which parameter in the PRO file i need to modify?
Re: Packaging Qt application
[QUOTE=wktsang1;735256]Now I can run the appliication in my N900 via MAD Developer, and I also can create the package file, but the app icon does not occur after installation.[/QUOTE]
Do you have these files?
data/iconferenceroom.desktop
data/64x64/iconferenceroom.png
And what is the content of desktop file?
Re: Packaging Qt application
[QUOTE=divanov;735268]Do you have these files?
data/iconferenceroom.desktop
data/64x64/iconferenceroom.png
And what is the content of desktop file?[/QUOTE]
Thank a lot, I finally finsihed the first application with Qt for Maemo
Re: Packaging Qt application
[QUOTE=wktsang1;737711]Thank a lot, I finally finsihed the first application with Qt for Maemo[/QUOTE]
Explaining what was your problem and how did you resolve it could be beneficial to other people facing the same or similar problem in future.
Re: Packaging Qt application
[QUOTE=divanov;737718]Explaining what was your problem and how did you resolve it could be beneficial to other people facing the same or similar problem in future.[/QUOTE]
Ok, just forgot to update the content in the file data/iconferenceroom.desktop:>