[PyOpenGL-Users] Was able to fix glTexCoordPointer problem!
Brought to you by:
mcfletch
From: Andy S. <an...@ne...> - 2002-05-27 07:38:52
|
The fix outlined in http://www.geocrawler.com/archives/3/4494/2002/3/0/8161591/ 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-2.0.0.44-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 that version. 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. Change include_dirs.append(os.path.join(tk.getvar('tk_library'), '..', '..', 'include')) 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 changing -IC:\python22\tcl\tk8.3\..\..\include to -IC:\python22\tcl\tk8.3\..\include Add lib_dirs.append(os.path.normpath(os.path.join(tk.getvar('tcl_library'), '..', 'lib'))) after the 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? |