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. Error in installing qtmobility form source
Forum Updated to NodeBB v4.3 + New Features

Error in installing qtmobility form source

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 2 Posters 4.7k 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.
  • N Offline
    N Offline
    Naouali
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Naouali
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Naouali
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • N Offline
              N Offline
              Naouali
              wrote on last edited by
              #6

              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

              @

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DenisKormalev
                wrote on last edited by
                #7

                Do you have QtDBus module installed?

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  Naouali
                  wrote on last edited by
                  #8

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

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DenisKormalev
                    wrote on last edited by
                    #9

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

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      Naouali
                      wrote on last edited by
                      #10

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

                      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