maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Qt Project: Countdown timer (https://talk.maemo.org/showthread.php?t=39202)

Sasler 2010-01-08 09:22

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by danielwilms (Post 457366)
Hmmm...the icon is not in the package. try to add "icon64" under INSTALLS and write the name of the png instead of using the variable, which gives you more control. This should do it. At least it adds it to the package. I haven't tested it if it shows up or not. But anyway, here are the changes:

Code:

INSTALLS += target desktop icon64

  target.path =$$BINDIR

  desktop.path = $$DATADIR/applications/hildon
  desktop.files += countdowntimer.desktop

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += ../data/64x64/countdowntimer.png

Further there is a bug, so that the icon-cache is not updated correctly. So try a restart as well if it does not show up ;)

Daniel

Thanks, I got it working now with icons and all. :D I put the the new Debian package and source files in the first post.

Now I wonder if by changing the BINDIR and DATADIR I could optify this? After I've done this, I could try to upload this to Extras Devel. :)

krk969 2010-01-08 09:47

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 458855)
Thanks, I got it working now with icons and all. :D I put the the new Debian package and source files in the first post.

Now I wonder if by changing the BINDIR and DATADIR I could optify this? After I've done this, I could try to upload this to Extras Devel. :)

yes that would do it. best thing is to check the makefiles that the .pro file generates and see if its installing your app into /opt.
the icons stay in /usr/share itself as u configured AFAIK

danielwilms 2010-01-08 11:34

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by krk969 (Post 458879)
the icons stay in /usr/share itself as u configured

that's right. And don't forget to configure your .dektop file correctly to the new path ;)

Daniel

Sasler 2010-01-08 11:38

Re: Qt Project: Countdown timer
 
Now I have the issue of missing libqt4-phonon package when trying to install this Debain package. By doing the following the install succeeds:

apt-get install libqt4-phonon

But does anyone know how it should be done so that it would install it automatically if missing?

krk969 2010-01-08 11:43

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 458974)
Now I have the issue of missing libqt4-phonon package when trying to install this Debain package. By doing the following the install succeeds:

apt-get install libqt4-phonon

But does anyone know how it should be done so that it would install it automatically if missing?

put it in your debian/control file
in the depends option :)

Sasler 2010-01-08 11:50

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by krk969 (Post 458981)
put it in your debian/control file
in the depends option :)

OK, here is my control file:

Code:

Source: countdowntimer
Section: user/other
Priority: extra
Maintainer: Sascha Makela <sascha.makela@gmail.com>
Build-Depends: debhelper (>= 5)
Standards-Version: 3.7.3
Homepage: <insert the upstream URL, if relevant>

Package: countdowntimer
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: A simple countdown timer
 <insert long description, indented with spaces>

How should I fill in the libqt4-phonon? Is it like:

Code:

Depends: ${shlibs:Depends}, ${misc:Depends}, ${libqt4-phonon:Depends}

Sasler 2010-01-08 11:57

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by krk969 (Post 458879)
yes that would do it. best thing is to check the makefiles that the .pro file generates and see if its installing your app into /opt.
the icons stay in /usr/share itself as u configured AFAIK

Just to make sure. Would this be correct?
Code:

QT += phonon
TARGET = countdowntimer
TEMPLATE = app
SOURCES += qtmain.cpp \
    settings.cpp \
    form.cpp
HEADERS += settings.h \
    form.h
FORMS += settings.ui \
    form.ui
PREFIX = ../debian/countdowntimer/usr

unix {
BINDIR = $$PREFIX/opt
DATADIR =$$PREFIX/opt

DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\"

#MAKE INSTALL

INSTALLS += target desktop icon64

  target.path =$$BINDIR

  desktop.path = $$DATADIR/applications/hildon
  desktop.files += countdowntimer.desktop

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += ../data/64x64/countdowntimer.png

}

Or would I need to remove/edit the $$PREFIX? What about DATADIR? Should that too be in /opt?

krk969 2010-01-08 12:04

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 458985)
OK, here is my control file:

Code:

Source: countdowntimer
Section: user/other
Priority: extra
Maintainer: Sascha Makela <sascha.makela@gmail.com>
Build-Depends: debhelper (>= 5)
Standards-Version: 3.7.3
Homepage: <insert the upstream URL, if relevant>

Package: countdowntimer
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: A simple countdown timer
 <insert long description, indented with spaces>

How should I fill in the libqt4-phonon? Is it like:

Code:

Depends: ${shlibs:Depends}, ${misc:Depends}, ${libqt4-phonon:Depends}

Build-Depends: debhelper (>= 5), libqt4-phonon

Sasler 2010-01-08 12:26

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by krk969 (Post 459007)
Build-Depends: debhelper (>= 5), libqt4-phonon

Now my control file looks like this:
Code:

Source: countdowntimer
Section: user/other
Priority: extra
Maintainer: Sascha Makela <sascha.makela@gmail.com>
Build-Depends: debhelper (>= 5)
Standards-Version: 3.7.3
Homepage: <insert the upstream URL, if relevant>

Package: countdowntimer
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Build-Depends: debhelper (>= 5), libqt4-phonon
Description: A simple countdown timer
 <insert long description, indented with spaces>

But I get this result:

Code:

dpkg-genchanges: warning: unknown information field 'Build-Depends' in input data in package's section of control info file

krk969 2010-01-08 12:35

Re: Qt Project: Countdown timer
 
Quote:

Originally Posted by Sasler (Post 459029)
Now my control file looks like this:
Code:

Source: countdowntimer
Section: user/other
Priority: extra
Maintainer: Sascha Makela <sascha.makela@gmail.com>
Build-Depends: debhelper (>= 5)
Standards-Version: 3.7.3
Homepage: <insert the upstream URL, if relevant>

Package: countdowntimer
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Build-Depends: debhelper (>= 5), libqt4-phonon
Description: A simple countdown timer
 <insert long description, indented with spaces>

But I get this result:

Code:

dpkg-genchanges: warning: unknown information field 'Build-Depends' in input data in package's section of control info file

you dont need to add that line, the
Build-Depends: debhelper (>= 5)
exists on Source under the Maintener section just add your dependent packages there.


All times are GMT. The time now is 02:08.

vBulletin® Version 3.8.8