【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

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

相关推荐
杉氧4 小时前
丝滑的奥秘:Reanimated 3 动画引擎与手势处理(Gesture Handler)
android·前端·react native
用户970161501684 小时前
浏览器切到后台后,AI 给我的代码就失效了:我拿 3 个模型测了 6 个定时器坑
前端·代码规范
蓝星空20004 小时前
GPT Image 2.5 生图模型已上线,支持 Flare 与 Sunburst 型号选择
前端·gpt·aigc·image2·imagen
何何____4 小时前
js常见继承方法详解
前端·javascript
parade岁月4 小时前
Tailwind CSS 加入 Shopify,正在用 Tailwind 的项目要不要调整?
前端
梨想橙汁5 小时前
Vue2 快速入门:环境搭建、模板语法、指令系统全解
前端·vue.js
King of fraud5 小时前
HTML 页面的 CSS 选择器详解
前端·css·html
lichenyang4535 小时前
ASCF 元服务如何区分“后台恢复”与“携参拉起”:后台标记 + 参数指纹方案
前端
前端 贾公子5 小时前
Milvus使用指南 (下)
java·服务器·前端
用户2462035827815 小时前
TypeScript类型建模与前后端错误码协议:手机号绑定场景的工程实践
前端