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.

AM5728 Qt 程序中调用 drmModeAtomicCommit 报错,急!急!

Other Parts Discussed in Thread: AM5728

        在AM5728上做视频采集程序,主界面用Qt实现,包含Logo,提示语,控制按钮等;视频通过V4L2采集,在界面的指定区域显示,视频缓冲区通过drm来指定。

        按照drm编程的流程,在调用到drmModeAtomicCommit 报错,错误码为 -13, Permission denied

        如果执行 /etc/inti.d/weston stop后,执行一个不含Qt的drm示例程序(kmscapture),drmModeAtomicCommit 不会报错,视频也正常显示;

       但这时Qt程序无法正常执行,报错:Failed to create display (No such file or directory),必须/etc/init.d/weston start后才能运行Qt程序,

      谁能指导我一下,怎样将Qt 和 V4l2视频采集结合起来,缓冲区为dmabuf,由drm来分配, 跪谢!!!