【RK3588 Mali610 适配 Qt6 】

主要适配RK3588 Mali610GPU

准备文件

1、Qt6源码

2、必须安装的依赖文件

3、缺失的文件fbdev_window.h

其中第三项比较重要,关系到编译初期能够识别到GPU库。

fbdev_window.h内容如下:

cpp 复制代码
/*
 * This confidential and proprietary software may be used only as
 * authorised by a licensing agreement from ARM Limited
 * (C) COPYRIGHT 2008-2011 ARM Limited
 * ALL RIGHTS RESERVED
 * The entire notice above must be reproduced on all authorised
 * copies and copies may only be made to the extent permitted
 * by a licensing agreement from ARM Limited.
 */
/**
 * @file fbdev_window.h
 * @brief A window type for the framebuffer device (used by egl and tests)
 */
#ifndef _FBDEV_WINDOW_H_
#define _FBDEV_WINDOW_H_
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef enum
{
	FBDEV_PIXMAP_DEFAULT = 0,
	FBDEV_PIXMAP_SUPPORTS_UMP = (1<<0),
	FBDEV_PIXMAP_ALPHA_FORMAT_PRE = (1<<1),
	FBDEV_PIXMAP_COLORSPACE_sRGB = (1<<2),
	FBDEV_PIXMAP_EGL_MEMORY = (1<<3)        /* EGL allocates/frees this memory */
} fbdev_pixmap_flags;
 
typedef struct fbdev_window
{
	unsigned short width;
	unsigned short height;
} fbdev_window;
 
typedef struct fbdev_pixmap
{
	unsigned int height;
	unsigned int width;
	unsigned int bytes_per_pixel;
	unsigned char buffer_size;
	unsigned char red_size;
	unsigned char green_size;
	unsigned char blue_size;
	unsigned char alpha_size;
	unsigned char luminance_size;
	fbdev_pixmap_flags flags;
	unsigned short *data;
	unsigned int format; /* extra format information in case rgbal is not enough, especially for YUV formats */
} fbdev_pixmap;
 
#ifdef __cplusplus
}
#endif
 
 
#endif

该文件应放置于/usr/include/EGL/路径下方

然后就是准备的源码进行解压,解压完成后执行预编译指令

cpp 复制代码
./configure -opengl es2

这一步也很重要,估计是3588只支持es2否则也不能正常调用gpu

其余的就是各种三方依赖需要满足对应的版本要求即可。

相关推荐
光影少年6 小时前
React 项目常见优化方案
前端·react.js·前端框架
lichenyang4536 小时前
把 demo 里的 console.log 全换成 HiLog:从 %{private} 没脱敏的困惑说起
前端
烬羽6 小时前
JS 单线程为什么不卡?一文吃透同步异步、Event Loop 和 Promise
javascript·面试
光影少年6 小时前
组件复用:HOC、Render Props、自定义Hook 对比
前端·react.js·掘金·金石计划
Gauss松鼠会6 小时前
【GaussDB】GaussDB SMP特性调优详解
java·服务器·前端·数据库·sql·算法·gaussdb
葬送的代码人生6 小时前
JavaScript 数组完全指南:从入门到实战
前端·javascript·算法
用户938515635076 小时前
深入理解 JavaScript 同步与异步:从单线程到事件循环与 Promise
前端·javascript
搬砖的码农6 小时前
造一个 Agent 运行时 #01:我决定开干,顺便把坑都写下来
前端·agent·ai编程
yingyima7 小时前
深入解析:定时任务失败重试机制的底层原理与实践
前端
哈撒Ki7 小时前
快速入门vue3与常见面试题
前端·vue.js·面试