maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras (https://talk.maemo.org/showthread.php?t=57873)

strekazoid 2010-07-06 06:31

[Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
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.

danielwilms 2010-07-06 07:46

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
Quote:

Originally Posted by strekazoid (Post 742015)
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

strekazoid 2010-07-06 08:45

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
Thanks, will try.

zwiik 2010-07-06 11:20

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
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 2010-07-06 11:22

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
this is my project pagehttps://garage.maemo.org/projects/cgpacal/

attila77 2011-02-13 12:44

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
Quote:

Originally Posted by danielwilms (Post 742065)
Unfortunately this you cannot do within the IDE,

For posterity's sake, this is now possible

kojacker 2011-02-13 12:46

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
Quote:

Originally Posted by attila77 (Post 944905)
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 ;)

attila77 2011-02-13 17:00

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
@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 ?

kojacker 2011-02-13 17:04

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
Quote:

Originally Posted by attila77 (Post 945119)
@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
Quote:

@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

Quote:

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.

Quote:

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?

attila77 2011-02-13 21:11

Re: [Qt] Releasing .deb package generated by Qt Creator to Maemo Extras
 
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 ?


All times are GMT. The time now is 17:03.

vBulletin® Version 3.8.8