Mike Krus wrote:
> Hi 
> On 16 Jul 2012, at 22:00, Manuel Fern??ndez wrote:
> 
> > Keywords @required and @optional are part of Objective C 2.0. So you should 
> > try with at least gcc 4.6. Hope it helps.
> > 
>  
> gcc 4.7.1 from macports does not build OSG (from trunk) either:  
> 
> In file included from 
> /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:120:0,
> from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
> from 
> /Volumes/MVEData/Users/Mike/Developer/OSG/src/osgViewer/GraphicsWindowCocoa.mm:18:
> /System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:75:24: 
> error: expected unqualified-id before '^' token
> /System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:75:24: 
> error: expected ')' before '^' token
> 
> 
> Does not support blocks it seems (that's on Lion).
> 
> 
> 
> 
> Mike
> 
> 
> ----
> Mike Krus (PhD) - Principal Software Engineer
> 
> Midland Valley Exploration
> 144 West George Street
> Glasgow G2 2HG, UK
> Tel: +44 141 332 2681
> Fax: +44 141 332 6792
> 
>  ------------------
> Post generated by Mail2Forum


No, GCC mainline doesn't support blocks. So the only way to build OSG on Lion 
is using Apple LLVM-GCC or Clang. Maybe, you could use another macos sdk (i.e.: 
1.6), but i suspect that blocks have been around for a long time in the API.

------------------------
See you, Manuel.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48899#48899





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to