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