
From: "Andre Furtado"
To: Subject: Re: [HOpenGL] Starting it all over again Date: Tue, 7 Jan 2003 18:01:46 -0200 [...] Although "./configure" completed successfully, I could not understand why the "library containing glutMainLoop" was not found: checking for library containing glutMainLoop... no [...]
Yeh, I have the same problem, and I have a FULL install (all packages). ld can't link any glut calls, so there's a Cygwin setup problem. Cygwin Opengl package comes with gl, glu, glut headers, glut32.dll, and libglui.a libgluix.a. There's no libglut.a. I think that OpenGL is required by XWindow, so libGL.a and libGLU.a exist in X11R6 lib path. glxgears works, so gl works, but glut doesn't.
"make depend" also run successfully, but when trying to issue "make install", the following problem appears:
rm -f GL_BinaryIO.o ; if [ ! -d GL_BinaryIO ]; then mkdir GL_BinaryIO; else find GL_BinaryIO -name '*.o' -print | xargs -s 8000 rm -f __rm_food ; fi ; "/cygdrive/c/GHC/GHC-5.04.2/BIN/ghc" -syslib lang -split-objs -odir GL_BinaryIO -package-name HOpenGL -fglasgow-exts "-#include
" -O -c GL_Binary IO.hs -o GL_BinaryIO.o c:\WINDOWS\TEMP\ghc-445215.hc:4: GL/glut.h: No such file or directory make[1]: *** [GL_BinaryIO.o] Error 1 make: *** [install] Error 1
GHC for Win32 includes a kind of 'gcc' (some executable and libraries). I supposse that GHC uses this gcc, and not Cygwin's, so libraries and headers are missing again: when you 'make' redbook_C examples, cygwin gcc is used, but with redbook_HS GHC gcc is used (I think). At the beginning of this topic Sven points to a .zip containing Mingw OpenGL headers that might be extracted on GHC path, but what about libraries? Manuel. ___________________________________________________ Yahoo! Postales Felicita las Navidades con las postales más divertidas desde http://postales.yahoo.es

Manuel Garcia Rodriguez wrote:
From: "Andre Furtado"
To: Subject: Re: [HOpenGL] Starting it all over again Date: Tue, 7 Jan 2003 18:01:46 -0200 [...] Although "./configure" completed successfully, I could not understand why the "library containing glutMainLoop" was not found: checking for library containing glutMainLoop... no [...] Yeh, I have the same problem, and I have a FULL install (all packages). ld can't link any glut calls, so there's a Cygwin setup problem. Cygwin Opengl package comes with gl, glu, glut headers, glut32.dll, and libglui.a libgluix.a. There's no libglut.a. I think that OpenGL is required by XWindow, so libGL.a and libGLU.a exist in X11R6 lib path. glxgears works, so gl works, but glut doesn't.
The "w32api" package contains the following OpenGL libraries:
usr/lib/w32api/libglaux.a
usr/lib/w32api/libglu32.a
usr/lib/w32api/libglut.a
usr/lib/w32api/libglut32.a
usr/lib/w32api/libopengl32.a
However, these will be for the native Win32 environment (i.e.
Microsoft's opengl32.dll), not Cygwin/X11.
It also contains the wingdi.h header, which contains the wgl*
functions (although those shouldn't be required for HOpenGL).
The "opengl" package contains glut32.dll (which is presumably for the
Win32 environment, not X11), plus headers (which should be portable):
usr/include/GL/gl.h
usr/include/GL/gl.h~
usr/include/GL/glu.h
usr/include/GL/glut.h
The Xprog "package" from the Cygwin port of XFree86 contains the X11
versions of the libraries:
lib/libGL.a
lib/libGLU.a
lib/libGLw.a
Plus the full set of X11 OpenGL headers:
include/GL/
include/GL/gl.h
include/GL/glext.h
include/GL/glu.h
include/GL/GLwDrawA.h
include/GL/GLwDrawAP.h
include/GL/GLwMDrawA.h
include/GL/GLwMDrawAP.h
include/GL/glx.h
include/GL/glxint.h
include/GL/glxmd.h
include/GL/glxproto.h
include/GL/glxtokens.h
include/GL/osmesa.h
The upshot of this is that they don't appear to provide a Cygwin/X11
version of GLUT, only a Win32 (i.e. mingw) version. However, it should
be possible to compile it from source, provided that you have the
Xprog package installed.
--
Glynn Clements
participants (2)
-
Glynn Clements
-
Manuel Garcia Rodriguez