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

Donnie Jones donnie at darthik.com
Sat Sep 20 13:13:43 EDT 2008


Hello Brandon,

On Sat, Sep 20, 2008 at 1:02 PM, Brandon S. Allbery KF8NH <
allbery at ece.cmu.edu> 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 OpenGL/gl.h presence... no
> checking for OpenGL/gl.h... no
> checking GL/glu.h usability... yes
> checking GL/glu.h presence... yes
> checking for GL/glu.h... yes
> checking OpenGL/glu.h usability... no
> checking OpenGL/glu.h presence... no
> checking for OpenGL/glu.h... no
>
> That looks like to me that the gl.h and glu.h header files were found and
> are usable (in some cases).  I am able to build
>
>
> Yes, you have the header.  But it says nothing about whether -lGLU was
> found, and that's where your problems are.
> Also, that's configure output, not config.log output (which has a
> transcript of the tests, not just the summary).
>
>
### Relevant lines that include "-lGL" or "-lGLU" in config.log ###
configure:4634: checking for GL library
configure:4670: gcc -o conftest -g -O2    conftest.c -lGL -lm   >&5
configure:4676: $? = 0
configure:4696: result: -lGL -lm
configure:4773: checking for GLU library
configure:4809: gcc -o conftest -g -O2    conftest.c -lglu32 -lGL -lm   >&5
/usr/bin/ld: cannot find -lglu32
collect2: ld returned 1 exit status
configure:4815: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Haskell OpenGL package"
| #define PACKAGE_TARNAME "OpenGL"
| #define PACKAGE_VERSION "2.2.1"
| #define PACKAGE_STRING "Haskell OpenGL package 2.2.1"
| #define PACKAGE_BUGREPORT "sven.panne at aedion.de"
| /* end confdefs.h.  */
| #include <GL/glu.h>
| int
| main ()
| {
| gluNewQuadric()
|   ;
|   return 0;
| }
configure:4809: gcc -o conftest -g -O2    conftest.c -lGLU -lGL -lm   >&5
configure:4815: $? = 0
configure:4835: result: -lGLU -lGL -lm
...
fp_cv_check_GLU_lib='-lGLU -lGL -lm '
fp_cv_check_GL_lib='-lGL -lm '
...
GLU_LIBS=' -lGLU -lGL -lm '
...
GL_LIBS=' -lGL -lm '
...
#define GLU_LIBS "-lGLU" ,"-lGL" ,"-lm"
########################################

It seems like the OpenGL and GLUT libraries are found (after -lglu32 fails,
I am using Debian Linux).  I am not sure what to try now.

Thank you for the help.  :)
__
Donnie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080920/21a3f945/attachment.htm


More information about the Haskell-Cafe mailing list