How to install application in device
hi, i am new in Qt. i have developed a simple “hello world” project of “Mobile Qt application”. it work fine on Qt simulator. now i want to test it on Nokia Device. how i can install my project in device. please help.
15 replies
Check this document about creating mobile apps for Symbian and Maemo/MeeGo with Qt Creator [doc.qt.nokia.com]
i have connect the device to pc.
in target i have select the “symbian device-run”.
now when i click on run.
then it show an error.
:-1: error: Failed to find package ‘D:/testfordevice/testfordevice_installer.sis’: Package file not found
how to solve this.
plz show me the correct way to install application.
As the message indicates, your device has installed a Qt version older than the one needed by your application. Since it automatically generates the _installer.sis then use that. It is a Smart Installer package which will first search for all the dependencies of your program, download any library missing and finally install your application.
If you want it manually, go to the installation folder of the Nokia SDK in the Symbian SDKs and install the appropriate .sis file with the Qt version required ( for example the default path of what i mention is: C:\QtSDK\Symbian\sis\SymbianX\Qt\4.7.X ). Then try to install once again your application.
The installer method is suggested since you will save time and effort. The only thing you need to take a look at is if your device supports the version of Qt you are going to use. For that we can help you if you reply with the model name.
Any way try installer and get back.
N95 8Gb has S60 3rd Edition, Feature Pack 1. That is only supported by Qt 4.6. So your only option is to build your program against Qt 4.6.3. By default, the 4.6 version is not installed with Nokia SDK. You need to go in Qt Creator -> Help -> Start Updater -> Package Manager -> Development Tools -> Symbian Toolchains -> S60 5th -> Qt 4.6.3
After it gets installed, go under the following path: “C:\QtSDK\Symbian\sis\S60_5th_Edition\Qt\4.6.3” and install Qt-4.6.3-for-S60v5.sis to your device. Now cross your fingers and hope that it works.
Bare in mind that Qt 4.6 has less things compared to Qt 4.7 so if you are using one of those features, your program needs to be refactored to remove the dependencies.
i am using following in my project.
in .pro
/**************in .pro file********/
QT += core gui\ xml\ network\ phonon\ webkit
TARGET.CAPABILITY += NetworkServices\ ReadUserData\ WriteUserData/*************** and in .h & .cpp file***********/
#include <QWidget>
#include <QObject>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkAccessManager>
#include <QFile>
#include <QProgressDialog>
#include <QProgressBar>
#include <QMessageBox>
#include <QFileInfo>
#include <QDir>
#include <QtCore>
#include <QMovie>
#include <QTimer>
#include <phonon/mediaobject.h>
#include <phonon/audiooutput.h>
#include <Phonon/SeekSlider>
#include <QLabel>
#include <QString>
#include <QList>
#include <QMainWindow>
#include <QtGui/QMainWindow>
#include <QUrl>
#include <QNetworkAccessManager>
#include <QPushButton>
#include <QtGui/QWidget>
#include <QtGui/QApplication>
#include <QtCore/QTimerEvent>
#include <QtGui/QShowEvent>
#include <QtGui/QIcon>
#include <QtCore/QBasicTimer>
#include <QtGui/QAction>
#include <phonon/backendcapabilities.h>
#include <phonon/effect.h>
#include <phonon/effectparameter.h>
#include <phonon/effectwidget.h>
#include <phonon/seekslider.h>
#include <phonon/videowidget.h>
#include <phonon/volumeslider.h>
#include <QKeyEvent>
#include <QLineEdit>
#include <QtXml/QXmlAttributes>
#include <QTreeView>
#include <QStandardItemModel>
#include <QListWidget>
#include <QtWebKit/QWebView>
#include <Phonon/MediaObject>
#include <phonon/MediaSource>
#include <Phonon/VideoWidget>
#include <Phonon>
#include <QVBoxLayout>
#include <phonon/mediasource.h>
#include <QTime>
#include <QtGui>
#include <QPixmap>
#include <QSplashScreen>
#include “mainwindow.h”
#include <QtCore/QCoreApplication>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QStringList>
#include <QBuffer>
#include <QDesktopServices>
#include <QFrame>
#include <QtXml/QXmlInputSource>
#include <QPushButton>
#include <QHBoxLayout>
#include <QDebug>
#include <QBoxLayout>
#include <QXmlInputSource>
#include <QVector>
/****************************************/
plz tell me which one feature is not supported.
ReadUserData/WriteUserData need a developer certificate to sign the application.
http://www.developer.nokia.com/Community/Wiki/Capabilities
You can get a developer certificate to use it on your devices, check that link and follow the steps:
http://www.developer.nokia.com/Community/Wiki/Developer_Certificate_(Symbian_Signed)
I hope this help you.
You need to see the following: https://bugreports.qt.nokia.com//browse/QTSDK-170
hi, i have seen https://bugreports.qt.nokia.com//browse/QTSDK-170
as per this i have used division.c in my project.
now i can install & launch my application.
but it gives following warning when creating .sis file.
cc1.exe:-1: error: warning: command line option “-Wno-ctor-dtor-privacy” is valid for C++/ObjC++ but not for C
cc1.exe:-1: error: warning: command line option “-fvisibility-inlines-hidden” is valid for C++/ObjC++ but not for C
You must log in to post a reply. Not a member yet? Register here!





