AnsweredAssumed Answered

linux+Qt+usb camera

Question asked by fulin chen on May 2, 2017
Latest reply on May 2, 2017 by fulin chen

Hi community,

    this is my board info:

   HW:

          imx6q

   SW:

         linux-3.0.35

        Qt-5.4

    I can open my usb camera with gstream tool, this:

   gst-launch v4l2src ! mfw_v4lsink

   but it can't when i use Qt mulitmedias examples such as declarative-camera or qmlvideo, it has this log:

# ./qmlvideo
QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
 If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
qml: [qmlvideo] CameraItem.onError error function() { [code] } errorString The camera service is missing

 

I don't know what is wrong with it, and what should i do, can you help me, and anything else of info do you want?

 

Outcomes