Tuesday, September 20, 2005

Currently Working on... and Update: MinGW and PyOpenGL

So apparently I forgot to document the process on how to build PyOpenGL on MinGW+MSYS.

  1. Install MinGW+MSYS.
  2. Install GLUT (Preferably compiled yourself).
  3. Install pyMinGW (Preferably compiled yourself).
  4. Download and decompress the PyOpenGL tarball.
  5. Edit config/win32.cfg so that {include,lib}_dirs points to your GLUT base {include headers,libraries} path, e.g., C:/msys/1.0/local/{include,lib}, add a variable under those named extra_link_args that contains the locations of your Python library and your OpenGL library (that comes with w32api), separated by " ", e.g., C:/msys/1.0/local/lib/libpython.a" "C:/mingw/lib/libopengl32.a, and remove the value of libs in [GL].
  6. Run python setup.py build -cmingw32 && python setup.py install.

Much simpler than some software, trust me.

Also, I am currently working on an S5-building tool using PyGTK. Should be "ready" pretty soon; the hard part wasn't the S5 parser/builder, it'll be the pseudo-WYSIWYG editor.

No comments: