Reply
Thread Tools
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#31
Originally Posted by danielwilms View Post
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. 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's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#32
Originally Posted by Sasler View Post
Thanks, I got it working now with icons and all. 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
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#33
Originally Posted by krk969 View Post
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
 

The Following User Says Thank You to danielwilms For This Useful Post:
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#34
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's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#35
Originally Posted by Sasler View Post
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
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#36
Originally Posted by krk969 View Post
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}
 
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#37
Originally Posted by krk969 View Post
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's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#38
Originally Posted by Sasler View Post
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
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#39
Originally Posted by krk969 View Post
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's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#40
Originally Posted by Sasler View Post
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.
 
Reply


 
Forum Jump


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