想用pi3d在EAIDK-610上做个project,无奈遇到了很多问题,不知道有没有大佬能帮帮忙。
部分demo在运行时会闪现一个窗口,接着就是错误信息:
['Minimal', 4] >-> Traceback (most recent call last): File "Minimal.py", line 9, in <module> display_config=pi3d.DISPLAY_CONFIG_HIDE_CURSOR | pi3d.DISPLAY_CONFIG_MAXIMIZED, use_glx=True) File "/usr/local/lib/python3.6/site-packages/pi3d/Display.py", line 563, in create display_config=display_config, window_title=window_title, use_glx=use_glx) File "/usr/local/lib/python3.6/site-packages/pi3d/util/DisplayOpenGL.py", line 130, in create_display if b"ES" in version: TypeError: argument of type 'NoneType' is not iterable
另外大部分demo直接报错,窗口也没有创建:
['Minimal_2d', 4] >->
Traceback (most recent call last):
File "Minimal_2d.py", line 7, in <module>
DISPLAY = pi3d.Display.create(x=50, y=50, frames_per_second=30, display_config=pi3d.DISPLAY_CONFIG_FULLSCREEN)
File "/usr/local/lib/python3.6/site-packages/pi3d/Display.py", line 563, in create
display_config=display_config, window_title=window_title, use_glx=use_glx)
File "/usr/local/lib/python3.6/site-packages/pi3d/util/DisplayOpenGL.py", line 102, in create_display
assert self.context != EGL_NO_CONTEXT and self.context is not None
AttributeError: 'DisplayOpenGL' object has no attribute 'context'
我直接在python3里面输入
import pi3d
d = pi3d.Display.create(w=100, h=100)
也是报一样的错误
EAIDK也是arm架构,gpu也是arm,也是linux系统。我本以为应该和树莓派差不太多,pi3d应该比较好运行。可能是因为gpu驱动或是OPENGL的问题???
我又找了下机器上的GL libraries,应该和系统刚装的时候是一样的吧:
[openailab@localhost ~]$ sudo find / -name libEGL*
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/lib64/libEGL.so
/usr/lib64/libEGL_mesa.so.0.0.0
/usr/lib64/libEGL_mesa.so.0
/usr/lib64/libEGL.so.1.1.0
/usr/lib64/libEGL.so.1
find: ‘/proc/3055’: No such file or directory
[openailab@localhost ~]$ sudo find / -name libGLESv2*
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/lib64/libGLESv2.so.2.1.0
/usr/lib64/libGLESv2.so.2
/usr/lib64/libGLESv2.so
find: ‘/proc/5132’: No such file or directory
find: ‘/proc/5134’: No such file or directory
不知道大佬们有没有什么好的建议?