Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-10-09 Thread Sven Panne
On Saturday 20 September 2008 19:13:43 Donnie Jones wrote: [...] checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking OpenGL/gl.h usability... no checking OpenGL/gl.h presence... no checking for OpenGL/gl.h... no checking GL/glu.h

Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Donnie Jones
Hello Brandon and Haskell-cafe, (Sorry for the delayed reply...) These seem to be the relevant lines from configure of OpenGL package. checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking OpenGL/gl.h usability... no checking OpenGL/gl.h

Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Brandon S. Allbery KF8NH
On 2008 Sep 20, at 12:57, Donnie Jones wrote: checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking OpenGL/gl.h usability... no checking OpenGL/gl.h presence... no checking for OpenGL/gl.h... no checking GL/glu.h usability... yes checking

Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Donnie Jones
Hello Brandon, On Sat, Sep 20, 2008 at 1:02 PM, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote: On 2008 Sep 20, at 12:57, Donnie Jones wrote: checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking OpenGL/gl.h usability... no checking

Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Donnie Jones
Hello Clifford, Thank you for the quick reply. I was able to get a test C program that draws a triangle with GLUT to work: gcc -lglut triangle.o -o triangle.exe However, when building the Haskell GLUT 'Hello World' it uses, -lGLU to link GLUT, but that does not work; however, from the config.log

SOLVED. Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Donnie Jones
Hello, ghc -package GLUT -lglut Hello1.hs -o Hello1 --- works! :) I'm not sure why I must specify -package GLUT and -lglut but that prevents the linker errors. Also, shouldn't configure correctly figure out how to link the GLUT libraries? Can someone explain? Thank you. __ Donnie On Sat,

Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Brandon S. Allbery KF8NH
On 2008 Sep 20, at 21:47, Donnie Jones wrote: However, when building the Haskell GLUT 'Hello World' it uses, -lGLU to link GLUT, but that does not work; however, from the config.log output configure seems to think that -lGL should work. Is there a way I can change the build to use -lglut?

Re: SOLVED. Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Brandon S. Allbery KF8NH
On 2008 Sep 20, at 22:10, Donnie Jones wrote: ghc -package GLUT -lglut Hello1.hs -o Hello1 --- works! :) I'm not sure why I must specify -package GLUT and -lglut but that prevents the linker errors. Also, shouldn't configure correctly figure out how to link the GLUT libraries? Can

Configure bug? Re: SOLVED. Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-20 Thread Donnie Jones
Hello Brandon, Maybe this is a bug in the configure script of Haskell OpenGL or GLUT packages? Any suggestion from the package maintainers (or someone more familiar with these packages)? Thanks! :) __ Donnie On Sat, Sep 20, 2008 at 10:13 PM, Brandon S. Allbery KF8NH [EMAIL PROTECTED] wrote:

Re: [Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program.

2008-09-11 Thread Brandon S. Allbery KF8NH
On 2008 Sep 12, at 0:24, Donnie Jones wrote: I am trying to test do some OpenGL / GLUT programming in Haskell, but I had linker issues testing the 'Hello World' OpenGL Haskell program. I believe the linker issues were caused because the Haskell GLUT package couldn't find the GLUT C