[i.MX8QXP] How to enable OpenGL ES 2 on i.MX8QXP?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[i.MX8QXP] How to enable OpenGL ES 2 on i.MX8QXP?

ソリューションへジャンプ
2,459件の閲覧回数
WolsYang
Contributor IV

Hi NXP,

Due to " i.MX Linux Reference Manual Rev. LF5.15.71_2.2.0 — 16 December 2022 5.1.x".

I think we can use  OpenGL ES 2 on i.MX8QXP right?

I am trying to use kivy on i.MX8QXP, and I got error like this.

 

[INFO   ] [Factory     ] 189 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'OpenGL ES-CM 1.1'>
[INFO   ] [GL          ] OpenGL vendor <b'Vivante Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'Vivante GC7000L'>
[INFO   ] [GL          ] OpenGL parsed version: 1, 1
[CRITICAL] [GL          ] Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: b'OpenGL ES-CM 1.1'
Vendor: b'Vivante Corporation'
Renderer: b'Vivante GC7000L'

Try upgrading your graphics drivers and/or your graphics hardware in case of problems.

The application will leave now.
Segmentation fault

 

The kivy recipe is from "IMAGE_INSTALL += " python3-kivy"

Base on "imx-image-full.bb" and ' REQUIRED_DISTRO_FEATURES:remove = "x11" '

I think openGL ES v2 is there, but not linked.

root@iBox-500:~/kivyTest# locate libGLESv2
/usr/lib/libGLESv2.so
/usr/lib/libGLESv2.so.2
/usr/lib/libGLESv2.so.2.0.0
0 件の賞賛
返信
1 解決策
2,445件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The OpenGL ES has been opened, you can test it refering 9 Graphics in https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,446件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The OpenGL ES has been opened, you can test it refering 9 Graphics in https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

0 件の賞賛
返信
2,437件の閲覧回数
WolsYang
Contributor IV

Hi @Zhiming_Liu ,

Is the EGL link to OpenGL ES-CM 1.1 or OpenGL ES 2?

May I know EGL Yocto recipe path?

When the code run ' glGetString(GL_VERSION)' I got  " b'OpenGL ES-CM 1.1' "

Thanks : ) 

0 件の賞賛
返信
2,442件の閲覧回数
WolsYang
Contributor IV

Hi @Zhiming_Liu ,

root@iBox-500:~/kivyTest# dmesg | grep Galcore
[    1.957242] Galcore version 6.4.3.p4.398061
root@iBox-500:~/kivyTest# grep VERSION /usr/lib/libGAL*
grep: /usr/lib/libGAL.so: binary file matches

 Thank you.

Did you think is a linked problem that Kivy says it can not find OpenGL ES 2? 

0 件の賞賛
返信
2,431件の閲覧回数
WolsYang
Contributor IV

So I follow https://github.com/kivy/kivy/issues/7232 to build SDL2 from the source.

After then when running my app I got the message below, it is linked to  openGL ES 3 now.

Do you have any idea to make some changes in libSDL2_%.bbappend let SLD2 link to openGL ES 2?

0 件の賞賛
返信