完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试在我们的自定义板上使用 st-example-image-qt (Ecosystem v2.1) 创建的构建上运行 QT 示例。我们有一个简单的 RGB 显示 800x480 分辨率,所以我修改了板上的 cursor.json 如下
{ “设备”:“/dev/dri/card0”, “输出”:[ { “名称”:“DPI1”,“模式”:“800x480”,“尺寸”:“800x480”} ], “hwcursor”:假 但是当我尝试运行任何 QT 示例时,我收到以下错误 root@STM32mp1-midmark:/usr/share#psplash-drm-quit root@stm32mp1-midmark:/usr/share# export QT_QPA_EGLFS_ALWAYS_SET_MODE="1" root@stm32mp1-midmark:/usr/share# 例子/opengl/hellowindow/hellowindow [ 1] 无法打开设备:没有那个文件或目录,再试一次... [ 2] 无法打开设备:没有那个文件或目录,再试一次... [ 3] 无法打开设备:没有那个文件或目录,请重试... [ 4] 无法打开设备:没有那个文件或目录,再试一次... [ 5] _OpenDevice(1086): FATAL: 无法打开设备,errno=No such file or directory。 [ 6] 无法打开设备:没有那个文件或目录,再试一次... [ 7] 无法打开设备:没有那个文件或目录,再试一次... [ 8] 无法打开设备:没有那个文件或目录,请重试... [ 9] 无法打开设备:没有那个文件或目录,再试一次... [ 10] _OpenDevice(1086): FATAL: 无法打开设备,errno=No such file or directory。 root@stm32mp1-midmark:/usr/share# 我需要做什么才能在简单的 RGB 面板上运行 QT 示例? 谢谢。 |
|
相关推荐
1个回答
|
|
问题是由于 QT 与 GPU 的依赖性……在 MP153 上不存在。
要使其工作,请按照以下顺序操作: 1 Prerequisites↑ Must be able to rebuild an OpenSTLinux image 2 OpenSTLinux QT images and SDK↑ OpenSTLinux distribution provides two examples of images based on the QT framework:
2.1 QT image and SDK with EGLFS↑ The QT image and SDK use QT back-end to run single QT applications in full-screen mode. Initialize the OpenEmbedded build environment for the openstlinux-eglfs distro: DISTRO=openstlinux-eglfs MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shRead and accept EULA. Refer to Initializing the OpenEmbedded build environment for more details. Build the image and the SDK: bitbake st-example-image-qt bitbake st-example-image-qt -c populate_sdkRefer to Generating your own Starter and Developer Packages and How to create an SDK for OpenSTLinux distribution for more details. Note: the legacy command bitbake meta-toolchain-qt5 is not recommended because the resulting SDK might miss some target packages. The image can be flashed on the target board as in Flashing the built image. The generated SDK is available in the tmp-glibc/deploy/sdk/ folder. It can be installed as described in Run the SDK installation script, using the following command: ./tmp-glibc/deploy/sdk/st-example-image-qt-openstlinux-eglfs-stm32mp1-x86_64-toolchain-4.0.4-openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23.sh -y -d When using a display that accepts multiple resolutions, the preferred resolution can be specified by editing the board file /usr/share/qt5/cursor.json. For example, for an HDMI display, change the line: { "name": "HDMI1", "mode": "1280x720" },and enter one of the valid resolutions reported by the command: modetestIf the current display resolution is higher than the resolution requested by the QT application, QT expands the application to run it in full screen. This can produce blurred images on the display and can impact the system performance. The QT framework can be configured to use only one part of the overall display. For example, to use only an area of 400x300 pixels, add: { "name": "HDMI1", "mode": "1280x720", "size": "400x300" },2.2 QT image and SDK with weston/wayland↑ The QT image and SDK use QTwayland back-end to run QT applications in independent windows managed by weston. This requires ecosystem release ≥ v2.1.0 . Initialize the OpenEmbedded build environment for the openstlinux-weston distro: DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shRead and accept EULA. Refer to Initializing the OpenEmbedded build environment for further details. Build the image and the SDK: bitbake st-example-image-qtwayland bitbake st-example-image-qtwayland -c populate_sdkRefer to Generating your own Starter and Developer Packages and How to create an SDK for OpenSTLinux distribution for further details. Note: the legacy command bitbake meta-toolchain-qt5 is not recommended because the resulting SDK might miss some target packages. The image can be flashed on the target board as in Flashing the built image. The generated SDK is available in the tmp-glibc/deploy/sdk/ folder. It can be installed as described in Run the SDK installation script, using the following command: ./tmp-glibc/deploy/sdk/st-example-image-qtwayland-openstlinux-weston-stm32mp1-x86_64-toolchain-4.0.4-openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23.sh -y -d Pre-existing QT applications are usually deployed as "project" with one or more .pro file. In such case, QT application can be easily build by qmake command. Open the folder that contains the application, enable the QT SDK and compile the application: cd Note that, CMake tool begins to replace qmake tool and is being used more and more in different projects. 4 Hints to get better performance on embedded platforms↑ Embedded platforms don't share the same high performance as general-purpose personal computers (PC). QT applications that run correctly on a PC might require some adaptation and optimization to run on an embedded platform. Some examples and suggestion to develop or port a QT application to an embedded platform are given below:
但不要接受最终用户许可协议!!! 如果没有 EULA,则不会构建 vivante 驱动程序和相关库。 “mesa”包安装在 vivante 的位置。 Mesa 能够处理无 GPU 设备。 这个例子 /usr/share/examples/opengl/hellowindow/hellowindow 工作正常。很慢,因为完全模拟软件,但它有效! |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2574 浏览 1 评论
3192 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1761 浏览 1 评论
3587 浏览 6 评论
5965 浏览 21 评论
924浏览 4评论
1300浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
563浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1286浏览 3评论
1338浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-5 10:26 , Processed in 1.204278 second(s), Total 47, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号