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. QtGqtreamer qml example

QtGqtreamer qml example

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.2k 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
    Chanchan
    wrote on last edited by
    #1

    Hi !
    In my project I would like to implement a QtGstreamer to display a camera view. I am trying to run this example :
    https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/examples_2qmlplayer_2main_8cpp-example.html

    But I get an error when I want to import QtGstreamer in my QML : QML Module not found (QtGstreamer)

    Here is my pro file, did I miss something ? :

    SOURCES += \
        main.cpp
    
    
    TEMPLATE = app
    TARGET = qmlplayer
    
    # produce nice compilation output
    CONFIG += silent
    
    
    LIBS += -Lc:/gstreamer/1.0/x86/lib
    LIBS += -lglib-2.0 -lwinpthread -lgstreamer-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0
    
    
    PKGCONFIG += Qt5GStreamer-1.0 Qt5GStreamerUi-1.0
    QT += widgets
    
    # Recommended, to avoid possible issues with the "emit" keyword
    # You can otherwise also define QT_NO_EMIT, but notice that this is not a documented Qt macro.
    DEFINES += QT_NO_KEYWORDS
    
    # link against QtDeclarative and QtOpenGL
    QT += quick opengl
    QT += qml core widgets
    
    INCLUDEPATH += "/usr/include/gstreamer-1.0/"
    
    DISTFILES += \
        qmlplayer.qml
    
    

    Thanks for help :)

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chanchan
      wrote on last edited by Chanchan
      #2

      I am reading other question on forums, and for this problem, people are speaking about modifying a "bashsrc file".
      I am quite loose about it, what should I do with it and why ? :/

      For example :
      https://www.linuxquestions.org/questions/linux-newbie-8/error-package-qt5gstreamer-0-10-not-found-4175492115/

      jsulmJ 1 Reply Last reply
      0
      • C Chanchan

        I am reading other question on forums, and for this problem, people are speaking about modifying a "bashsrc file".
        I am quite loose about it, what should I do with it and why ? :/

        For example :
        https://www.linuxquestions.org/questions/linux-newbie-8/error-package-qt5gstreamer-0-10-not-found-4175492115/

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Chanchan said in QtGqtreamer qml example:

        bashsrc

        it's not bashsrc it's .bashrc and it is located in your home directory.

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

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chanchan
          wrote on last edited by
          #4

          @jsulm hi !
          Yeah I find it thank :) What should I do with it ? This is what I didn't understand for now

          jsulmJ 1 Reply Last reply
          0
          • C Chanchan

            @jsulm hi !
            Yeah I find it thank :) What should I do with it ? This is what I didn't understand for now

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Chanchan said in QtGqtreamer qml example:

            What should I do with it ?

            Well, copy the two lines from that link and put it in that file (at the end). But don't forget to adapt these two lines to your situation.

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

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chanchan
              wrote on last edited by
              #6

              @jsulm mmh for the first line I think the good line for me is this one :
              export PATH=/home/thales/Qt/5.9.8/gcc_64/bin:$PATH
              but I cant understand this line :
              export PKG_CONFIG_PATH=~/Desktop/newGSTr/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/pkgconfig/:$PKG_CONFIG_PATH
              It seems referring to the project itself ("newGSTr"), my project doesn't have any ppkgconfig folder or file

              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