Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. problem deploying qt app with camera
Forum Updated to NodeBB v4.3 + New Features

problem deploying qt app with camera

Scheduled Pinned Locked Moved Solved Installation and Deployment
11 Posts 4 Posters 774 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Did you also activate the verbose logging for QtMultimedia ?

    Might be a silly question but are you sure that all the ldd outputs are pointing to the librairies you deployed along your application and not from the system ?

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

    QtFriend2024Q 1 Reply Last reply
    0
    • O Offline
      O Offline
      oliver_mpt
      wrote on last edited by
      #3

      Hello,
      No I have not used verbose logging for Qt multimedia, I didn't know it existed. I'll check that now.
      For the ldd output, I have effectively checked that the deployed libraries are used. For that to happen, I had to set the LD_LIBRARY_PATH variable to the proper path.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oliver_mpt
        wrote on last edited by
        #4

        A short search has not given me a clear picture of how to activate verbose logging for Qt. Can you elaborate a bit ?

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

          You can find the syntax and some additional things you can enable in this page of the Qt Multimedia documentation.

          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
          • O Offline
            O Offline
            oliver_mpt
            wrote on last edited by
            #6

            I have made several tests, and on the multimedia part, everything looks fine. However, finally I found that something about wayland appear to be missing, so I added other plugins in my deployment "plugins" folde, and here is its actual content (folders):
            iconengines
            imageformats
            multimedia
            platforms
            platforminputcontexts
            platformthemes
            wayland-decoration-client
            wayland-graphics-integration-client
            wayland-graphics-integration-server
            wayland-shell-integration
            xcbglintegrations

            I have now an error message at the start of the application: "qt.qpa.wayland: Failed to load client buffer integration: "wayland-egl" "

            One thing I don't understand is that, although I have set LD_LIBRARY_PATH to the deployment folder, I have to make symbolic links from the deployment folder to the different folders in "plugins" directory for them to be seen.

            jsulmJ 1 Reply Last reply
            0
            • O oliver_mpt

              I have made several tests, and on the multimedia part, everything looks fine. However, finally I found that something about wayland appear to be missing, so I added other plugins in my deployment "plugins" folde, and here is its actual content (folders):
              iconengines
              imageformats
              multimedia
              platforms
              platforminputcontexts
              platformthemes
              wayland-decoration-client
              wayland-graphics-integration-client
              wayland-graphics-integration-server
              wayland-shell-integration
              xcbglintegrations

              I have now an error message at the start of the application: "qt.qpa.wayland: Failed to load client buffer integration: "wayland-egl" "

              One thing I don't understand is that, although I have set LD_LIBRARY_PATH to the deployment folder, I have to make symbolic links from the deployment folder to the different folders in "plugins" directory for them to be seen.

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

              @oliver_mpt said in problem deploying qt app with camera:

              Failed to load client buffer integration: "wayland-egl"

              Install libwayland-egl1 package

              Regarding plug-ins: take a look at https://doc.qt.io/qt-6/qt-conf.html

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

              1 Reply Last reply
              0
              • O Offline
                O Offline
                oliver_mpt
                wrote on last edited by
                #8

                Hello
                Thanks for pointing me the qt.conf file. I will experiment with that.
                Regarding libwayland-egl1 package, apt reported that it was already installed in the most recent version.

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  oliver_mpt
                  wrote on last edited by
                  #9

                  After some tests, I have setup the proper qt.conf file and that solved all issues, which were clearly related to paths for plugins and libraries. I think that qt.conf should be systematically used for correct deployment and the document cited by jsulm above is very clear.
                  Thanks !

                  1 Reply Last reply
                  0
                  • O oliver_mpt has marked this topic as solved on
                  • SGaistS SGaist

                    Hi,

                    Did you also activate the verbose logging for QtMultimedia ?

                    Might be a silly question but are you sure that all the ldd outputs are pointing to the librairies you deployed along your application and not from the system ?

                    QtFriend2024Q Offline
                    QtFriend2024Q Offline
                    QtFriend2024
                    wrote on last edited by QtFriend2024
                    #10

                    @SGaist Hello, I switched to using OpenCV lib and a USB Camera instead of a CSI (Camera Serial Interface) Camera. I am able to build and run the application but it's a plain C++ application. I'll work on this more....

                    1 Reply Last reply
                    0
                    • QtFriend2024Q Offline
                      QtFriend2024Q Offline
                      QtFriend2024
                      wrote on last edited by
                      #11

                      I switched to a USB Camera and am able to get my QT application to use the camera, now.

                      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