View Single Post
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#28
Originally Posted by Sasler View Post
I got a strange new problem. After I install the Debian package, it looks like this and I get these errors. But when I reboot my device, it looks normal and I get no errors. Any idea why it's doing this?
You are running it as root I guess?!? You should run it as normal user and then it should work. I haven't looked at your latest sources, but the one you have posted here follow these steps and it should work:

1. create a folder <package-name>-<version-number> like countdowntimer-0.1

2. copy the sources into that folder

3. create in the folder a file named countdowntimer.pro with this content:
Code:
TEMPLATE = subdirs
SUBDIRS  = src
4. go into the src folder and create a file called src.pro with the following content:

Code:
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/bin
DATADIR =$$PREFIX/share

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

#MAKE INSTALL

INSTALLS += target desktop

  target.path =$$BINDIR

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

}
5. go back to the main-folder and run:

Code:
mad dh_make --createorig --single -e <your email> -c gpl
press enter. This command creates the basic files in a new folder called debian. To find out more about the meaning of the different files, please read the documentation about debian packages.

6. run:

Code:
mad qmake
7. run:

Code:
mad dpkg-buildpackage
That should do it to get a really basic package done for testing, which includes the entry in the task launcher. I don't know, which editor you used for the .desktop file, but there was a special character in the first line, which avoid reading it correctly. After rewriting it, it worked perfectly fine.

hope this helped and sorry for the delay.

Daniel
 

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