The Following User Says Thank You to danielwilms For This Useful Post: | ||
|
2010-01-04
, 13:29
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#12
|
I have once created a small Qt application. Look at the sources. There, in the "src" directory you will find the src.pro and the desktop file. In this example it works
Daniel
TARGET = timer HEADERS += src/form.h \ src/settings.h SOURCES += qtmain.cpp \ src/form.cpp \ src/settings.cpp FORMS += src/form.ui \ src/settings.ui # LEXS# LEXSOURCES += # YACCS# YACCSOURCES += INCLUDEPATH += LIBS += DEFINES += # All generated files goes same directory OBJECTS_DIR = build MOC_DIR = build UI_DIR = build DESTDIR = build TEMPLATE = app DEPENDPATH += VPATH += src \ uis CONFIG -= CONFIG += debug QT = core \ gui MY_BIN_PATH = /usr/bin/ # Default installation overwritten because qmake and debian both # uses DESTDIR in different purposes install.commands = -$(INSTALL_PROGRAM) \ $(TARGET) \ \"$(DESTDIR)\"$$MY_BIN_PATH$(QMAKE_TARGET) install.depends = $(TARGET) # Targets for debian source and binary package creation debian-src.commands = dpkg-buildpackage \ -S \ -r \ -us \ -uc \ -d debian-bin.commands = dpkg-buildpackage \ -b \ -r \ -uc \ -d debian-all.depends = debian-src \ debian-bin # Clean all but Makefile compiler_clean.commands = -$(DEL_FILE) \ $(TARGET) QMAKE_EXTRA_TARGETS += debian-all \ debian-src \ debian-bin \ install \ compiler_clean RESOURCES = unix { #VARIABLES isEmpty(PREFIX) { PREFIX = /usr/local } 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 += $${TARGET}.desktop }
make: *** [configure-stamp] Error 1 dpkg-buildpackage: failure: debian/rules build gave error exit status 2
|
2010-01-04
, 13:33
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#13
|
OK, this is how my src.pro file looks like now:
But I get the following error when trying to mad dpkg-buildpackage:Code:TARGET = timer HEADERS += src/form.h \ src/settings.h SOURCES += qtmain.cpp \ src/form.cpp \ src/settings.cpp FORMS += src/form.ui \ src/settings.ui # LEXS# LEXSOURCES += # YACCS# YACCSOURCES += INCLUDEPATH += LIBS += DEFINES += # All generated files goes same directory OBJECTS_DIR = build MOC_DIR = build UI_DIR = build DESTDIR = build TEMPLATE = app DEPENDPATH += VPATH += src \ uis CONFIG -= CONFIG += debug QT = core \ gui MY_BIN_PATH = /usr/bin/ # Default installation overwritten because qmake and debian both # uses DESTDIR in different purposes install.commands = -$(INSTALL_PROGRAM) \ $(TARGET) \ \"$(DESTDIR)\"$$MY_BIN_PATH$(QMAKE_TARGET) install.depends = $(TARGET) # Targets for debian source and binary package creation debian-src.commands = dpkg-buildpackage \ -S \ -r \ -us \ -uc \ -d debian-bin.commands = dpkg-buildpackage \ -b \ -r \ -uc \ -d debian-all.depends = debian-src \ debian-bin # Clean all but Makefile compiler_clean.commands = -$(DEL_FILE) \ $(TARGET) QMAKE_EXTRA_TARGETS += debian-all \ debian-src \ debian-bin \ install \ compiler_clean RESOURCES = unix { #VARIABLES isEmpty(PREFIX) { PREFIX = /usr/local } 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 += $${TARGET}.desktop }
Code:make: *** [configure-stamp] Error 1 dpkg-buildpackage: failure: debian/rules build gave error exit status 2
The Following User Says Thank You to krk969 For This Useful Post: | ||
|
2010-01-04
, 13:42
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#14
|
|
2010-01-04
, 13:44
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#15
|
Hi, do you know any information about the logo size (in pixels). I could be interested to do something
Edit: Or are those svg pics? Should I look Hildon documentation or QT documentation about what kind of format etc this logo needs to be? Are there any examples around?
Jux
|
2010-01-04
, 14:47
|
Posts: 31 |
Thanked: 18 times |
Joined on Oct 2009
@ Helsinki
|
#16
|
|
2010-01-04
, 15:29
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#17
|
Hi,
ok, first try.
I made first 64x64pix version and after that 48x48, but kind of cheated on 48x48
But do you think this 'sporty' clock tells what this counter is? is the functionality similar? So is my analogy correct?
And of course all the other comments are welcome also (should I change the 'time' in a clock to something else?)
Are there any restrictions how to use Maemo logo? (so can we use this minimalized version I made?). Or is it stupid idea to use this almost-Maemo-logo-text there?
I'm happy to make changes...
Cheers,
Jux
|
2010-01-04
, 16:19
|
Posts: 31 |
Thanked: 18 times |
Joined on Oct 2009
@ Helsinki
|
#18
|
The Following User Says Thank You to juxxxer For This Useful Post: | ||
|
2010-01-04
, 16:57
|
Posts: 31 |
Thanked: 18 times |
Joined on Oct 2009
@ Helsinki
|
#19
|
The Following User Says Thank You to juxxxer For This Useful Post: | ||
|
2010-01-04
, 22:16
|
|
Posts: 13 |
Thanked: 4 times |
Joined on Jan 2010
@ Amsterdam
|
#20
|
The Following User Says Thank You to marionegroponzi For This Useful Post: | ||
Cheers Daniel