I have starteed at the begining:
from visual studio 2008 comand prompt
nmake clean
configure -vc -debug //discovery qmake 4.6.1 (from Qt for winCE)
nmake
nmake install
then
1.I created Qt4 Gui Application.
2. create *.pro file from project and add to this file
CONFIG += mobility
MOBILITY += systeminfo
QT += network
CONFIG += mobility
MOBILITY += systeminfo
QT += network
To copy to clipboard, switch view to plain text mode
3. Menu qt->open Qt projet file(*.pro) and i get file I edited
My source code is
#include <QtGui/QApplication>
#include <QLabel>
#ifdef Q_OS_SYMBIAN
#include <qsysteminfo.h>
#else
#include <QSystemInfo> //(1)
#endif
using namespace QtMobility; //(2)
int main(int argc, char *argv[])
{
label->show();label->resize(100,30);
return a.exec();
}
#include <QtGui/QApplication>
#include <QLabel>
#ifdef Q_OS_SYMBIAN
#include <qsysteminfo.h>
#else
#include <QSystemInfo> //(1)
#endif
using namespace QtMobility; //(2)
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QLabel *label = new QLabel("test");
label->show();label->resize(100,30);
return a.exec();
}
To copy to clipboard, switch view to plain text mode
To this point everything is fine and when I run app I can see smal window witch "test"
But when I add one line:
#include <QtGui/QApplication>
#include <QLabel>
#ifdef Q_OS_SYMBIAN
#include <qsysteminfo.h>
#else
#include <QSystemInfo> //(1)
#endif
using namespace QtMobility; //(2)
int main(int argc, char *argv[])
{
[B]QtMobility::QSystemInfo s;[/B]
label->show();label->resize(100,30);
return a.exec();
}
#include <QtGui/QApplication>
#include <QLabel>
#ifdef Q_OS_SYMBIAN
#include <qsysteminfo.h>
#else
#include <QSystemInfo> //(1)
#endif
using namespace QtMobility; //(2)
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
[B]QtMobility::QSystemInfo s;[/B]
QLabel *label = new QLabel("qwe");
label->show();label->resize(100,30);
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Then compilator says that it can't find "QtSystemInfo_tpd.dll"
File "QtSystemInfo_tpd.dll" is in c:\QtMobility\lib. In project setting in Visual I added this path to "Additional Library Directories" and I have system variable LD_LIBRARY_PATH=c:\QtMobility\lib
So anyone has idea when I made misteake?
Bookmarks