Error in installing qtmobility form source



  • I tried to install qtmobility 1.2 from source under ubuntu 10.04 but i get these errors:
    @In file included from qmediaplayer.cpp:49:
    qmediaplayer.h:51:45: error: QtNetwork/qnetworkconfiguration.h: No such file or directory
    In file included from qmediaplayer.cpp:49:
    qmediaplayer.h:158: error: ‘QNetworkConfiguration’ does not name a type
    qmediaplayer.h:174: error: ‘QNetworkConfiguration’ was not declared in this scope
    qmediaplayer.h:174: error: template argument 1 is invalid
    qmediaplayer.h:197: error: ISO C++ forbids declaration of ‘QNetworkConfiguration’ with no type
    qmediaplayer.h:197: error: expected ‘,’ or ‘...’ before ‘&’ token
    In file included from qmediaplayer.cpp:61:
    ./qmedianetworkaccesscontrol.h:60: error: ‘QNetworkConfiguration’ was not declared in this scope
    ./qmedianetworkaccesscontrol.h:60: error: template argument 1 is invalid
    ./qmedianetworkaccesscontrol.h:61: error: ‘QNetworkConfiguration’ does not name a type
    ./qmedianetworkaccesscontrol.h:64: error: ISO C++ forbids declaration of ‘QNetworkConfiguration’ with no type
    ./qmedianetworkaccesscontrol.h:64: error: expected ‘,’ or ‘...’ before ‘&’ token
    qmediaplayer.cpp:409: error: ‘QNetworkConfiguration’ was not declared in this scope
    qmediaplayer.cpp:409: error: template argument 1 is invalid
    qmediaplayer.cpp:542: error: ‘QNetworkConfiguration’ does not name a type
    In file included from qmediaplayer.cpp:1080:
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp: In member function ‘virtual int QMediaPlayer::qt_metacall(QMetaObject::Call, int, void**)’:
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:210: error: ISO C++ forbids declaration of ‘type name’ with no type
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:210: error: expected ‘>’ before ‘QNetworkConfiguration’
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:210: error: expected ‘(’ before ‘QNetworkConfiguration’
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:210: error: expected primary-expression before ‘)’ token
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:210: error: ‘QNetworkConfiguration’ was not declared in this scope
    In file included from qmediaplayer.cpp:1080:
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:221: error: ‘QNetworkConfiguration’ cannot appear in a constant-expression
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:221: error: template argument 1 is invalid
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:221: error: expected ‘>’ before ‘(’ token
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:221: error: expected primary-expression before ‘)’ token
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp: At global scope:
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:371: error: ISO C++ forbids declaration of ‘QNetworkConfiguration’ with no type
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:371: error: expected ‘,’ or ‘...’ before ‘&’ token
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp: In member function ‘void QMediaPlayer::networkConfigurationChanged(int)’:
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:373: error: ‘_t1’ was not declared in this scope
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp: At global scope:
    ../../build/Debug/QtMultimediaKit/moc/moc_qmediaplayer.cpp:371: warning: unused parameter ‘QNetworkConfiguration’
    make[2]: *** [../../build/Debug/QtMultimediaKit/qmediaplayer.o] Error 1
    make[2]: Leaving directory /home/morpheus/qt-mobility-opensource-src-1.2.0-beta1/src/multimedia' make[1]: *** [sub-multimedia-make_default] Error 2 make[1]: Leaving directory/home/morpheus/qt-mobility-opensource-src-1.2.0-beta1/src'
    make: *** [sub-src-make_default-ordered] Error 2
    morpheus@morpheus-laptop:~/qt-mobility-opensource-src-1.2.0-beta1$
    @

    please someone help
    thanks in advance



  • Can you say your version of Qt? Maybe it is not 4.7.x ? Also do you have dev packages installed (with qt headers)?



  • I have 2 versions of qt installed :4.6 and 4.7 but when i run configure it detects the 4.6 version .



  • You need Qt 4.7 (QtNetwork/qnetworkconfiguration.h is from 4.7). Try to play with your PATH env variable.



  • :)
    Can you please show me how to change the path ?



  • I managed to do that , now i get a new error :
    @In file included from bluetooth/qbluetoothlocaldevice.cpp:43:
    bluetooth/qbluetoothlocaldevice_p.h:56: fatal error: QDBusContext: No such file or directory
    compilation terminated.
    make[2]: *** [../../build/Debug/QtConnectivity/qbluetoothlocaldevice.o] Error 1
    make[2]: Leaving directory /home/aladin/qt-mobility-opensource-src-1.2.0-beta1/src/connectivity' make[1]: *** [sub-connectivity-make_default] Error 2 make[1]: Leaving directory/home/aladin/qt-mobility-opensource-src-1.2.0-beta1/src'
    make: *** [sub-src-make_default-ordered] Error 2

    @



  • Do you have QtDBus module installed?



  • Yes , it's installed , i tried to reinstalled it using sudo apt-get install libqt4-dbus but it's already there.



  • Do you have QtDBus module in your 4.7 or in your 4.6 Qt? It is needed to present in 4.7



  • I think it's installed with QT SDK if not what should i do ?


Log in to reply
 

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