Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtMultimedia Issue
Forum Updated to NodeBB v4.3 + New Features

QtMultimedia Issue

Scheduled Pinned Locked Moved Solved General and Desktop
qt5multimedia
8 Posts 3 Posters 3.6k 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.
  • fortyffF Offline
    fortyffF Offline
    fortyff
    wrote on last edited by fortyff
    #1

    Hi Everyone,
    I am using version of Qt5 and Ubuntu 16.04. I searched on the Internet and this website and I've got nothing.
    The error that I've got when I build the program is :

    cannot find -lQtMultimedia
    collect2: error: ld returned 1 exit status
    

    I've already install these libraries :

    • libqt5multimedia5 - Qt 5 Multimedia module
    • libqt5multimedia5-plugins - Qt 5 Multimedia module plugins
    • libqt5multimediaquick-p5 - Qt 5 Multimedia Quick module
    • libqt5multimediawidgets5 - Qt 5 Multimedia Widgets module
    • qtmultimedia5-dbg - Qt 5 Multimedia library debugging symbols
    • qtmultimedia5-dev - APIs for multimedia functionality - development files
    • qtmultimedia5-examples - Examples for Qt 5 Multimedia module
    • qtdeclarative5-qtmultimedia-plugin

    The errors still exist. I don't know how to solve that.
    If there is any suggestion, I'll be glad to know.

    Thanks in advance..

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jan-Willem
      wrote on last edited by
      #2

      Did you add multimedia and multimediawidgets tot your pro-file?

      fortyffF 1 Reply Last reply
      1
      • J Jan-Willem

        Did you add multimedia and multimediawidgets tot your pro-file?

        fortyffF Offline
        fortyffF Offline
        fortyff
        wrote on last edited by
        #3

        @Jan-Willem said:

        Did you add multimedia and multimediawidgets tot your pro-file?

        Do you mean ?

        QT += multimedia
        QT += multimediawidgets
        LIBS += -lQtMultiMedia -lQtMultiMediaWidgets
        

        These are in my current pro-file.

        VRoninV 1 Reply Last reply
        0
        • fortyffF fortyff

          @Jan-Willem said:

          Did you add multimedia and multimediawidgets tot your pro-file?

          Do you mean ?

          QT += multimedia
          QT += multimediawidgets
          LIBS += -lQtMultiMedia -lQtMultiMediaWidgets
          

          These are in my current pro-file.

          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by VRonin
          #4

          just remove the line LIBS += -lQtMultiMedia -lQtMultiMediaWidgets

          the problems comes from the fact that they are called Qt5Multimedia and Qt5MultimediaWidgets but it does not matter as QT += multimedia multimediawidgets will take care of the linking without adding anything else

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          fortyffF 1 Reply Last reply
          2
          • VRoninV VRonin

            just remove the line LIBS += -lQtMultiMedia -lQtMultiMediaWidgets

            the problems comes from the fact that they are called Qt5Multimedia and Qt5MultimediaWidgets but it does not matter as QT += multimedia multimediawidgets will take care of the linking without adding anything else

            fortyffF Offline
            fortyffF Offline
            fortyff
            wrote on last edited by
            #5

            @VRonin said:

            just remove the line LIBS += -lQtMultiMedia -lQtMultiMediaWidgets

            the problems comes from the fact that thet are called Qt5Multimedia and Qt5MultimediaWidgets but it does not matter as QT += multimedia multimediawidgets will take care of the linking without adding anything else

            I've just removed that line, but the error still exist.

            1 Reply Last reply
            0
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              make sure you rerun qmake. even better, clear the project and rebuild

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              1
              • J Offline
                J Offline
                Jan-Willem
                wrote on last edited by
                #7

                You mean it still can not find QtMultimedia?
                Does QtCreator autocomplete on QtMultimedia-stuff?

                Perhaps you could run qmake and rebuild your project?

                1 Reply Last reply
                0
                • fortyffF Offline
                  fortyffF Offline
                  fortyff
                  wrote on last edited by
                  #8

                  I have just solved the problem. I did as you said. The things were going fine, but the error was still exist. Therefore, I tried to find the source of the problem. In makefiles of the program what I am dealing with, the library links are referred as

                  libQtMultimedia
                  

                  However, in my library location there is no library exactly the same name. There is :

                  libQt5Multimedia
                  

                  So, I redefined it in makefile, and the problem is solved.

                  Thanks for your helps..

                  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