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. How to cross compile Qt with gstreamer
Forum Updated to NodeBB v4.3 + New Features

How to cross compile Qt with gstreamer

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 3 Posters 2.8k 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.
  • F Offline
    F Offline
    fevancio
    wrote on last edited by
    #1

    firstly, i have cross compiled gstreamer-1.0 and gstreamer-plugin-base-1.0,set PKG_CONFIG_PATH correctly,even -L,-I path in cofigure parameters,there is my configure parameters:

    #!/bin/sh
    ./configure \
    -v \
    -prefix /usr/local/bin/qte5.12.3 \
    -release \
    -opensource \
    -confirm-license \
    -xplatform linux-arm-gnueabi-g++ \
    -linuxfb \
    -nomake tests  \
    -qt-zlib \
    -qt-libjpeg \
    -qt-libpng \
    -qt-freetype \
    -qt-pcre \
    -no-opengl \
    -no-xcb \
    -no-sse2 \
    -no-openssl \
    -no-cups \
    -no-dbus \
    -no-harfbuzz \
    -nomake examples \
    -nomake tools \
    -skip qtvirtualkeyboard \
    -tslib \
    -I/usr/local/bin/tslib1.4/include \
    -L/usr/local/bin/tslib1.4/lib \
    -gstreamer 1.0 \
    -I/usr/local/bin/gstreamer/include/gstreamer-1.0 \
    -L/usr/local/bin/gstreamer/lib
    exit
    

    but error comes like this:

    ERROR: Feature 'gstreamer_1_0' was enabled, but the pre-condition 'libs.gstreamer_1_0' failed.
    
    

    How can i fiexd it?
    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should add the -v flag to your configure line so that you can see what is going wrong when the detection of GStreamer is done.

      I also recommend to make out of source builds, so that if something goes wrong you can simply nuke the folder and easily start fresh without having to clean the sources before calling configure 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
      1
      • F Offline
        F Offline
        fevancio
        wrote on last edited by
        #3

        there is configure message about gstreamer.

        Checking for GStreamer 1.0... 
        Trying source 0 (type pkgConfig) of library gstreamer_1_0 ...
        pkg-config use disabled globally.
          => source produced no result.
        test config.qtmultimedia_multimedia.libraries.gstreamer_1_0 FAILED
        

        I am puzzled that i have set the path of gstreamer and tslib, tslib was detected succeed but gstreamer failed.

        raven-worxR 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Take a look at the test logs, you should see what went wrong.

          Otherwise, you can still add the paths needed to thé options of configure.

          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
          • F fevancio

            there is configure message about gstreamer.

            Checking for GStreamer 1.0... 
            Trying source 0 (type pkgConfig) of library gstreamer_1_0 ...
            pkg-config use disabled globally.
              => source produced no result.
            test config.qtmultimedia_multimedia.libraries.gstreamer_1_0 FAILED
            

            I am puzzled that i have set the path of gstreamer and tslib, tslib was detected succeed but gstreamer failed.

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            @fevancio
            you might need to add something like this:

            export PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig
            

            If your (armhf) gstreamer pkgconfig is placed somewhere else adapt it of course

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            F 1 Reply Last reply
            0
            • raven-worxR raven-worx

              @fevancio
              you might need to add something like this:

              export PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig
              

              If your (armhf) gstreamer pkgconfig is placed somewhere else adapt it of course

              F Offline
              F Offline
              fevancio
              wrote on last edited by fevancio
              #6

              @raven-worx
              i have exported PKG_CONFIG_LIBDIR correctly and add -sysroot to the options of configure, but configure output same error.
              But i find some different in conflg.log between tslib and gstreamer.
              conflg.log about tslib show needed file 'libts.so'

              Checking for tslib... 
              Trying source 0 (type inline) of library tslib ...
              **None of [libts.so libts.a] found in [] and global paths.**
                => source produced no result.
              test config.qtbase_gui.libraries.tslib FAILED
              

              But gstreamer show nothing needed just output 'pkg-config use disabled globally'.

              Checking for GStreamer 1.0... 
              Trying source 0 (type pkgConfig) of library gstreamer_1_0 ...
              pkg-config use disabled globally.
                => source produced no result.
              test config.qtmultimedia_multimedia.libraries.gstreamer_1_0 FAILED
              

              Then i tried again with these options of configure:

              -I/usr/local/bin/tslib1.4/include \
              -L/usr/local/bin/tslib1.4/lib \
              
              -I/usr/local/bin/gstreamer/include/gstreamer-1.0/gst \
              -L/usr/local/bin/gstreamer/lib \
              

              This time tslib test succeed but gstreamer still failed.

              some informations:
              my gstreamer(arm) include gstreamer-1.0 and gstreamer-plugin-base-1.0.
              do i need other plugins of gstreamer?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Did you check exactly what failed in the test log ?

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

                F 1 Reply Last reply
                0
                • F Offline
                  F Offline
                  fevancio
                  wrote on last edited by fevancio
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Did you check exactly what failed in the test log ?

                    F Offline
                    F Offline
                    fevancio
                    wrote on last edited by fevancio
                    #9
                    This post is deleted!
                    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