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. [SOLVED] Yocto Project: Qt-GStreamer Development Package
QtWS25 Last Chance

[SOLVED] Yocto Project: Qt-GStreamer Development Package

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 3 Posters 5.8k 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.
  • C Offline
    C Offline
    Charles C.
    wrote on 20 Jan 2016, 22:27 last edited by Charles C.
    #1

    Hi,
    I have compiled an meta-toolchain-qt5 SDK with Yocto Daisy Branch.
    I have a demo program that needed to use qt-gstreamer.
    in demo.pro
    There are these lines
    CONFIG += link_pkgconfig
    PKGCONFIG += Qt5GLib-2.0 Qt5GStreamer-1.0 Qt5GStreamerUi-1.0 Qt5GStreamerUtils-1.0 Qt5GStreamerQuick-1.0

    as I compile in Desktop, it said:
    error: Qt5GLib-2.0 development package not found

    I tried to download it from
    Qt Binding-GStreamer but is lacking a lot of lib. I cannot use the cmake also because of error finding qt components.

    How do I get the development package from the Yocto Distribution?

    I have already enable gstreamer in qtmultimedia.
    PKGCONFIG_append_pn_qtmultimedia = "gstreamer010 gstreamer"

    Thank you,

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Jan 2016, 22:44 last edited by
      #2

      Hi,

      You have to give cmake some hints to were it can find your Qt's cmake files. It won't find them automagically if you are not using the distribution's provided Qt.

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

      C 1 Reply Last reply 20 Jan 2016, 23:08
      0
      • S SGaist
        20 Jan 2016, 22:44

        Hi,

        You have to give cmake some hints to were it can find your Qt's cmake files. It won't find them automagically if you are not using the distribution's provided Qt.

        C Offline
        C Offline
        Charles C.
        wrote on 20 Jan 2016, 23:08 last edited by
        #3

        @SGaist The current host I am using is ubuntu 14.04. I downloaded Qt5.5 creator from the Qt website.

        How do I do it? I am pretty new to cmake. This is the error log

        Performing C++ SOURCE FILE Test USE_OPENGLES failed with the following output:
        Change Dir: /home/hbulab/mountData/gstreamer/qt-gstreamer/CMakeFiles/CMakeTmp
        
        Run Build Command:/usr/bin/make "cmTryCompileExec135161727/fast"
        /usr/bin/make -f CMakeFiles/cmTryCompileExec135161727.dir/build.make CMakeFiles/cmTryCompileExec135161727.dir/build
        make[1]: Entering directory` /home/hbulab/mountData/gstreamer/qt-gstreamer/CMakeFiles/CMakeTmp'
        /usr/bin/cmake -E cmake_progress_report /home/hbulab/mountData/gstreamer/qt-gstreamer/CMakeFiles/CMakeTmp/CMakeFiles 1
        Building CXX object CMakeFiles/cmTryCompileExec135161727.dir/src.cxx.o
        /usr/bin/c++    -DUSE_OPENGLES -fPIE   -o CMakeFiles/cmTryCompileExec135161727.dir/src.cxx.o -c /home/hbulab/mountData/gstreamer/qt-gstreamer/CMakeFiles/CMakeTmp/src.cxx
        /home/hbulab/mountData/gstreamer/qt-gstreamer/CMakeFiles/CMakeTmp/src.cxx:2:27: fatal error: QtCore/QtGlobal: No such file or directory
         #include <QtCore/QtGlobal>
                                   ^
        compilation terminated.
        make[1]: Leaving directory
        /home/hbulab/mountData/gstreamer/qt-gstreamer/CMakeFiles/CMakeTmp'
        make[1]: *** [CMakeFiles/cmTryCompileExec135161727.dir/src.cxx.o] Error 1
        make: *** [cmTryCompileExec135161727/fast] Error 2
        
        Source file was:
        
        #include <QtCore/QtGlobal>
        #if !defined(QT_OPENGL_ES)
        #error "No OpenGLES"
        #endif
        int main() {}
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 20 Jan 2016, 23:15 last edited by
          #4

          cmake -DCMAKE_PREFIX_PATH=/pat/to/Qt5.5/lib should get you started.

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

          C 1 Reply Last reply 20 Jan 2016, 23:47
          0
          • S SGaist
            20 Jan 2016, 23:15

            cmake -DCMAKE_PREFIX_PATH=/pat/to/Qt5.5/lib should get you started.

            C Offline
            C Offline
            Charles C.
            wrote on 20 Jan 2016, 23:47 last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • C Offline
              C Offline
              Charles C.
              wrote on 21 Jan 2016, 00:43 last edited by
              #6

              Thank you, after installation a bunch of packages, I finally get the build.

              sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev qt-sdk

              cmake -DCMAKE_PREFIX_PATH=~/Qt5.5.1/5.5/gcc_64/

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 21 Jan 2016, 13:18 last edited by
                #7

                Since you are using Qt 5.5 I'd recommend using gstreamer 1.0

                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
                • R Offline
                  R Offline
                  RockAndCode
                  wrote on 3 Feb 2016, 19:51 last edited by
                  #8

                  Just to add, if you are using the Qt for Device creation, some things in Qt Qmultimedia 5.5 still uses 0.10 although in documents they say you can use either 0.1 or 1.0

                  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