Firefly开源社区

打印 上一主题 下一主题

[Linux] 如何在rk3399 上面运行这个glmark2-es2-wayland

16

积分

0

威望

0

贡献

技术小白

积分
16

如何在rk3399 上面运行这个glmark2-es2-wayland

发表于 2021-4-2 14:14:10      浏览:5925 | 回复:3        打印      只看该作者   [复制链接] 楼主
1. 首先通过直接apt 安装的方式
sudo apt install glmark2-es2-wayland
启动 glmark2-es2-wayland,
错误为 Error main: Could not initialize canvas

2. 通过源码编译的方式 先通过git clone 代码
配置  ./waf configure --with-flavors=wayland-glesv2
依次将所缺的安装包,安装上,
编译 ./waf build -j 6
报错
firefly@firefly:~/glmark2$ ./waf build -j 6
Waf: Entering directory `/home/firefly/glmark2/build'
[ 2/73] Creating build/src/xdg-shell-protocol.c
[ 3/73] Compiling src/main.cpp
usage: wayland-scanner [OPTION] [client-header|server-header|code] [input_file output_file]

Converts XML protocol descriptions supplied on stdin or input file to client
headers, server headers, or protocol marshalling code.

options:
    -h,  --help                  display this help and exit.
    -v,  --version               print the wayland library version that
                                 the scanner was built against.
    -c,  --include-core-only     include the core version of the headers,
                                 that is e.g. wayland-client-core.h instead
                                 of wayland-client.h.

[ 4/73] Compiling src/canvas-generic.cpp
Waf: Leaving directory `/home/firefly/glmark2/build'
Build failed
-> task in 'xdg-shell-protocol.c' failed (exit status 1):
        {task 547591706376: xdg-shell-protocol.c  -> xdg-shell-protocol.c}
' /usr/bin/wayland-scanner private-code < //usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml > src/xdg-shell-protocol.c '

回复

使用道具 举报

16

积分

0

威望

0

贡献

技术小白

积分
16
发表于 2021-4-2 14:16:45        只看该作者  沙发
设备信息: AIO-rk3399 J
OS ubuntu 16.04
回复

使用道具 举报

899

积分

0

威望

6

贡献

技术大神

Rank: 8Rank: 8

积分
899
发表于 2021-4-6 16:31:37        只看该作者  板凳
ubuntu固件已经集成glmark2了,你使用最新固件在终端输入以下命令:
sudo DISPLAY=:0 glmark2-es2

如果在桌面登录直接运行glmark2-es2命令即可
回复

使用道具 举报

5

积分

0

威望

0

贡献

吃瓜的群众

积分
5
发表于 2021-5-17 17:51:05        只看该作者  地板
895816513 发表于 2021-4-6 16:31
ubuntu固件已经集成glmark2了,你使用最新固件在终端输入以下命令:
sudo DISPLAY=:0 glmark2-es2

能提供最新的固件的版本号么?
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表