Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Disable gstreamer dependency with Qt WebKit
Forum Updated to NodeBB v4.3 + New Features

Disable gstreamer dependency with Qt WebKit

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
13 Posts 2 Posters 4.0k Views 2 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.
  • K Offline
    K Offline
    kumararajas
    wrote on last edited by
    #1

    Hello,

    When I run my Qt application that links Qt webkit, and I don't have gstreamer libraries in place, I get the error and my app doesn't run.

    I don't need gstreamer for my application and I don;t want to have those libraries in my file system.

    How do I disable this dependency without rebuilding the Qt libraries completely.

    Thanks,
    Kumara

    --Kumar

    K 1 Reply Last reply
    0
    • K kumararajas

      Hello,

      When I run my Qt application that links Qt webkit, and I don't have gstreamer libraries in place, I get the error and my app doesn't run.

      I don't need gstreamer for my application and I don;t want to have those libraries in my file system.

      How do I disable this dependency without rebuilding the Qt libraries completely.

      Thanks,
      Kumara

      K Offline
      K Offline
      Konstantin Tokarev
      wrote on last edited by
      #2

      @kumararajas You either have to rebuild QtWebKit, or install gstreamer libraries.

      K 1 Reply Last reply
      0
      • K Konstantin Tokarev

        @kumararajas You either have to rebuild QtWebKit, or install gstreamer libraries.

        K Offline
        K Offline
        kumararajas
        wrote on last edited by
        #3

        @Konstantin-Tokarev Is that the only way? Is there any flag or macro that can say not to look for gstreamer? If I have to rebuild QtWebKit is the only way, what is the parameter that I need to mention not to depend on gstreamer?

        --Kumar

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Konstantin Tokarev
          wrote on last edited by
          #4

          Is there any flag or macro that can say not to look for gstreamer?

          Yes, but they only take effect when QtWebKit is compiled, and when you use it in your application it's too late.

          If I have to rebuild QtWebKit is the only way, what is the parameter that I need to mention not to depend on gstreamer?

          If you don't have gstreamer installed, QtWebKit won't use it.

          K 1 Reply Last reply
          0
          • K Konstantin Tokarev

            Is there any flag or macro that can say not to look for gstreamer?

            Yes, but they only take effect when QtWebKit is compiled, and when you use it in your application it's too late.

            If I have to rebuild QtWebKit is the only way, what is the parameter that I need to mention not to depend on gstreamer?

            If you don't have gstreamer installed, QtWebKit won't use it.

            K Offline
            K Offline
            kumararajas
            wrote on last edited by
            #5

            @Konstantin-Tokarev So here is the scenario. I do get the ready made libraries coming from TI - SDK. That has gstreamer and webkit libraries. To my board, I wanted to copy only web kit. When I do that, it throws error that gstreamer libraries are missing.

            So, from your point, I guess that, When TI has built their SDK, they might have had gstreamer libraries already and built Qt webkit, since it has found the gstreamer libraries, it linked them as well.. Am I right?

            So, I can give a try by removing the gstreamer libraries and then build Qt WebKit. That should not find the gstreamer and ignore to link them. Am I right?

            Thanks for your help..

            --Kumar

            K K 2 Replies Last reply
            0
            • K kumararajas

              @Konstantin-Tokarev So here is the scenario. I do get the ready made libraries coming from TI - SDK. That has gstreamer and webkit libraries. To my board, I wanted to copy only web kit. When I do that, it throws error that gstreamer libraries are missing.

              So, from your point, I guess that, When TI has built their SDK, they might have had gstreamer libraries already and built Qt webkit, since it has found the gstreamer libraries, it linked them as well.. Am I right?

              So, I can give a try by removing the gstreamer libraries and then build Qt WebKit. That should not find the gstreamer and ignore to link them. Am I right?

              Thanks for your help..

              K Offline
              K Offline
              kumararajas
              wrote on last edited by
              #6

              In features.pri, I see USE_QTMULTIMEDIA macro being used.

              So when I run make, can I pass USE_QTMULTIMEDIA=0 as an argument to disable the gstreamer?

              --Kumar

              1 Reply Last reply
              0
              • K kumararajas

                @Konstantin-Tokarev So here is the scenario. I do get the ready made libraries coming from TI - SDK. That has gstreamer and webkit libraries. To my board, I wanted to copy only web kit. When I do that, it throws error that gstreamer libraries are missing.

                So, from your point, I guess that, When TI has built their SDK, they might have had gstreamer libraries already and built Qt webkit, since it has found the gstreamer libraries, it linked them as well.. Am I right?

                So, I can give a try by removing the gstreamer libraries and then build Qt WebKit. That should not find the gstreamer and ignore to link them. Am I right?

                Thanks for your help..

                K Offline
                K Offline
                Konstantin Tokarev
                wrote on last edited by
                #7

                Am I right?

                Probably yes. In this case you may need to disable video explicitly. Add WEBKIT_CONFIG-=video when running qmake.

                Alternatively you may want to use build-webkit script (in Tools/Scripts directory), it has verbose --help which lists options that you can customize in WebKit. For your embedded system you may find many of them useless. See https://trac.webkit.org/wiki/BuildingQtOnLinux

                If you are starting new project you may want to use my fork of QtWebKit. It is not feature complete yet, e.g. hardware acceleration support is not merged yet, but it provides modern version of WebKit engine which has much better compatibility with today's Web. See https://github.com/annulen/webkit/wiki, http://lists.qt-project.org/pipermail/development/2016-June/026282.html

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kumararajas
                  wrote on last edited by
                  #8

                  The process that you explained might be good for Qt 5. Can you please explain for Qt 4.8.4? Because the architecture and folder organisation look be different..

                  --Kumar

                  K 1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kumararajas
                    wrote on last edited by
                    #9

                    All I need is, I need webkit, but I dont want gstreamer capability. I don't want webkit to look for gstreamer libraries.

                    I am ready to rebuild webkit.

                    When I had a look at source, I do see a plenty configurations and I dont see enough documentation.

                    Please help me out!

                    Thanks!

                    --Kumar

                    1 Reply Last reply
                    0
                    • K kumararajas

                      The process that you explained might be good for Qt 5. Can you please explain for Qt 4.8.4? Because the architecture and folder organisation look be different..

                      K Offline
                      K Offline
                      Konstantin Tokarev
                      wrote on last edited by
                      #10

                      @kumararajas, I think Tools/Scripts/build-webkit --no-video will be enough for you problem, though you might want to disable other features if they are not needed for your device, like xslt, ftpdir, mhtml, inspector, svg-fonts, javascript-debugger, maybe even svg (reduces binary size a lot, but its popularity in Web has increased a lot in last years).

                      If you have to use Qt 4 don't use included QtWebKit sources to rebuild, take QtWebKit 2.3.4 instead (e.g. from here: http://pkgs.fedoraproject.org/repo/pkgs/qtwebkit/qtwebkit-2.3.4.tar.gz/md5/42ef76d0cf7d0c611ef83418e9f297ff/qtwebkit-2.3.4.tar.gz)

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        Konstantin Tokarev
                        wrote on last edited by
                        #11

                        But if possible, migrate to Qt >= 5.4, since Qt 4 is EOL.

                        K 1 Reply Last reply
                        0
                        • K Konstantin Tokarev

                          But if possible, migrate to Qt >= 5.4, since Qt 4 is EOL.

                          K Offline
                          K Offline
                          kumararajas
                          wrote on last edited by
                          #12

                          @Konstantin-Tokarev

                          Up gradation - I will be happy to do that :)

                          But the system is already built on 4.8 by thinking that it is a stable version. We did not think that Qt is going to call off 4.8 as end of life :)

                          For sure, if there are possibilities to update the platform, we will do that..

                          --Kumar

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            Konstantin Tokarev
                            wrote on last edited by
                            #13

                            @kumararajas From what I know, Milian Wolff from KDAB is working on bringing newer WebKit to Qt 4, ping milian on #qt-labs to know if this option is available and how much it would cost. It should also be possible to bring Qt 4 support to https://github.com/annulen/webkit, but you would need to hire Milian or someone else

                            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