OpenGL.error.NullFunctionError: Attempt to call an undefined function (ubuntu14(32位) python opengl )
来源:互联网 发布:gta5卡顿优化 编辑:程序博客网 时间:2024/05/21 16:56
安装opengl
使用命令 sudo pip install pyopengl
然后执行实例代码
import sysimport mathimport numpyimport OpenGLfrom OpenGL.GL import *from OpenGL.GLUT import *import Imageimport linkage# ... a whole load of definitions etc ...glutInit(sys.argv)glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB)glutInitWindowSize(600, 600)glutCreateWindow('linkage')init()initWindow()glutIdleFunc(idle)glutMainLoop(
报错:OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
解决: 执行sudo apt-get install python-opengl
1 0
- OpenGL.error.NullFunctionError: Attempt to call an undefined function (ubuntu14(32位) python opengl )
- “OpenGL.error.NullFunctionError: Attempt to call an undefined function”解决方案
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function curl_init()
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function
- Fatal error: Call to undefined function randstr()
- Fatal error: Call to undefined function openssl_pkey_get_private()
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function mcrypt_get_block_size()
- Fatal error: Call to undefined function cal_days_in_month()
- error:Call to undefined function curl_init()解决
- Error: Call to undefined function _()
- Fatal error: Call to undefined function file_iterator_autoload()
- Fatal error: Call to undefined function imagettftext()
- Fatal error: Call to undefined function imagettftext()
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function mb_strlen()
- C# Tostring 格式化输出字符串全解
- Java NIO系列教程(十一) Pipe
- JSP中#,%,$取值符号的说明
- Java源文件判断
- Hibernate学习笔记(第四天)
- OpenGL.error.NullFunctionError: Attempt to call an undefined function (ubuntu14(32位) python opengl )
- 【PM】互联网项目管理的特点总结
- 数据库模型设计——主键的设计
- 观察者模式(Observer Pattern)
- 软件流程规范---java代码规范
- 写一个通用的事件侦听器函数
- 编译CEF
- ajax传值后台获取初步了解
- 设计模式之UML类图初步