January 19, 2011

akazad akazad
Lab Rat
6 posts

Qt Mobility 1.2.0 TP install ERROR


I have currently Mobility 1.1 and it works fine.

Now, I need to try Mobility 1.2 for some new QML features.

I have Mobility 1.1 in path c:\QtMobility. So, I have created a new directory inside it for Mobility 1.2 : C:\QtMobility\QtMobility

When I put command …
configure.bat -prefix c:\QtMobility\QtMobility

[configured OK]


[Gives warning and errors, part of the error is included below]

Anybody any idea?


  1. qsysteminfo_win.cpp:2490: error: ISO C++ forbids taking the address of an unqual
  2. ified or parenthesized non-static member function to form a pointer to member fu
  3. nction.  Say '&QtMobility::QSystemBatteryInfoPrivate::batteryStatus'
  4. qsysteminfo_win.cpp:2490: error: ISO C++ forbids applying 'sizeof' to an expression of function type
  5. qsysteminfo_win.cpp:2491: error: '((QtMobility::QSystemBatteryInfoPrivate*)this)
  6. ->QtMobility::QSystemBatteryInfoPrivate::batteryStatus' does not have class type
  8. qsysteminfo_win.cpp:2491: error: 'BATTERY_POWER_ON_LINE' was not declared in thi
  9. s scope
  10. qsysteminfo_win.cpp:2494: error: '((QtMobility::QSystemBatteryInfoPrivate*)this)
  11. ->QtMobility::QSystemBatteryInfoPrivate::batteryStatus' does not have class type
  13. mingw32-make[3]: *** [../../build/Debug/QtSystemInfo/qsysteminfo_win.o] Error 1
  14. mingw32-make[3]: Leaving directory `C:/QtMobility/qt-mobility-opensource-src-1.2
  15. .0-tp1/src/systeminfo'
  16. mingw32-make[2]: *** [debug-all] Error 2
  17. mingw32-make[2]: Leaving directory `C:/QtMobility/qt-mobility-opensource-src-1.2
  18. .0-tp1/src/systeminfo'
  19. mingw32-make[1]: *** [sub-systeminfo-make_default] Error 2
  20. mingw32-make[1]: Leaving directory `C:/QtMobility/qt-mobility-opensource-src-1.2
  21. .0-tp1/src'
  22. mingw32-make: *** [sub-src-make_default-ordered] Error 2

[EDIT: Code highlight for compiler output, Volker]

3 replies

August 9, 2011

esarijal esarijal
Lab Rat
5 posts

i have this same error but im not in TP, anybody can help?

August 9, 2011

marcoB marcoB
Lab Rat
145 posts

I think that mobility has yet some problems building under a desktop env.
I suggest you tring to configure Qt Mobility with only modules you want, here seems that systeminfo module has problems.
Run “configure —help” and look at “-modules <list>” option then run it with your needs

August 19, 2011

isyirsyad isyirsyad
Lab Rat
1 posts

I have the same problem but you can try this:
migw32-make -i

Actually it will ignore errors and just continue building it.

  ‹‹ Compile errors in qdbusconnection.h      Automated testing problems ››

You must log in to post a reply. Not a member yet? Register here!