按照在MPSoC上運(yùn)行基于eglfs_kms的QT應(yīng)用程序, 可以在MPSoC ZCU106單板的DP上基于eglfs_kms的運(yùn)行QT應(yīng)用程序。按照在VCUTRD 2020.1 里設(shè)置HDMI-TX顯示QT界面, 可以在MPSoC ZCU106單板的HDMI-Tx上基于X11的運(yùn)行QT應(yīng)用程序。在HDMI-Tx上,基于eglfs_kms的運(yùn)行QT應(yīng)用程序,遇到了下列兩個(gè)錯(cuò)誤。
錯(cuò)誤1
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/volatile/tmp/runtime-root' Setting framebuffer size is only available with DRM atomic API Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created. Could not queue DRM page flip on screen HDMI1 (Invalid argument) Could not queue DRM page flip on screen HDMI1 (Invalid argument)
錯(cuò)誤2
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/volatile/tmp/runtime-root' Framebuffer size format is invalid. Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created. Failed to commit atomic request (code=-22)
基于在VCUTRD 2020.1 里設(shè)置HDMI-TX顯示QT界面做更改后,執(zhí)行下列命令,可以在MPSoC ZCU106單板的DP上基于eglfs_kms的運(yùn)行QT應(yīng)用程序。其中的$display_device和$connector_id,需要根據(jù)單板更改。display_device一般是類(lèi)似a0070000.v_mix的格式,可以通過(guò)“dmesg | grep v_mix”查到。$connector_id,可以在“modetest -D $display_device”的輸出里查找, 也可以根據(jù)檢查Linux DRM顯示設(shè)備ID的腳本 得到。
update-alternatives --install /usr/lib/libMali.so.9.0 libmali /usr/lib/wayland/libMali.so.9.0 90 echo Y > /sys/module/xlnx_mixer/parameters/mixer_primary_enable modetest -D $display_device -s $connector_id:1920x1080-60@AR24 killall Xorg cat /run/kms.conf export QT_QPA_PLATFOR export QT_QPA_EGLFS_KMS_ATOMIC=1 export QT_QPA_EGLFS_INTEGRATIO export QT_QPA_EGLFS_KMS_CONFI export QT_QPA_EGLFS_DEBU export QT_QPA_EGLFS_FORCE888=1 # chmod +x /run/qt5everywheredemo-1.0/QtDemo # /run/qt5everywheredemo-1.0/QtDemo ls -l /usr/share/examples/opengl/ /usr/share/examples/opengl/cube/cube /usr/share/examples/opengl/textures/textures
如果運(yùn)行失敗,有時(shí)執(zhí)行“ctrl+c”還不能退出QT應(yīng)用程序cube和textures,還需要執(zhí)行命令“kill -9 ”, 或者“killall -9 cube”,才能讓其退出。
上述的/run/kms.conf內(nèi)容如下:
{ "device": "/dev/dri/card1", "hwcursor": false, "pbuffers": true, "outputs": [ { "name": "HDMI", "mode": "1920x1080" } ] } 審核編輯:湯梓紅
-
Qt
+關(guān)注
關(guān)注
2文章
314瀏覽量
39078 -
MPSoC
+關(guān)注
關(guān)注
0文章
201瀏覽量
24749
發(fā)布評(píng)論請(qǐng)先 登錄
ZCU102,ZCU104和ZCU106有什么區(qū)別?
如何運(yùn)行基于eglfs_kms的QT應(yīng)用程序
嵌入式Linux的Qt相關(guān)資料分享
基于ZCU106單板的功耗優(yōu)化

在MPSoC上運(yùn)行基于eglfs_kms的QT應(yīng)用程序
在MPSoC上運(yùn)行QT應(yīng)用程序
【工程師分享】在MPSoC上運(yùn)行基于eglfs_kms的QT應(yīng)用程序

在ZCU106單板上驗(yàn)證Xilinx超低延時(shí)編解碼方案

如何在zcu106之間運(yùn)行1588?
嵌入式Linux的Qt

ZCU106在PLDDR實(shí)現(xiàn)超低延時(shí)編碼

ZCU106的超低延時(shí)gstreamer編解碼命令
在ZCU106開(kāi)發(fā)板上的僅限TX的設(shè)計(jì)內(nèi)實(shí)現(xiàn)UHD-SDITX子系統(tǒng)

評(píng)論