Thanks Olaf, changes look good, now merged and submitted to svn/trunk. Cheers, Robert.
On Thu, May 19, 2011 at 9:04 PM, Olaf Flebbe <[email protected]> wrote: > Hi, > > second try: > > The current default build of OSG trunk on MacOSX fails because of unresolved > externals in osgViewer. > > The AGL Framework/Library is needed to resolve these symbols. > > The fix is straight forward: > > Detect the AGL library and use the library in osgViewer. > > See diff relative to current OSG trunk. > > > What did the MacOSX Build break? > > Commit 11816 (removing GLU) did brake the Build. Specifically the line > OPTION(OSG_GLU_AVAILABLE "Set to OFF to disable use of OpenGL GLU library." > ${OPENGL_GLU_FOUND}) > detected the AGL library > > What does GLU have to do with AGL? > > Nothing, but cmake does have a bug in the detection of OpenGL (i.e. > Modules/FindOpenGL.cmake). There you can find the line > FIND_LIBRARY(OPENGL_glu_LIBRARY AGL DOC "AGL lib for OSX"). This is plain > wrong, but did the trick for OSG in the past to add the AGL library on the > link line for OSG as a whole. Since we do not use the external GLU library > any more, the AGL is missing on the link line. > > Greetings > Olaf > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
