View Single Post
shep's Avatar
Posts: 85 | Thanked: 65 times | Joined on Jan 2010 @ Ireland
#13
Originally Posted by tmsha View Post
shep: i transfered it with usb and installed with dpkg -i with root access.
Agree fully.

I think I have it now . The key would seem to be the "src.pro" file.

The section that begins "INSTALLS +=" contains a list of additional files to copy to filesystem locations. i had this wrong. You should not have to manually edit the Makefile if you have this right!

OK, so here's the src.pro file with the "INSTALLS +=" section corrected. (I've tried to colour code the matching settings)

Code:
TARGET = wwcalc
TEMPLATE = app
SOURCES += qtmain.cpp \
    mainwindow.cpp 
HEADERS += mainwindow.h 
FORMS += mainwindow.ui 
PREFIX = ../debian/wwcalc/usr

unix {
BINDIR = $$PREFIX/bin
DATADIR =$$PREFIX/share

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

#MAKE INSTALL

INSTALLS += target desktop icon64 service

  target.path =$$BINDIR

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

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += wwcalc.png
  
  service.path = $$DATADIR/usr/share/dbus-1/services
  service.files += wwcalc.service

}
For the purposes of simplifying my life I moved the icon to the "src" folder.

Madde commands to compile and deploy
Code:
mad dh_make --createorig --single -e s.l@gmail.com -c gpl
mad qmake
mad dpkg-buildpackage
mad remote -r wwcalc send ../wwcalc_0.3-1_armel.deb
mad remote -r wwcalc install wwcalc_0.3-1_armel.deb 
mad remote -r wwcalc run dpkg -L wwcalc
Full source code attached.

I have not tested just copying the .deb file across and installing with dpkg -i yet.

Going to bed now.

Shep
Attached Files
File Type: zip wwcalc-0.3.zip (345.6 KB, 115 views)
 

The Following 2 Users Say Thank You to shep For This Useful Post: