Re: [PyOpenGL-Users] Setting Up on New Machine
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2012-02-29 16:04:32
|
On 12-02-29 08:53 AM, Mike C. Fletcher wrote:
> On 12-02-25 07:19 PM, Ian Mallett wrote:
>> On Fri, Feb 3, 2012 at 11:09 AM, Mike C. Fletcher
>> <mcf...@vr...<mailto:mcf...@vr...>> wrote:
>>
>> The tess issues seem to have been there for a long time; it works
>> perfectly well in OpenGLContext' usage and tests, and even works
>> if I copy the OpenGLContext test into a raw test, but the original
>> test doesn't generate vertices (it wasn't checking for that
>> previously). At this point I'm assuming this is just a test-setup
>> issue, so not a critical fix.
>>
>> Yeah, I'm not too concerned about gluTess* stuff; there's hardware
>> support for tessellation now, which is better. And I can honestly
>> say, I've not had need for either.
>>
>> I am having a new problem, however. glutInit is failing. The error
>> looks something like:
>>
>> Traceback (most recent call last):
>> File "<pyshell#2>", line 1, in<module>
>> glutInit()
>> File
>> "C:\dev\Python26\lib\site-packages\pyopengl-3.0.2a4-py2.6.egg\OpenGL\GLUT\special.py",
>> line 324, in glutInit
>> _base_glutInit( ctypes.byref(count), holder )
>> TypeError: 'NoneType' object is not callable
>>
>> There are similar problems with other GLUT functions. I read
>> somewhere that this may be due to 64 bit issues (i.e., PyOpenGL is
>> trying to use a glut32.dll compiled for 32 bit platforms). Is this
>> the case? And is there a way to solve it for the general case?
>>
>> Thanks,
>> Ian
> Alright, I'm now set up and able to build GLUT and GLE in both 32 and
> 64-bit configurations. I'm working on making the build process for both
> of those automatic so that maintaining them won't be a royal pain when
> e.g. we need to build for Python 3.x compiler as well. I've also got
> the latest (trunk) PyOpenGL accelerate modules built for 32 and 64-bit.
Hrm, and now I can't get GLUT to build 64-bit again. For now I'm using
the prebuilt 32 + 64 package. Both 32-bit and 64-bit python are able to
run basic glutinit tests. I haven't done any testing with GLE yet. If
people with 64-bit Windows want to test it:
bzr branch lp:pyopengl
cd pyopengl
python setup.py develop
cd tests
python test_glutinit.py
should produce a blank black window with a lot of debug blather on the
console.
HTH,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|