Reply
Thread Tools
Posts: 10 | Thanked: 0 times | Joined on Jun 2010 @ Tampere, Finland
#1
I've created my little application using Qt Creator 2.0. Now I want to release it to Maemo Extras. .deb package is succesfully created. However Maemo Extras assistant requires .changes file.

Question: where I can get this .changes file? Using Nokia Qt SDK on Windows XP.
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Originally Posted by strekazoid View Post
I've created my little application using Qt Creator 2.0. Now I want to release it to Maemo Extras. .deb package is succesfully created. However Maemo Extras assistant requires .changes file.

Question: where I can get this .changes file? Using Nokia Qt SDK on Windows XP.
Unfortunately this you cannot do within the IDE, but you can use MADDE terminal for it. I have written a blog-post about how to do it for a desktop-widget. I think starting from scratch might be easier, than modifying the template which is created by qt creator. Further there is a good packaging guide in the wiki.

If you use the blog-post there are some modifications to be done.

1) the desktop file is just for desktop widgets, but here is an application example. The desktop file is needed that your application shows up in the task launcher. Otherwise you can just start it from command-line.
2) build dependencies is:

Code:
Build-Depends: debhelper (>= 5),libqt4-dev
3) no additional application dependencies needed, so it is just:

Code:
Depends: ${shlibs:Depends}, ${misc:Depends}
4) use mad dpkg-buildpackage -sa -S instead of mad dpkg-buildpackage -us -uc

If you have any problems, let me know.

Daniel
 

The Following 2 Users Say Thank You to danielwilms For This Useful Post:
Posts: 10 | Thanked: 0 times | Joined on Jun 2010 @ Tampere, Finland
#3
Thanks, will try.
 
zwiik's Avatar
Posts: 41 | Thanked: 14 times | Joined on Jul 2010
#4
hey
i did manage to upload it..but it failed at extras builder
the followin is the reason
Code:
TMP="/var/tmp"
TEMP="/var/tmp"
DEBIAN_FRONTEND="noninteractive"
DEBIAN_PRIORITY="critical"
DEB_BUILD_OPTIONS="parallel=4"
TMPDIR="/var/tmp"
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package tabcgpa
dpkg-buildpackage: source version 0.1
dpkg-buildpackage: host architecture armel
dpkg-checkbuilddeps: Using Scratchbox tools to satisfy builddeps
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/scratchbox/tools/bin/make clean
make[1]: Entering directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/tabcgpa-0.1'
Makefile:99: *** multiple target patterns.  Stop.
make[1]: Leaving directory `/home/builder1/maemo-fremantle-armel-extras-devel/work/tabcgpa-0.1'
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
what did i do wrong?

and

.sources is file can be found the in the directory above ur src folder after u have done dpkgbuildpackage
 
zwiik's Avatar
Posts: 41 | Thanked: 14 times | Joined on Jul 2010
#5
 

The Following User Says Thank You to zwiik For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#6
Originally Posted by danielwilms View Post
Unfortunately this you cannot do within the IDE,
For posterity's sake, this is now possible
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#7
Originally Posted by attila77 View Post
For posterity's sake, this is now possible
By coincidence I have that page open on another tab and I'm just about to try this, by the way, on windows too. I will let you know from my new machine if you have blown up this one with your crazy extra steps
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#8
@kojacker: kinda hard to send you PMs when your inbox is full

Don't have a windows install at hand... How about QtSDK\Maemo\4.6.2\madbin\mad.cmd ? Anything like that ?
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 1,086 | Thanked: 2,964 times | Joined on Jan 2010
#9
Originally Posted by attila77 View Post
@kojacker: kinda hard to send you PMs when your inbox is full

Don't have a windows install at hand... How about QtSDK\Maemo\4.6.2\madbin\mad.cmd ? Anything like that ?
heh yeah I got the email alert, I just deleted a couple of old pms

No mad. anything, just mad and mad-admin in non-executable form.

Edit: whoops, there is a mad.cmd in the madbin folder!

Here's the contents
@setlocal
@PATH C:\\NokiaQtSDK\\Maemo\\4.6.2\bin;%PATH%
@env.exe /bin/sh --login /bin/mad %*
I replaced the mad/mad.exe in the custom command with mad.cmd but I'm still having no joy with this. It's not generating any .tar.gz file, and the changes file made is not being accepted by the Maemo Extras assistant

Maemo Extras Assistant

File upload error. You didn't upload a valid .changes file.
Here's the compiler output from the new custom step, I've changed to red font where it's highlighted in red in the compiler output.

Starting: "C:\NokiaQtSDK\Maemo\4.6.2\madbin\mad.cmd" dpkg-buildpackage -sa -S -uc -us
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
which: pgp: unknown command
dpkg-buildpackage: source package mfakecaller
dpkg-buildpackage: source version 0.2.0
dpkg-buildpackage: source changed by unknown <>
dh_testdir
debian/rules clean
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
/bin/make clean
make[1]: Entering directory `/c/QtProjects/mfakecaller'
rm -f moc_mainwindow.cpp moc_MyClass.cpp
rm -f qrc_mfakecaller.cpp
rm -f ui_mainwindow.h
rm -f main.o mainwindow.o moc_mainwindow.o moc_MyClass.o qrc_mfakecaller.o
rm -f *~ core *.core
make[1]: Leaving directory `/c/QtProjects/mfakecaller'
dh_clean
dpkg-source -b mfakecaller
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: using source format `1.0'
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: building mfakecaller in mfakecaller_0.2.0.tar.gz
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: warning: source directory 'mfakecaller' is not <sourcepackage>-<upstreamversion> 'mfakecaller-0.2.0'
C:\NokiaQtSDK\Maemo\4.6.2\madbin\dpkg-source: info: building mfakecaller in mfakecaller_0.2.0.dsc
dpkg-genchanges -S -sa >../mfakecaller_0.2.0_source.changes
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: source only upload: Debian-native package
The process "C:\NokiaQtSDK\Maemo\4.6.2\madbin\mad.cmd" exited normally.
I can deploy and run the deb as expected. Can anyone figure out what the problem is from the above and help me to get this working for Maemo Exras?
__________________
Follow me on my neglected twitter @kojacker

Cybot950 - Control a robot with your N9/N950
SMSPetFeeder - Build a Bluetooth/SMS dog feeder with Qt, N950, and arduino
Nerf950 - Use your N9/N950 to fire a Nerf gun

Last edited by kojacker; 2011-02-13 at 20:52.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#10
Hmm... the red stuff (and the deb itself) is actually not unexpected, the output is sorta what it should be. Can you send me the changes and dsc files that you got ?
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:58.