Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Cannot find -lQtMultimedia
Forum Updated to NodeBB v4.3 + New Features

Cannot find -lQtMultimedia

Scheduled Pinned Locked Moved Qt Creator and other tools
13 Posts 4 Posters 14.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.
  • N Offline
    N Offline
    Naouali
    wrote on last edited by
    #1

    Hi guys
    I m trying to record my voice using Qt , but when i run the program i get this error: cannot find -lQtMultimedia .
    How can i solve this issue.

    Thanks in advance

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      What do operation system you use? Version of Qt? And, please, show your .pro file.

      --
      Vasiliy

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

        Qt version :4.7.1 on linux system (ubuntu 10.10)
        this is the .pro file
        @#-------------------------------------------------

        Project created by QtCreator 2011-04-20T10:11:14

        #-------------------------------------------------

        QT += core

        QT -= gui
        QT +=multimedia

        TARGET = audiotest
        CONFIG += console
        CONFIG -= app_bundle

        TEMPLATE = app
        target.path=/usr/local/bin
        INSTALLS=target

        INCLUDEPATH +=/home/aladin/QtSDK/Desktop/Qt/473/gcc/include/QtMultimedia/
        INCLUDEPATH +=/home/aladin/QtSDK/Desktop/Qt/473/gcc/include/
        LIBS +=/home/aladin/QtSDK/QtCreator/lib/qtcreator/libQtMultimedia.so

        SOURCES += main.cpp
        audio.cpp

        HEADERS +=
        audio.h@

        i added this lines :
        1-QT +=multimedia
        2-INCLUDEPATH +=/home/aladin/QtSDK/Desktop/Qt/473/gcc/include/QtMultimedia/
        3-INCLUDEPATH +=/home/aladin/QtSDK/Desktop/Qt/473/gcc/include/
        4-LIBS +=/home/aladin/QtSDK/QtCreator/lib/qtcreator/libQtMultimedia.so

        after i commented line (1) and add .4 for the line (4) but this time i get a new error :
        /home/aladin/Projects/Qt/audiotest-build-desktop/audiotest: error while loading shared libraries: libQtMultimedia.so.4: cannot open shared object file: No such file or directory

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vsorokin
          wrote on last edited by
          #4

          bq. INCLUDEPATH +=/home/aladin/QtSDK/Desktop/Qt/473/gcc/include/QtMultimedia/
          INCLUDEPATH +=/home/aladin/QtSDK/Desktop/Qt/473/gcc/include/
          LIBS +=/home/aladin/QtSDK/QtCreator/lib/qtcreator/libQtMultimedia.so

          Not needed lines.

          --
          Vasiliy

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

            without line 2 and 3 i m not even to compile the program , and the compiler didn't recognize QAudioInput and QAudioFormat

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Smar
              wrote on last edited by
              #6

              Ubuntu doesn’t have qt-multimedia anymore.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vsorokin
                wrote on last edited by
                #7

                Ok remove only this line:
                LIBS +=/home/aladin/QtSDK/QtCreator/lib/qtcreator/libQtMultimedia.so

                --
                Vasiliy

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

                  [quote author="Smar" date="1303308632"]Ubuntu doesn’t have qt-multimedia anymore.[/quote]

                  so what should i do ? is there a solution to install it in ubuntu 10.10 ?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Smar
                    wrote on last edited by
                    #9

                    I have no idea why Ubuntu guys did that, but you can use qt-mobility’s qt-multimedia(it is the real multimedia package that will be in Qt 4.8 or so instead of that dummy one that’s in 4.6 and 4.7).

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

                      I installed the qt-mobility and still get the same error or is there new class to use ?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        Smar
                        wrote on last edited by
                        #11

                        It is most likely in different package; you need to include it with QT += multimedia... Really, read its documentation, the forum is not substitute to doc. http://doc.qt.nokia.com/qtmobility-1.1/index.html

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          JohanC
                          wrote on last edited by
                          #12

                          I also got crazy with this error, and the documentation really didn't help.
                          Combining serveral posts on other forums, and with trial and error, I needed following steps to get the multimedia compiling and running again under Ubuntu.
                          (In the .pro file)
                          QT += mobility multimediakit
                          CONFIG += mobility
                          MOBILITY = multimedia
                          ... and also remove the QT += multimedia

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            JohanC
                            wrote on last edited by
                            #13

                            Oops. And also add

                            INCLUDEPATH += /usr/include/QtMobility
                            INCLUDEPATH += /usr/include/QtMultimediaKit

                            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