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.1.0: Build fails in systeminfo component
Qt 6.11 is out! See what's new in the release blog

Qt Mobility 1.1.0: Build fails in systeminfo component

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 4 Posters 4.3k 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.
  • J Offline
    J Offline
    joejoejoejoe
    wrote on last edited by
    #1

    I am trying to compile Qt Mobility 1.1.0 (final) on Ubuntu 64bit with Qt 4.7.1 and the build always fails in the 'systeminfo' component.

    @
    make[2]: Entering directory /home/athlon/Devel/Qt-mobility-opensource-src-1.1.0/src/systeminfo' g++ -c -m64 -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQTM_PLUGIN_PATH=\"/home/athlon/Devel/Qt-mobility-1.1.0/plugins\" -DQT_BUILD_SYSINFO_LIB -DQT_MAKEDLL -DQT_NO_NETWORKMANAGER -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/athlon/Devel/Qt-4.7.1/mkspecs/linux-g++-64 -I. -I/home/athlon/Devel/Qt-4.7.1/include/QtCore -I/home/athlon/Devel/Qt-4.7.1/include/QtNetwork -I/home/athlon/Devel/Qt-4.7.1/include/QtGui -I/home/athlon/Devel/Qt-4.7.1/include -I../global -I../../build/Debug/QtSystemInfo/moc -o ../../build/Debug/QtSystemInfo/qsysteminfo_linux_common.o qsysteminfo_linux_common.cpp qsysteminfo_linux_common.cpp: In member function ‘qint32 QtMobility::QSystemNetworkInfoLinuxCommonPrivate::networkSignalStrength(QtMobility::QSystemNetworkInfo::NetworkMode)’: qsysteminfo_linux_common.cpp:703: error: ‘log’ was not declared in this scope qsysteminfo_linux_common.cpp:703: error: ‘rint’ was not declared in this scope qsysteminfo_linux_common.cpp: At global scope: qsysteminfo_linux_common.cpp:945: warning: unused parameter ‘screen’ qsysteminfo_linux_common.cpp: In member function ‘virtual void QtMobility::QSystemStorageInfoLinuxCommonPrivate::connectNotify(const char*)’: qsysteminfo_linux_common.cpp:1136: error: ‘QSocketNotifier’ was not declared in this scope qsysteminfo_linux_common.cpp:1136: error: ‘notifier’ was not declared in this scope qsysteminfo_linux_common.cpp:1136: error: expected type-specifier before ‘QSocketNotifier’ qsysteminfo_linux_common.cpp:1136: error: expected ‘;’ before ‘QSocketNotifier’ qsysteminfo_linux_common.cpp: At global scope: qsysteminfo_linux_common.cpp:130: warning: ‘bool btHasPower()’ defined but not used make[2]: *** [../../build/Debug/QtSystemInfo/qsysteminfo_linux_common.o] Error 1 make[2]: Leaving directory /home/athlon/Devel/Qt-mobility-opensource-src-1.1.0/src/systeminfo'
    make[1]: *** [sub-systeminfo-make_default] Error 2
    make[1]: Leaving directory `/home/athlon/Devel/Qt-mobility-opensource-src-1.1.0/src'
    make: *** [sub-src-make_default-ordered] Error 2
    @

    It seems to me that two includes have been forgotten in 'src/systeminfo/qsysteminfo_linux_common.cpp': The first one is
    @ include <math.h>@ and the second one
    @include <QSocketNotifier>@
    If I add both of them to the above file, compilation works fine.

    Has anyone else encountered this issue?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lassemon
      wrote on last edited by
      #2

      I have and your solution worked for me aswell. Platform for installation was MeeGo 1.1

      Thank you!

      1 Reply Last reply
      0
      • T Offline
        T Offline
        trentham
        wrote on last edited by
        #3

        I ran into this exact problem as well. Adding those header files allowed it to build without a hitch. My environment is Debian 64-bit with Qt 4.7.1.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Fabrizio
          wrote on last edited by
          #4

          Also had the problem, but your solution worked. Thank you!

          Env:
          Ubuntu 10.10 / Maverick Meerkat
          Qt 4.7.1
          QtMobility 1.1.0 (final)

          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