PDA

View Full Version : IDing OpenGL libs for install



allenm
03-24-2007, 01:27 PM
I posted this over in the "OpenGL on Linux"forum but that doesn't seem to get much traffic so I'm trying the beginner's forum.

I'm trying to get a computer vision system that uses OpenGL working and I'm stuck at the requirement for OpenGL libraries. I can't figure out what libraries I need for the compile and the documentation doesn't list the libraries. I'm running Ubuntu 6.10 and the vision system's name is Hornetseye.

When I run the configure I get the following error:

checking for OpenGL... yes
checking for GL... no
checking for GLU... no
checking for glut... no
configure: error: Check for OpenGL (GL,GLU,glut) failed.

When I took a look at config.log I found the following:

|| test ! -s conftest.err
configure:21973: $? = 0
configure:21976: test -s conftest
configure:21979: $? = 0
configure:21992: result: yes
configure:22013: checking for OpenGL
configure:22070: checking for library containing glAccum
configure:22100: gcc -o conftest -g -O2 conftest.c -lSM -lICE -lX11 -lXext -lXmu -lXt -lXi >&5
/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status
configure:22106: $? = 1
configure: failed program was:
| /* confdefs.h. */

In configure.ac I found the following which I think is what looks for the libraries:

dnl Check for opengl
MDL_HAVE_OPENGL
HAVE_OPENGL="yes"
AC_MSG_CHECKING([for GL])
if test "x$have_GL" != "xyes"; then
AC_MSG_RESULT([no])
HAVE_OPENGL="no"
else
AC_MSG_RESULT([yes])
fi
AC_MSG_CHECKING([for GLU])
if test "x$have_GLU" != "xyes"; then
AC_MSG_RESULT([no])
HAVE_OPENGL="no"
else
AC_MSG_RESULT([yes])
fi
AC_MSG_CHECKING([for glut])
if test "x$have_glut" != "xyes"; then
AC_MSG_RESULT([no])
HAVE_OPENGL="no"
else
AC_MSG_RESULT([yes])
fi
if test "x$HAVE_OPENGL" != "xyes"; then
AC_MSG_ERROR([Check for OpenGL (GL,GLU,glut) failed.])
fi

But, like I wrote above, I'm not sure what to load because I can't puzzle out what the ./confgure wants. I've loaded a bunch of stuff blindly but that doesn't seem like a good idea. Is there some way I can trap the libraries Hornetseye is looking for so I can install them?

Allen