Hi,
I have a weird problem. When I install my application it creates two shortcuts, one is the default Qt shortcut that should be there and one is a red square. Funny thing, when I click the red square icon the app launches, when I click the other icon that is created all I get is a black screen.
Also, application doesn't appear in application manager under settings until I restart the phone so when I press and hold the screen I don't get the red x thing for uninstall of the application.
Any ideas on what could be causing this?
Here's the .pro file:
Code:# When compiling for publishing the app, activate this # to change to the 0x2... UID and the right UID for the # Smart Installer. Using those UIDs requires a development # certificate. # For self signed versions, remove / comment the following line. #DEFINES += DEPLOY_VERSION #CHANGE UID3 BELOW BEFORE YOU DO A RELEASE!!!!! TARGET = restthing VERSION = 0.10.0 # If your application uses the Qt Mobility libraries, uncomment the following # lines and add the respective components to the MOBILITY variable. CONFIG += mobility qt-components MOBILITY += connectivity systeminfo sensors location # Define QMLJSDEBUGGER to allow debugging of QML in debug builds # (This might significantly increase build time) #DEFINES += QMLJSDEBUGGER QT += sql # Define for detecting Harmattan in .cpp files. # Only needed for experimental / beta Harmattan SDKs. # Will be defined by default in the final SDK. exists($$QMAKE_INCDIR_QT"/../qmsystem2/qmkeys.h"):!contains(MEEGO_EDITION,harmattan): { MEEGO_VERSION_MAJOR = 1 MEEGO_VERSION_MINOR = 2 MEEGO_VERSION_PATCH = 0 MEEGO_EDITION = harmattan DEFINES += MEEGO_EDITION_HARMATTAN } # Additional import path used to resolve QML modules in Creator's code model QML_IMPORT_PATH = OTHER_FILES += \ qml/images/*.svg \ qml/images/*.png # The .cpp file which was generated for your project. Feel free to hack it. SOURCES += \ tdes.cpp \ nfcpeertopeer.cpp \ appsettings.cpp \ restconnector.cpp \ json.cpp \ DatabaseManager.cpp \ orientation.cpp \ applicationprefs.cpp \ MD5LittleEndian.cpp \ restaurantbuffer.cpp \ main.cpp \ DES.cpp \ diversify_key.cpp \ locationwatcher.cpp \ SecureStorage.cpp \ kineticscroller.cpp HEADERS += \ nfcpeertopeer.h \ appsettings.h \ restconnector.h \ json.h \ DatabaseManager.h \ orientation.h \ applicationprefs.h \ MD5LittleEndian.h \ restaurantbuffer.h \ tdes.h \ DES.h \ diversify_key.h \ locationwatcher.h \ SecureStorage.h \ kineticscroller.h \ ThreadThing.h simulator { message(Simulator build) # The simulator uses the QML and images from Symbian, # as it doesn't have support for simulating Qt Quick Components for # MeeGo Harmattan. OTHER_FILES += \ qml/symbian/*.qml qmlFolder.source = qml/symbian/* qmlFolder.target = qml QML_IMPORT_PATH = qml/symbian OTHER_FILES += \ qml/images-symbian/*.qml imagesFolderSymbian.source = qml/images-symbian/* imagesFolderSymbian.target = qml DEPLOYMENTFOLDERS += imagesFolderSymbian } symbian { message(Symbian build) DEPLOYMENT.display_name = "restthing" contains(DEFINES, DEPLOY_VERSION) { TARGET.UID3 = 0x2005CE04 #CHANGE ME! CHANGE!!! } else { TARGET.UID3 = 0xE101C065 } ICON = restthing.svg TARGET.CAPABILITY += NetworkServices LocalServices Location TARGET.EPOCSTACKSIZE = 0x14000 TARGET.EPOCHEAPSIZE = 0x1000 0x1800000 # 24MB # Smart Installer package's UID # This UID is from the protected range and therefore the package will # fail to install if self-signed. By default qmake uses the unprotected # range value if unprotected UID is defined for the application and # 0x2002CCCF value if protected UID is given to the application contains(DEFINES,DEPLOY_VERSION) { DEPLOYMENT.installer_header = 0x2002CCCF } # add NfcSettings support include(nfcsettings/nfcsettings.pri) OTHER_FILES += \ qml/symbian/*.qml #\ #qml/*.* qmlFolder.source = qml/symbian/* qmlFolder.target = qml QML_IMPORT_PATH = qml/symbian # Symbian specific images OTHER_FILES += \ qml/images-symbian/*.qml imagesFolderSymbian.source = qml/images-symbian/* imagesFolderSymbian.target = qml DEPLOYMENTFOLDERS += imagesFolderSymbian # Autostart ndefhandler.sources = ndefhandler_restthing.xml ndefhandler.path = c:/private/2002AC7F/import/ DEPLOYMENT += ndefhandler # Localisation support. CODECFORTR = UTF-8 TRANSLATIONS += qml/symbian/restthing_sl.ts translationfiles.source = qml/symbian/*.qm DEPLOYMENTFOLDERS += translationfiles vendorName = "RestTeam" vendorinfo = \ "; Localised Vendor name" \ "%{$$addLanguageDependentPkgItem(vendorName)}" \ " " \ "; Unique Vendor name" \ ":\"$$vendorName\"" \ " " deployment_vendor.pkg_prerules += vendorinfo DEPLOYMENT += deployment_vendor } contains(MEEGO_EDITION,harmattan) { message(Harmattan build) # Temp #DEFINES += MEEGO_EDITION_HARMATTAN # Speed up launching on MeeGo/Harmattan when using applauncherd daemon CONFIG += qdeclarative-boostable OTHER_FILES += qtc_packaging/debian_harmattan/* OTHER_FILES += \ qml/meego/*.qml qmlFolder.source = qml/meego/* qmlFolder.target = qml QML_IMPORT_PATH = qml/meego # Don't use nfcinfo_harmattan.desktop. Otherwise, # the NDEF Autostart handler won't find the desktop file and # will not be able to auto-launch this app on tag-touch. # See: https://bugreports.qt.nokia.com/browse/QTMOBILITY-1848 harmattandesktopfile.files = restthing.desktop harmattandesktopfile.path = /usr/share/applications INSTALLS += harmattandesktopfile # To avoid conflicts, recommended to name this file according to the # full service name instead of just the app name. # See: https://bugreports.qt.nokia.com/browse/QTMOBILITY-1848 ndefhandler_service.files = com.nokia.qtmobility.nfc.restthing.service ndefhandler_service.path = /usr/share/dbus-1/services/ INSTALLS += ndefhandler_service launchericon.files = restthing80.png splash-restthing-l.png splash-restthing-p.png launchericon.path = /opt/restthing/ INSTALLS += launchericon } imagesFolder.source = qml/images/* imagesFolder.target = qml DEPLOYMENTFOLDERS += qmlFolder imagesFolder # Please do not modify the following two lines. Required for deployment. include(qmlapplicationviewer/qmlapplicationviewer.pri) qtcAddDeployment()

Reply With Quote

