Loading...
首页问答      

rv1126运行qt界面,但是屏幕没显示

嗯哼丶
嗯哼丶  发布于 2021-02-04 16:26:35 460

目前有一块瑞芯微1126的EVB开发板,按照其说明文档在buildroot中添加了qt5相关内容,并且编译了测试程序。配置/etc/profile后程序运行没有错误,但是屏幕没有显示界面,请问还需要做什么配置。
屏幕不是触摸屏,所以没有配置tslib相关内容。
QT_QPA_PLATFORM都试过linuxfb,minimal,offscreen,vnc,wayland,都没有办法显示,/dev下没有fb。

# /etc/profile
# ...
export QT_ROOT=/usr/lib/qt
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=minimal:dri=/dev/dri/card0
export QML_IMPORT_PATH=$QT_ROOT/qmltooling
export QML2_IMPORT_PATH=$QT_ROOT/qmltooling
# ...

以下是buildroot下configs/rockchip_rv1126_rv1109_defconfig的差别。

+# BR2_PACKAGE_MINIGUI_SOFTWARE_SCALE is not set
+BR2_PACKAGE_RTC_DEMO=y
 BR2_PACKAGE_IPCWEB_BACKEND=y
 BR2_PACKAGE_DBSERVER=y
 BR2_PACKAGE_NETSERVER=y
@@ -60,6 +63,28 @@ BR2_PACKAGE_FFMPEG_PARSERS=""
 BR2_PACKAGE_FFMPEG_BSFS="aac_adtstoasc h264_metadata h264_mp4toannexb h264_redundant_pps hevc_metadata hevc_mp4toannexb dump_extradata remove_extradata"
 BR2_PACKAGE_FFMPEG_PROTOCOLS="file rtp srtp rtmp rtmps http https"
 BR2_PACKAGE_FFMPEG_FILTERS="scale"
+BR2_PACKAGE_BITSTREAM_VERA=y
+BR2_PACKAGE_CANTARELL=y
+BR2_PACKAGE_DEJAVU=y
+BR2_PACKAGE_FONT_AWESOME=y
+BR2_PACKAGE_GHOSTSCRIPT_FONTS=y
+BR2_PACKAGE_INCONSOLATA=y
+BR2_PACKAGE_LIBERATION=y
+BR2_PACKAGE_QT5=y
+BR2_PACKAGE_QT5BASE_SQLITE_QT=y
+BR2_PACKAGE_QT5BASE_WIDGETS=y
+BR2_PACKAGE_QT5BASE_FONTCONFIG=y
+BR2_PACKAGE_QT5BASE_JPEG=y
+BR2_PACKAGE_QT5BASE_PNG=y
+BR2_PACKAGE_QT5BASE_TSLIB=y
+BR2_PACKAGE_QT5CONNECTIVITY=y
+BR2_PACKAGE_QT5MULTIMEDIA=y
+BR2_PACKAGE_QT5QUICKCONTROLS=y
+BR2_PACKAGE_QT5TOOLS=y
+BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS=y
+BR2_PACKAGE_QT5VIRTUALKEYBOARD=y
+BR2_PACKAGE_QT5WAYLAND=y
+BR2_PACKAGE_QT5WAYLAND_COMPOSITOR=y
 BR2_PACKAGE_DBUS_GLIB=y
 # BR2_PACKAGE_EUDEV_ENABLE_HWDB is not set
 BR2_PACKAGE_SQLITE_STAT3=y
@@ -67,6 +92,7 @@ BR2_PACKAGE_SQLITE_ENABLE_FTS3=y
 BR2_PACKAGE_SQLITE_ENABLE_JSON1=y
 BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY=y
 BR2_PACKAGE_SQLITE_SECURE_DELETE=y
+BR2_PACKAGE_PIXMAN=y
 BR2_PACKAGE_LIBV4L=y
 BR2_PACKAGE_LIBV4L_UTILS=y
 BR2_PACKAGE_AVAHI=y
david  发布于 2021-02-04 19:59:30 优质回答

fb 没设置吧

0
一个爱徒步的~IT民工
嗯哼丶  发布于 2021-02-05 08:31:05

确实 昨天在一个交流群中有位老哥提示了,在profile中加了以下两句,就可以显示了

 export QT_QPA_FB_DRM=1
 export QT_QPA_PLATFORM=linuxfb:rotation=0

fb 没设置吧

0
添加附件:文件小于20M
上传
易百纳技术社区
确定要删除此文章、专栏、评论吗?
确定
取消
易百纳技术社区