[osg-users] [build] How do I add libraries to all linker commands?

Philip Lowman philip at yhbt.com
Sat Mar 28 08:49:33 PDT 2009

On Sat, Mar 28, 2009 at 11:24 AM, Lucasw <wsacul at gmail.com> wrote:

> This is compiling OSG 2.8.0 and examples with the cmake generated files
> under cygwin, using standard gnu tools.  I think there's a master file
> somewhere with LIBS or LDFLAGS or equivalent that gets passed to all the
> makefiles to which I need to add -lGL and -lGLU (otherwise there are lots of
> 'undefined reference to `_glAlphaFunc'' and similar errors).  I did this
> manually for the main osg library, cutting and pasting the output of make
> VERBOSE=1 and adding those libs, but now there are dozens of examples and
> the manual method is too slow.

>From your build tree type "make edit_cache", this is the same as running
"ccmake /path/to/source/tree".

Check the contents of the OPENGL_gl_LIBRARY and OPENGL_glu_LIBRARY
variables.  They should be pointed to the libraries you want to use for GL
and GLU.  They are under the Advanced section of the cache.

Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090328/d063cca3/attachment-0003.htm>

More information about the osg-users mailing list