On 5/01/11 23:16 , Nikos Yiotis wrote: > Hi Ulrich, > > strange.. I tweaked the CmakeLists.txt a bit: among others I add > BUILD_OSG_EXAMPLES=ON and I go with > COCOA_LIBRARY /System/Library/Frameworks/Cocoa.framework
I assume you mean CMakeCache.txt rather than CMakeLists.txt? Did you set OSG_WINDOWING_SYSTEM:STRING=Cocoa? > example_osgviewerQT does not built > I get error: 'osgViewer::GraphicsWindowCarbon' has not been declared > from typedef osgViewer::GraphicsWindowCarbon::WindowData WindowData; > and similar ones. Should I kill example_osgviewerQT (I hope there is an > example_osgviewerQT for Cocoa) and uncomment FIND_LIBRARY(CARBON_LIBRARY > Carbon) in l.146 > of CmakeLists? No, you shouldn't need to make any changes in any CMakeLists.txt, only in the cmake UI or CMakeCache.txt directly. The error sounds like OSG_WINDOWING_SYSTEM is not set properly and it's trying to use the wrong windowing system implementation. On 6/01/11 18:54 , Nikos Yiotis wrote: > OK, now the only catch is to disable example_osgviewerQT.. How? > It does not appear in the CMakeLists I don't build the Qt osgviewer so I can't comment on that, sorry. If you absolutely have to disable it, it's added in examples/CMakeLists.txt but again, I'd assume it's okay and it certainly doesn't have a direct dependecy on Cocoa, so it should build fine presuming that the Cocoa support is properly built. > More importantly, it cannot detect wxWidget, hence I get undefined symbols > from > linker. For detecting wxWidgets my config in cmake gui is > > wxWidgets_CONFIG_EXECUTABLE /usr/lib/wx/config/mac-unicode-debug-2.8 > wxWidgets_wxrc_EXECUTABLE /usr/bin/wxrc-2.8 Yes, as far as I can tell OS X does not ship a 64-bit version of wxWidgets. I had to disable it by clearing those two entries. Cheers, /ulrich _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org