Re: [問題] 在 Leopard 上使用 PyOpenGL
※ [本文轉錄自 MacDev 看板]
作者: bizkit (膩) 看板: MacDev
標題: Re: [問題] 在 Leopard 上使用 PyOpenGL
時間: Thu Oct 2 16:38:02 2008
※ 引述《bizkit (膩)》之銘言:
: Hi,
: 請問有沒有人成功在 leopard 上安裝 了 PyOpenGL ?
: 我可以用 glut 在 C/C++ 上寫 GL
: 安裝 PyOpenGL 的過程也沒有錯誤訊息
: 但是 from OpenGL.GL import * 就會失敗
: bt:
: File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ \
: python2.5/ctypes/__init__.py", line 325, in __init__
: self._handle = _dlopen(self._name, mode)
: OSError: ('dlopen(glut, 10): image not found', 'glut', None)
: 請問我做錯了什麼?
自問自答...
在 /Library/Python/2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/
OpenGL/platform/darwin.py
42 # glut shouldn't need to be global, but just in case a dependent library makes
43 # the same assumption GLUT does...
44 GLUT = ctypesloader.loadLibrary(
45 ctypes.cdll,
46 'glut',
47 mode=ctypes.RTLD_GLOBAL
48 )
改成
42 # glut shouldn't need to be global, but just in case a dependent library makes
43 # the same assumption GLUT does...
44 GLUT = ctypesloader.loadLibrary(
45 ctypes.cdll,
46 'GLUT',
47 mode=ctypes.RTLD_GLOBAL
48 )
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.138.16.55
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.138.16.55
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Python 近期熱門文章
PTT數位生活區 即時熱門文章