[PyOpenGL-Devel] Re: [ pyopengl-Bugs-893824 ] Cannot build under cygwin
Brought to you by:
mcfletch
From: David S. <si...@la...> - 2004-02-20 01:21:12
|
Dear PyOpenGL Developers, I solved the problem of GLU.GLU__init___.c including GLU.GLU__init___.0103.inc instead of GLU.GLU__init___.0102.inc (wrong version of GLU) by explicitly naming the include and library directories in the cygwin.cfg file. Specifically: include_dirs=/usr/include/w32api/GL:/usr/include/GL library_dirs=/usr/lib/w32api The next problem was that the PyOpenGL build expected a macro GLU_ERROR to be defined but the corresponding line in glu.h in the cygwin include directory is commented out. I put the following in GLU.GLU__init___.c (in the branch for GLU_VERSION_1_2) #ifndef GLU_ERROR #define GLU_ERROR 100014 #endif This is just a kludge to get things working and I would appreciate any suggestions as to how the problem should be corrected properly. Now, the build dies in the course of compiling the WGL extensions (specifically, while attempting to link WGL.ARB.buffer_region.o) because the linker cannot find the symbol PyExc_WindowsError. This symbol is defined in the Python source distribution (pyerrors.h), but only if the macro MS_WINDOWS is defined. Any suggestions on how to proceed? Yours, David --- Dr. David E. Sigeti Phone: 505-667-9239 E-mail: si...@la... Surface mail: X-8, MS-F645, Los Alamos National Laboratory, Los Alamos, NM 87545 USA |