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 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:
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.
that’s a lot of output- at first sight an error occurs because the linker cannot find libXmu.so when trying to compile conftest.c.
check if libXmu.so is installed on your system; it is probably in /usr/X11R6/lib/libXmu.so
if the error still occurs because libXmu cannot be found, you may have to change an include path variable in the makefile, or easier: make an alias to gcc like
alias gcc ‘gcc -I/usr/X11R6/lib’
(assuming that the libXmu.so is really in that directory)
Try an ‘apt-get install freeglut’ and an ‘apt-get install freeglut-devel’.
If it can’t find it, then use aptitude and look for them (the GL libraries should be called Mesa).
RigidBody - libXmu.so is in /usr/lib but the alias command didn’t do anything noticeable. Thanks for trying.
jide - I love aptitude. Quicker then synaptic and easier to use then apt-get but if there’s a GL library missing I can’t see it. Aptitude reports that GL, Glu, Glut are all there. Thanks to you as well.
I think there may be a bug in one of the .m4 files. There’s a macro - mdl_have_opengl.m4 - that’s supposed to look up the OpenGL libraries which might be causing the problem. Maybe.