Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Mobility 1.2.0 TP install ERROR
Forum Updated to NodeBB v4.3 + New Features

Qt Mobility 1.2.0 TP install ERROR

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 4 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    akazad
    wrote on last edited by
    #1

    Hi,
    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]

    Then,
    mingw32-make

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

    Anybody any idea?

    Br,
    AKA

    @
    qsysteminfo_win.cpp:2490: 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:2490: error: ISO C++ forbids applying 'sizeof' to an expression of function type
    qsysteminfo_win.cpp:2491: error: '((QtMobility::QSystemBatteryInfoPrivate*)this)
    ->QtMobility::QSystemBatteryInfoPrivate::batteryStatus' does not have class type

    qsysteminfo_win.cpp:2491: error: 'BATTERY_POWER_ON_LINE' was not declared in thi
    s scope
    qsysteminfo_win.cpp:2494: 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 C:/QtMobility/qt-mobility-opensource-src-1.2 .0-tp1/src/systeminfo' mingw32-make[2]: *** [debug-all] Error 2 mingw32-make[2]: Leaving directory C:/QtMobility/qt-mobility-opensource-src-1.2
    .0-tp1/src/systeminfo'
    mingw32-make[1]: *** [sub-systeminfo-make_default] Error 2
    mingw32-make[1]: Leaving directory `C:/QtMobility/qt-mobility-opensource-src-1.2
    .0-tp1/src'
    mingw32-make: *** [sub-src-make_default-ordered] Error 2
    @

    [EDIT: Code highlight for compiler output, Volker]

    1 Reply Last reply
    0
    • W Offline
      W Offline
      waddaphreak
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deimos
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • I Offline
          I Offline
          isyirsyad
          wrote on last edited by
          #4

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

          Actually it will ignore errors and just continue building it.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved