[sldev] [VWR] cmake issues with libGL and friends
Bill Hoffman
bill.hoffman at kitware.com
Thu Jul 31 07:44:17 PDT 2008
Robin Cornelius wrote:
> Hi everyone,
>
> I remember this coming up during #opensl chat but i can't recall seeing it here.
>
> Been testing with cmake-2.6.1-RC15 but i still get a link error
> related to libGL and libGLU, the error is coming from the fact that
> ${OPENGL_LIBRARIES} is providing the linker lines -lGL and -lGLU which
> is of cause picking up my system installed libraries in /usr/lib in
> preference to any others. In fact cmake gave a warning to that effect
> that the libraries in ../i686-linux/lib-release and lib_release_client
> may not be found as default system search paths will override.
>
> I'm not sure of a sane way to force cmake to use the linden supplied
> library if the system libraries are present.
>
If you give CMake a full path to the GL and GLU libraries that are not
the system libraries, then it will use those. Looks like the STANDALONE
logic is not quite right for GL. However, if you edit the
CMakeCache.txt or give a -D option and set the following cache variables
to the full path to the libraries in ../i686-linux/lib-release (with
extension):
OPENGL_gl_LIBRARY
OPENGL_glu_LIBRARY
Then it should work.
-Bill
More information about the SLDev
mailing list