This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3354: Camera demo fails with Qt 5

Part Number: AM3354

Tool/software: Linux

hi

  I'm evaluating the camera function on AM3354 platform.

  we are using SDK 03.02.00.05. which is based on Qt5.6.2

  we also have a logitech USB camera.

  When the camera is plugged in.I can see the log for UVC camera:

new high-speed USB device number 3 using musb-hdrc
uvcvideo: Found UVC 1.00 device <unnamed> (046d:081b)
input: UVC Camera (046d:081b) as /devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/input/input0

 
 And i used the motion-project from github to test the camera.And it working ok.Prooving the camera driver is ok.

 Now.When i try to run the official Qt5 camera demo.It doesn't work.like this:

export QTDIR=/usr/lib
export LD_LIBRARY_PATH=$QTDIR/
export QT_QPA_PLATFORM=eglfs:/dev/fb0
export QT_QPA_FONTDIR=$QTDIR/fonts
export QT_PLUGIN_PATH=$QTDIR/qt5/plugins
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="linuxinput:/dev/input/event1"

/usr/share/qt5/examples/multimediawidgets/camera/camera

 No error log is found when running the camera demo.

 and the screen look like this:

 

And i also tried to run another demo:

/usr/share/qt5/examples/multimedia/declarative-camera/declarative-camera

and the screen look like this:

the declarative-camera did report some error like:

qrc:///VideoCaptureControls.qml:110: Error: Cannot assign [undefined] to QString
qrc:///CameraListButton.qml:65:5: QML CameraListPopup: Binding loop detected for property "currentValue"
qrc:///PhotoCaptureControls.qml:135: Error: Cannot assign [undefined] to QString
qrc:///CameraListButton.qml:65:5: QML CameraListPopup: Binding loop detected for property "currentValue"
Unable to get the parameter value: the parameter is not supported.

But i don't know if it's related or not.

but both application looks like the same kind of problem.

there is no preview for the camera.

Could you help please?

yandong