Qt Mobility 1.1.0: Build fails in systeminfo component



  • 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?



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

    Thank you!



  • 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.



  • 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)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.