Google apps
Main menu

Post a Comment On: Charlie's Second Blog

"Compiling Qt mobility for Simulator on Windows"

9 Comments -

1 – 9 of 9
Anonymous nanz said...

Hey, I wanted to know something bro. Is qt mobility pack only for symbian^3 devices or also for symbian^1 devices. Actually, I am in a mess, need to calculate battery current and voltage and thats available only in qt mobility 1.2 class and I have to do this on a nokia 5800. I was unable to find any symbian APIs for battery current and voltage and somehow my Qtmobility 1.2 gives me errors during the mingw32-make step. I followed your instructions but still stuck. Please help me ASAP. Doing an internship project. Thanks in advance.

6 July 2011 at 12:02

Anonymous nanz said...

I m referring to Qt mobility 1.2 in the first post.

6 July 2011 at 12:03

Blogger esarijal said...

I have QtSDK 1.1.2 from Nokia and i now need for use QtMobility 1.2

I download the source from here http://labs.qt.nokia.com/2011/05/12/qt-mobility-1-2-0-released/

and when i run configure -prefix d:\QtMobility it goes well

but when i try to mingw32-make it goes wrong and end like this

qsysteminfo_win.cpp:2518: error: 'BATTERY_SYSTEM_BATTERY' was not declared in th
is scope
qsysteminfo_win.cpp:2519: error: 'BATTERY_IS_SHORT_TERM' was not declared in thi
s scope
qsysteminfo_win.cpp:2523: error: 'BATTERY_WAIT_STATUS' was not declared in this
scope
qsysteminfo_win.cpp:2523: error: expected ';' before 'batteryWaitStatus'
qsysteminfo_win.cpp:2524: error: 'batteryWaitStatus' was not declared in this sc
ope
qsysteminfo_win.cpp:2526: error: 'BATTERY_STATUS' was not declared in this scope

qsysteminfo_win.cpp:2526: error: expected ';' before 'batteryStatus'
qsysteminfo_win.cpp:2527: error: 'IOCTL_BATTERY_QUERY_STATUS' was not declared i
n this scope
qsysteminfo_win.cpp:2527: error: ISO C++ forbids taking the address of an unqual
ified or parenthesized non-static member function to form a pointer to member fu
nction. Say '&QtMobility::QSystemBatteryInfoPrivate::batteryStatus'
qsysteminfo_win.cpp:2527: error: ISO C++ forbids applying 'sizeof' to an express
ion of function type
qsysteminfo_win.cpp:2528: error: '((QtMobility::QSystemBatteryInfoPrivate*)this)
->QtMobility::QSystemBatteryInfoPrivate::batteryStatus' does not have class type

qsysteminfo_win.cpp:2528: error: 'BATTERY_POWER_ON_LINE' was not declared in thi
s scope
qsysteminfo_win.cpp:2531: error: '((QtMobility::QSystemBatteryInfoPrivate*)this)
->QtMobility::QSystemBatteryInfoPrivate::batteryStatus' does not have class type

mingw32-make[3]: *** [../../build/Debug/QtSystemInfo/qsysteminfo_win.o] Error 1
mingw32-make[3]: Leaving directory `D:/QtMobility/qt-mobility-opensource-src-1.2
.0/src/systeminfo'
mingw32-make[2]: *** [debug-all] Error 2
mingw32-make[2]: Leaving directory `D:/QtMobility/qt-mobility-opensource-src-1.2
.0/src/systeminfo'
mingw32-make[1]: *** [sub-systeminfo-make_default] Error 2
mingw32-make[1]: Leaving directory `D:/QtMobility/qt-mobility-opensource-src-1.2
.0/src'
mingw32-make: *** [sub-src-make_default-ordered] Error 2


any suggestion??

Thanks in Advance

8 August 2011 at 21:09

Blogger Guillaume said...

esarijal: The instruction I gave are only for compiling the simulator version of Qt mobility. I take the source for the simulator-mobility git repository. I think the sources you get are not the same.

If you try to compile Qt mobility for symbian, I think there are some resources online about how to do that, though I guess it is not easy since otherwise nokia would have released the compiled version already.

Good luck!

9 August 2011 at 01:55

Anonymous karmel said...

Hi,
I've just compiled QtMobility but I can't run my app using it (though it compiles properly). Right after I start it says "Could not connect to mobility server" and quits.
Did You somehow configured simulator to use with mobility 1.2?

12 August 2011 at 15:10

Blogger Cristian said...

Great stuff. Thanks for sharing.

It helped me to build Qt Mobility head (1.2.1).

I needed location and systeminfo and I only had to patch this: http://pastebin.com/MqNkpfSi

Cheers.

16 October 2011 at 23:33

Blogger 7n1 said...

Hi ,

I am a student working on my final year project developing a desktop navigation system. I have a huge problem in installing and configuring Qt Mobility as my project requires the use of location setting in qt.

I am currently using
Qt Creator 2.4.0
Based on Qt 4.7.4 (32 bit)

I believed that qt mobility have been installed for me with the sdk.
Did i missed out something?
Really appreciate your help and thankyou very much for your time.

30 December 2011 at 07:56

Anonymous Mobility Battery said...

Thanks for sharing this.

14 March 2013 at 08:41

Blogger jeniferraaj254 said...

Thanks for such innovative and amazing information..Good here is really nice information.
Web Designer luton
Web design wakefield

28 November 2014 at 02:45

You can use some HTML tags, such as <b>, <i>, <a>

You will be asked to sign in after submitting your comment.
Please prove you're not a robot