Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. why Qt can't find 3rd-party libs?
Forum Updated to NodeBB v4.3 + New Features

why Qt can't find 3rd-party libs?

Scheduled Pinned Locked Moved Solved 3rd Party Software
10 Posts 3 Posters 1.8k Views 1 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.
  • R Offline
    R Offline
    r3d9u11
    wrote on last edited by
    #1

    Hello.
    I have Qt5 installed to:

    /home/Qt/5.12.7
    

    I also installed 3rd-party packages QtGstreamer to system libs directory:

    ldconfig -p | grep libQt5QmlModels
            libQt5QmlModels.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QmlModels.so.5
            libQt5QmlModels.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QmlModels.so
    

    Why Qt is trying to find libraries only in it's own installation path?

    /home/Qt/5.12.7/gcc_64/lib/libQt5QmlModels.so: No such file or directory
    

    pkg-config output:

    pkg-config --cflags Qt5GStreamerQuick-1.0
    -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -pthread -DQT_CORE_LIB -I/usr/include/Qt5GStreamer -I/usr/include/x86_64-linux-gnu/qt5/QtQuick -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtQmlModels -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtQml -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/Qt5GStreamer -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/Qt5GStreamer -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5
    

    and

    pkg-config --libs Qt5GStreamerQuick-1.0
    -lQt5GStreamerQuick-1.0 -lQt5Quick -lQt5Gui -lQt5QmlModels -lQt5Qml -lQt5Network -lQt5GStreamer-1.0 -lQt5GLib-2.0 -lQt5Core
    

    I've tried to add something like:

    LIBS += -L"/usr/lib/x86_64-linux-gnu" -lQt5QmlModels
    

    but it doesn't help.

    How to force Qt to find needed libs also in "global" storage?
    Thanks!

    jsulmJ 1 Reply Last reply
    0
    • R Offline
      R Offline
      r3d9u11
      wrote on last edited by
      #9

      @jsulm , @SGaist Thank you all for your useful hints!

      Now I've got success without qt-gstreamer wrapper:
      https://gstreamer.freedesktop.org/documentation/video/gstvideooverlay.html?gi-language=c
      (manual a bit outdated, but works).

      1 Reply Last reply
      1
      • R r3d9u11

        Hello.
        I have Qt5 installed to:

        /home/Qt/5.12.7
        

        I also installed 3rd-party packages QtGstreamer to system libs directory:

        ldconfig -p | grep libQt5QmlModels
                libQt5QmlModels.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QmlModels.so.5
                libQt5QmlModels.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QmlModels.so
        

        Why Qt is trying to find libraries only in it's own installation path?

        /home/Qt/5.12.7/gcc_64/lib/libQt5QmlModels.so: No such file or directory
        

        pkg-config output:

        pkg-config --cflags Qt5GStreamerQuick-1.0
        -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -pthread -DQT_CORE_LIB -I/usr/include/Qt5GStreamer -I/usr/include/x86_64-linux-gnu/qt5/QtQuick -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtQmlModels -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtQml -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/Qt5GStreamer -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/Qt5GStreamer -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5
        

        and

        pkg-config --libs Qt5GStreamerQuick-1.0
        -lQt5GStreamerQuick-1.0 -lQt5Quick -lQt5Gui -lQt5QmlModels -lQt5Qml -lQt5Network -lQt5GStreamer-1.0 -lQt5GLib-2.0 -lQt5Core
        

        I've tried to add something like:

        LIBS += -L"/usr/lib/x86_64-linux-gnu" -lQt5QmlModels
        

        but it doesn't help.

        How to force Qt to find needed libs also in "global" storage?
        Thanks!

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

        @r3d9u11 said in why Qt can't find 3rd-party libs?:

        I also installed 3rd-party packages QtGstreamer to system libs directory

        For Qt 5.12.7? And why in system lib directory?

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

        R 1 Reply Last reply
        0
        • jsulmJ jsulm

          @r3d9u11 said in why Qt can't find 3rd-party libs?:

          I also installed 3rd-party packages QtGstreamer to system libs directory

          For Qt 5.12.7? And why in system lib directory?

          R Offline
          R Offline
          r3d9u11
          wrote on last edited by r3d9u11
          #3

          @jsulm
          Yes, for Qt 5.12.7, which was installed through Qt's own installer.

          And why in system lib directory?

          Because I just installed linux-package, which contains needed headers and libraries.

          jsulmJ 1 Reply Last reply
          0
          • R r3d9u11

            @jsulm
            Yes, for Qt 5.12.7, which was installed through Qt's own installer.

            And why in system lib directory?

            Because I just installed linux-package, which contains needed headers and libraries.

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

            @r3d9u11 said in why Qt can't find 3rd-party libs?:

            Because I just installed linux-package

            And this package was built using Qt 5.12.7?

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

            R 1 Reply Last reply
            0
            • jsulmJ jsulm

              @r3d9u11 said in why Qt can't find 3rd-party libs?:

              Because I just installed linux-package

              And this package was built using Qt 5.12.7?

              R Offline
              R Offline
              r3d9u11
              wrote on last edited by
              #5

              @jsulm I don't think exactly 5.12.7

              jsulmJ 1 Reply Last reply
              0
              • R r3d9u11

                @jsulm I don't think exactly 5.12.7

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

                @r3d9u11 said in why Qt can't find 3rd-party libs?:

                I don't think exactly 5.12.7

                That could be the problem

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

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

                  Hi,

                  First this: QtStreamer is not an official Qt package.

                  It has also been declared deprecated and unmaintained. Depending on what you want to accomplish they have now a plugin for QML in one of the GStreamer plugin packages. Still depending on what you want to do, if your Qt version is new enough, you can use custom pipelines in QtMultiMedia.

                  If you still want to use it, you will likely have less trouble using your distribution provided Qt against which that module was built.

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

                  R 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Hi,

                    First this: QtStreamer is not an official Qt package.

                    It has also been declared deprecated and unmaintained. Depending on what you want to accomplish they have now a plugin for QML in one of the GStreamer plugin packages. Still depending on what you want to do, if your Qt version is new enough, you can use custom pipelines in QtMultiMedia.

                    If you still want to use it, you will likely have less trouble using your distribution provided Qt against which that module was built.

                    R Offline
                    R Offline
                    r3d9u11
                    wrote on last edited by
                    #8

                    @SGaist Well, I want to record Qt-window to file.
                    I've found some examples, but olnly for qt-gstreamer. I didn't know that it is outdated.

                    With QtMultimedia there is no any way to do that (I asked that question before), it able only to read incoming video stream and render it, as I understand right.

                    So I should to create gstreamer's pipline manually.

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      r3d9u11
                      wrote on last edited by
                      #9

                      @jsulm , @SGaist Thank you all for your useful hints!

                      Now I've got success without qt-gstreamer wrapper:
                      https://gstreamer.freedesktop.org/documentation/video/gstvideooverlay.html?gi-language=c
                      (manual a bit outdated, but works).

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

                        Thanks for the feedback !

                        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

                        • Login

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