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. Reinstall Qt5 with QtMultimedia using Ubuntu Mate

Reinstall Qt5 with QtMultimedia using Ubuntu Mate

Scheduled Pinned Locked Moved Unsolved General and Desktop
moduleinstall
44 Posts 4 Posters 22.6k Views
  • 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 19 Dec 2017, 14:07 last edited by
    #25

    Check the logs for the related errors. You can also use the -v option to get a more verbose output of the configuration process.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    X 1 Reply Last reply 19 Dec 2017, 14:12
    1
    • S SGaist
      19 Dec 2017, 14:07

      Check the logs for the related errors. You can also use the -v option to get a more verbose output of the configuration process.

      X Offline
      X Offline
      Xenoshell
      wrote on 19 Dec 2017, 14:12 last edited by
      #26

      @SGaist I think i found the relevant piece of information in config.log

      looking for library ffmpeg
      Trying source 0 (type pkgConfig) of library ffmpeg ...
      + /usr/bin/pkg-config --exists --silence-errors libavcodec libavformat libavutil
      pkg-config did not find package.
        => source produced no result.
      test config.qtwebengine.libraries.ffmpeg FAILED
      executing config test ninja
      Building own ninja
      test config.qtwebengine.tests.ninja FAILED
      looking for library opus
      Trying source 0 (type pkgConfig) of library opus ...
      + /usr/bin/pkg-config --exists --silence-errors opus
      pkg-config did not find package.
        => source produced no result.
      test config.qtwebengine.libraries.opus FAILED
      executing config test re2
      + cd /home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/config.tests/re2 && /home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" /home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtwebengine/config.tests/re2
      + cd /home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/config.tests/re2 && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make
      > rm -f re2.o
      > rm -f *~ core *.core
      > g++ -c -pipe -O2 -std=gnu++11 -w -fPIC  -I/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtwebengine/config.tests/re2 -I. -I/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtbase/mkspecs/linux-g++ -o re2.o /home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtwebengine/config.tests/re2/re2.cpp
      > /home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtwebengine/config.tests/re2/re2.cpp:29:21: fatal error: re2/re2.h: No such file or directory
      > compilation terminated.
      > Makefile:1021: recipe for target 're2.o' failed
      > make: *** [re2.o] Error 1
      test config.qtwebengine.tests.re2 FAILED
      looking for library webp
      Trying source 0 (type pkgConfig) of library webp ...
      + /usr/bin/pkg-config --exists --silence-errors libwebp libwebpdemux
      pkg-config did not find package.
        => source produced no result.
      test config.qtwebengine.libraries.webp FAILED
      
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 19 Dec 2017, 14:21 last edited by
        #27

        Install the libavformat and libavutil dev packages. Same goes for opus.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        X 1 Reply Last reply 20 Dec 2017, 12:37
        0
        • X Offline
          X Offline
          Xenoshell
          wrote on 19 Dec 2017, 14:41 last edited by Xenoshell
          #28

          @SGaist no error anymore. Thanks for you help. I am gonna mark this solved after i ran make and make install

          1 Reply Last reply
          0
          • S SGaist
            19 Dec 2017, 14:21

            Install the libavformat and libavutil dev packages. Same goes for opus.

            X Offline
            X Offline
            Xenoshell
            wrote on 20 Dec 2017, 12:37 last edited by
            #29

            @SGaist
            Oh well, here are some errors.. Should i be worried or not?

            /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/crt1.o(.text+0x28): error: undefined reference to 'main'
            collect2: error: ld returned 1 exit status
            Makefile:81: recipe for target 'schema' failed
            make[4]: *** [schema] Error 1
            make[4]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples/xmlpatterns/schema'
            Makefile:122: recipe for target 'sub-schema-make_first' failed
            make[3]: *** [sub-schema-make_first] Error 2
            make[3]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples/xmlpatterns'
            Makefile:44: recipe for target 'sub-xmlpatterns-make_first' failed
            make[2]: *** [sub-xmlpatterns-make_first] Error 2
            make[2]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples'
            Makefile:97: recipe for target 'sub-examples-make_first' failed
            make[1]: *** [sub-examples-make_first] Error 2
            make[1]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns'
            Makefile:282: recipe for target 'module-qtxmlpatterns-make_first' failed
            make: *** [module-qtxmlpatterns-make_first] Error 2
            

            I am gonna not use make install just yet, because errors and wait for your answer.

            J 1 Reply Last reply 20 Dec 2017, 12:41
            0
            • X Xenoshell
              20 Dec 2017, 12:37

              @SGaist
              Oh well, here are some errors.. Should i be worried or not?

              /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/crt1.o(.text+0x28): error: undefined reference to 'main'
              collect2: error: ld returned 1 exit status
              Makefile:81: recipe for target 'schema' failed
              make[4]: *** [schema] Error 1
              make[4]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples/xmlpatterns/schema'
              Makefile:122: recipe for target 'sub-schema-make_first' failed
              make[3]: *** [sub-schema-make_first] Error 2
              make[3]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples/xmlpatterns'
              Makefile:44: recipe for target 'sub-xmlpatterns-make_first' failed
              make[2]: *** [sub-xmlpatterns-make_first] Error 2
              make[2]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns/examples'
              Makefile:97: recipe for target 'sub-examples-make_first' failed
              make[1]: *** [sub-examples-make_first] Error 2
              make[1]: Leaving directory '/home/blz/Downloads/qt-everywhere-opensource-src-5.9.3/qtxmlpatterns'
              Makefile:282: recipe for target 'module-qtxmlpatterns-make_first' failed
              make: *** [module-qtxmlpatterns-make_first] Error 2
              

              I am gonna not use make install just yet, because errors and wait for your answer.

              J Offline
              J Offline
              JonB
              wrote on 20 Dec 2017, 12:41 last edited by
              #30

              @Xenoshell
              Just to let you know: I am the person who tried to help with your original "why I am unable to use the camera without freezing?" question!

              I see this thread is getting long, I do hope my advice to sort out your multimedia installation fully is worth it for all this compiling etc. you're doing, and not a red-herring...!!

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 20 Dec 2017, 21:20 last edited by SGaist
                #31

                Don't build the tests nor the example, especially since your are cross-compiling. There's no use for that and you'll waste space, time and electricity for nothing.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                X 1 Reply Last reply 21 Dec 2017, 08:40
                1
                • S SGaist
                  20 Dec 2017, 21:20

                  Don't build the tests nor the example, especially since your are cross-compiling. There's no use for that and you'll waste space, time and electricity for nothing.

                  X Offline
                  X Offline
                  Xenoshell
                  wrote on 21 Dec 2017, 08:40 last edited by Xenoshell
                  #32

                  @SGaist So are the errors now important or can i just install without worries?
                  @JonB I just wanna cross out all possibilities what could be wrong

                  J 1 Reply Last reply 21 Dec 2017, 08:47
                  0
                  • X Xenoshell
                    21 Dec 2017, 08:40

                    @SGaist So are the errors now important or can i just install without worries?
                    @JonB I just wanna cross out all possibilities what could be wrong

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 21 Dec 2017, 08:47 last edited by
                    #33

                    @Xenoshell As you can see from what you posted those errors are coming from examples. As @SGaist suggested there is no need to build examples and tests (so, no these errors are not important). Use -skip to not to build examples and tests.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    X 1 Reply Last reply 21 Dec 2017, 08:49
                    0
                    • J jsulm
                      21 Dec 2017, 08:47

                      @Xenoshell As you can see from what you posted those errors are coming from examples. As @SGaist suggested there is no need to build examples and tests (so, no these errors are not important). Use -skip to not to build examples and tests.

                      X Offline
                      X Offline
                      Xenoshell
                      wrote on 21 Dec 2017, 08:49 last edited by
                      #34

                      @jsulm yeah, since make is now finished its a little bit too late to skip the examples. But its good to know that those errors dont matter

                      1 Reply Last reply
                      0
                      • X Offline
                        X Offline
                        Xenoshell
                        wrote on 21 Dec 2017, 09:10 last edited by
                        #35

                        @jsulm , @JonB somehow in the qt5 folder there is no qtmultimedia. I think i am going mental

                        J 1 Reply Last reply 21 Dec 2017, 09:24
                        0
                        • X Xenoshell
                          21 Dec 2017, 09:10

                          @jsulm , @JonB somehow in the qt5 folder there is no qtmultimedia. I think i am going mental

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 21 Dec 2017, 09:24 last edited by
                          #36

                          @Xenoshell make install ?

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          X 1 Reply Last reply 21 Dec 2017, 09:38
                          0
                          • J jsulm
                            21 Dec 2017, 09:24

                            @Xenoshell make install ?

                            X Offline
                            X Offline
                            Xenoshell
                            wrote on 21 Dec 2017, 09:38 last edited by
                            #37

                            @jsulm yeah already did that

                            J 1 Reply Last reply 21 Dec 2017, 09:40
                            0
                            • X Xenoshell
                              21 Dec 2017, 09:38

                              @jsulm yeah already did that

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 21 Dec 2017, 09:40 last edited by jsulm
                              #38

                              @Xenoshell Do you mean there is no libQt5Multimedia.* in lib directory and no header files?

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              X 1 Reply Last reply 21 Dec 2017, 09:46
                              0
                              • J jsulm
                                21 Dec 2017, 09:40

                                @Xenoshell Do you mean there is no libQt5Multimedia.* in lib directory and no header files?

                                X Offline
                                X Offline
                                Xenoshell
                                wrote on 21 Dec 2017, 09:46 last edited by Xenoshell
                                #39

                                @jsulm nope in the lib folder there is only just everything else. Here is my command i used ./configure -opengl desktop -gui -widgets -gstreamer -pulseaudio -alsa -ffmpeg -dbus-linked, Do i maybe have to also add -multimedia?? I dont think there even is that command, but what do i have to do to install QtMultimedia

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 21 Dec 2017, 10:19 last edited by
                                  #40

                                  Are you calling configure from the top folder ?
                                  If so, did you clean everything before calling configure again ?

                                  As I suggest every time: use out of source builds, that way if something goes wrong or you want to use a different set of option, you can simply nuke everything or change the folder and you know for sure you start from a clean state.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  X 1 Reply Last reply 21 Dec 2017, 10:31
                                  0
                                  • S SGaist
                                    21 Dec 2017, 10:19

                                    Are you calling configure from the top folder ?
                                    If so, did you clean everything before calling configure again ?

                                    As I suggest every time: use out of source builds, that way if something goes wrong or you want to use a different set of option, you can simply nuke everything or change the folder and you know for sure you start from a clean state.

                                    X Offline
                                    X Offline
                                    Xenoshell
                                    wrote on 21 Dec 2017, 10:31 last edited by
                                    #41

                                    @SGaist i called configure from the top folder i got from the .tar.gz file. I just deleted config.cache before calling configure again. How would i go about cleaning everything before calling configure again? What are out of source builds?

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 21 Dec 2017, 11:00 last edited by
                                      #42

                                      make distclean or make confclean

                                      As the name suggests: builds that happens out of the source tree.

                                      Basically:

                                      mkdir /home/your_user/build_qt5
                                      pushd /home/your_user/build_qt5
                                      /path/to/Qt_sources/configure -nomake tests -nomake examples
                                      make -j (number_of_cores * 2 + 1)
                                      make install
                                      popd
                                      

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      X 1 Reply Last reply 21 Dec 2017, 11:32
                                      0
                                      • S SGaist
                                        21 Dec 2017, 11:00

                                        make distclean or make confclean

                                        As the name suggests: builds that happens out of the source tree.

                                        Basically:

                                        mkdir /home/your_user/build_qt5
                                        pushd /home/your_user/build_qt5
                                        /path/to/Qt_sources/configure -nomake tests -nomake examples
                                        make -j (number_of_cores * 2 + 1)
                                        make install
                                        popd
                                        
                                        X Offline
                                        X Offline
                                        Xenoshell
                                        wrote on 21 Dec 2017, 11:32 last edited by Xenoshell
                                        #43

                                        @SGaist Ok, is this even useful now? I mean i already installed Qt5 so isnt it a little bit too late?
                                        Btw in my other post about my code are some new outputs since i installed Qt5.

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 21 Dec 2017, 20:28 last edited by
                                          #44

                                          It will be in the future when you'll build Qt again.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 Reply Last reply
                                          0

                                          34/44

                                          21 Dec 2017, 08:49

                                          • Login

                                          • Login or register to search.
                                          34 out of 44
                                          • First post
                                            34/44
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved