QtMobility and Visual Studio
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
Code:
CONFIG += mobility
MOBILITY += systeminfo
QT += network
3. Menu qt->open Qt projet file(*.pro) and i get file I edited
My source code is
Code:
#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();
}
To this point everything is fine and when I run app I can see smal window witch "test"
But when I add one line:
Code:
#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();
}
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?
Re: QtMobility and Visual Studio
Hello,
Seems to me that I am having the same problem as you! It looks like when you install the QtMobility it's goint to relate it directly with the Qt SDK version and not with the Windows CE version. As you can see in the download page of the Qt.Nokia.com this are different installs.
I got to this conclusion in Creator by referencing different "Qt"s for compilation. With the 2010.01 version it worked ... with the 4.6.1 (windows CE version) it didn't because it can't find the QSystemInfo file. For VS the error is almost the same I guess... Because I got that yesterday. Anyways... Did you find the solution for that? Hope my info helps in someway to someone.
Best Regards,
Joel Oliveira