The fix outlined in
seems to work! Please post your experiences.
You need not go through the trouble I experienced
by following the tips below. These are for compiling
via distutils under Windows MSVC 6.
Tip #1. I used PyOpenGL-22.214.171.124-zip, the CVS
compile this afternoon seemed to finally
work, but there were warnings...
Tip #2. Use Swig1.3a5.zip - I had a hell of
a time trying to get other versions to work
until I saw the message recommending I use
Unzip to Swig1.3a5.zip to a directory of your
choice (should be in your path so distutils can
find it). Then "set SWIG_LIB=c:\the_new_swig_path\lib"
Tip #3. Fix togl_setup.py.
The Tcl lib and include entries seem to be wrong -
at least for ActivePython 2.2.1.
include_dirs.append(os.path.join(tk.getvar('tk_library'), '..', '..',
at line 45 to:
include_dirs.append(os.path.join(tk.getvar('tk_library'), '..', 'include'))
Note: Not sure if this will break builds under Linux or other Python
distributions. This corresponds to
if sys.platform == 'win32':
at line 49.
Tip #3 applies to the CVS source as well.
Perhaps these fixes (if they are correct) could be included in
the next PyOpenGL 2.0.0.x.
Are there any plans to migrate the interfaces to work with
the latest Swig?