From Olaf Flebbe, "build out-of-the box on MacOSX. The default windowing system is carbon and it needs the AGL OpenGL Windowing binding framework, which is missing. osgViewer does not link therefore. Cocoa does not use AGL.

The fix adds the AGL Framework to the Carbon link line for osgViewer"
This commit is contained in:
Robert Osfield 2011-05-24 13:05:44 +00:00
parent 245e023164
commit 51a9e63c55

View File

@ -135,6 +135,7 @@ ELSE()
)
SET(LIB_EXTRA_LIBS ${COCOA_LIBRARY} ${LIB_EXTRA_LIBS})
SET(LIB_EXTRA_LIBS ${LIB_EXTRA_LIBS} "-framework AGL")
ELSEIF(${OSG_WINDOWING_SYSTEM} STREQUAL "IOS")