Toybrick

OpenGL/CL遇到的问题

MadDog

中级会员

积分
402
发表于 2021-1-13 16:00:32    查看: 7013|回复: 2 | [复制链接]    打印 | 显示全部楼层
按照 “RK3399Pro入门教程(12)OpenGL/CL在Debian10上的安装和使用”这个贴子,所有的安装步骤都没有问题,
可是在运行测试的时候遇到如下的问题:


root@debian10:/# glmark2-es2-drm
glmark2-es2-drm: error while loading shared libraries: /lib/aarch64-linux-gnu/libgbm.so.1: file too short
root@debian10:/# clinfo
clinfo: error while loading shared libraries: /lib/aarch64-linux-gnu/libOpenCL.so.1: file too short
root@debian10:/# ls -al lib/aarch64-linux-gnu/libOpenCL.so.1
lrwxrwxrwx 1 root root 18 Dec 17  2018 lib/aarch64-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0.0
root@debian10:/# ls -al lib/aarch64-linux-gnu/libOpenCL.so.1.0.0
lrwxrwxrwx 1 root root 25 Jan 13 07:46 lib/aarch64-linux-gnu/libOpenCL.so.1.0.0 -> libmali-toybrick.so.r18p0
root@debian10:/# ls -al lib/aarch64-linux-gnu/libmali-toybrick.so.r18p0
-rw-r--r-- 1 root root 0 Jan 13 07:06 lib/aarch64-linux-gnu/libmali-toybrick.so.r18p0

发现问题可能出在libmali-toybrick.so.r18p0文件,该文件的大小是0 个字节,应该是出了问题。请问这个问题件是那个步骤,在什么时候
安装的?为什么会出现大小为0字节的情况?是我安装什么东西的源选择错误了吗?
这是我的源的内容:
root@debian10:/# cat /etc/apt/sources.list.d/toybrick.list
deb http://repo.rock-chips.com/debian buster main
deb http://repo.rock-chips.com/toybrick/auth-debian buster main
root@debian10:/#



系统是全新烧的,3399ProD的硬件,debian10的系统,也按照文档描述进行了更新。


回复

使用道具 举报

MadDog

中级会员

积分
402
 楼主| 发表于 2021-1-13 19:11:17 | 显示全部楼层
重新烧系统,按步骤重新来,glmark2运行正常了,
root@debian10:/home/toybrick# glmark2-es2-drm
=======================================================
    glmark2 2017.07
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-T860
    GL_VERSION:    OpenGL ES 3.2 v1.r18p0-01rel0.5630b190419266e7fe8b09ec0007fb39
=======================================================
[build] use-vbo=false:
FPS: 59 FrameTime: 16.949 ms
[build] use-vbo=true:
FPS: 60 FrameTime: 16.667 ms
[texture] texture-filter=nearest:
FPS: 60 FrameTime: 16.667 ms
[texture] texture-filter=linear: FPS: 59 FrameTime: 16.949 ms
[texture] texture-filter=mipmap: FPS: 60 FrameTime: 16.667 ms
[shading] shading=gouraud: FPS: 60 FrameTime: 16.667 ms
[shading] shading=blinn-phong-inf: FPS: 59 FrameTime: 16.949 ms
[shading] shading=phong: FPS: 59 FrameTime: 16.949 ms
[shading] shading=cel: FPS: 60 FrameTime: 16.667 ms
[bump] bump-render=high-poly: FPS: 59 FrameTime: 16.949 ms
[bump] bump-render=normals: FPS: 60 FrameTime: 16.667 ms
[bump] bump-render=height: FPS: 59 FrameTime: 16.949 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 37 FrameTime: 27.027 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 33 FrameTime: 30.303 ms
[pulsar] light=false:quads=5:texture=false: FPS: 60 FrameTime: 16.667 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 32 FrameTime: 31.250 ms
[desktop] effect=shadow:windows=4: FPS: 59 FrameTime: 16.949 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 20 FrameTime: 50.000 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 20 FrameTime: 50.000 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 29 FrameTime: 34.483 ms
[ideas] speed=duration: FPS: 40 FrameTime: 25.000 ms
[jellyfish] <default>: FPS: 59 FrameTime: 16.949 ms
[terrain] <default>: FPS: 14 FrameTime: 71.429 ms
[shadow] <default>: FPS: 30 FrameTime: 33.333 ms
[refract] <default>: FPS: 19 FrameTime: 52.632 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 59 FrameTime: 16.949 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 59 FrameTime: 16.949 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 59 FrameTime: 16.949 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 60 FrameTime: 16.667 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 59 FrameTime: 16.949 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 60 FrameTime: 16.667 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 59 FrameTime: 16.949 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 59 FrameTime: 16.949 ms
=======================================================
                                  glmark2 Score: 49
=======================================================

但是 clinfo还是报错
root@debian10:/home/toybrick# clinfo                                                                  
clinfo: /lib/aarch64-linux-gnu/libOpenCL.so.1: version `OPENCL_1.0' not found (required by clinfo)

为啥呢?
回复

使用道具 举报

jefferyzhang

版主

积分
12848
发表于 2021-1-13 21:55:16 | 显示全部楼层
可以试着用clinfo源码在板子上编译下。他link的so库错了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表