Re: Starting it all over again

Manuel Garcia Rodriguez <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
> From: "Andre Furtado" <[email protected]>
> To: <[email protected]>
> 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
> <GL/glut.h>" -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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.