[Bf-committers] OS X update to XCode 4 breaks compiling

Campbell Barton ideasman42 at gmail.com
Sun Mar 20 01:51:52 CET 2011

Is it more a case of clang not building blender then Xcode4 specifically?
If so this is probably no different to building clang on Linux which
I've been doing for a while.

>From my tests clang (r127942 from yesterday, and previous builds) it
fails on 2 external libs.
- elbeem (fluids)
- eigen2 (math lib)

To build with clang with cmake it means turning off: WITH_MOD_FLUID &

Getting fluid working is simple, but the patch is ugly, someone with
C++ knowledge could better fix it or report a bug to clang.

patch: http://www.graphicall.org/ftp/ideasman42/clang_elbeem_hack.diff

I've tried Eigen2 a few times and its not so easy, its templates confuse clang.
compiler output:

If these are compiler bugs we could also just wait until clang
addresses them before trying to support it.
Until then we could detect clang and disable unsupported features,
just not use clang for official builds.

- Campbell

On Sat, Mar 19, 2011 at 11:14 PM, Dustin Martin <dustin at 54.org> wrote:
> Hey there,
> Its true that apple is moving towards Xcode4 but at least for the time being you can still get Xcode3.  Its just you have to look for it on the Xcode4 page.  At least when I logged in I saw the link on the right side of the page.  However its safe to assume Apple has no intentions of supporting Xcode3 from here on out.  So you probably still have another year or so before Apple drops support for it all together.
> I can't imagine it being too hard so I wouldn't mind taking a crack at making it work.
> - Dustin
> On Mar 19, 2011, at 3:47 PM, Benjamin Tolputt wrote:
>> On 19/03/2011 11:36 PM, Damien Plisson wrote:
>>> BTW, why rushing to XCode 4?
>>> I mean Blender is not a native Cocoa application with heavy Interface Builder use, and other fancy stuff that'll take advantage of the new XCode 4 ?
>> It is not a matter of "rushing" but a matter of what Apple is "pushing".
>> As an iPhone/iPad developer, I need to use what Apple is pushing,
>> whether I like it or not, as one cannot compile for their latest iOS SDK
>> without XCode4. Other applications compile with relatively little
>> trouble from their CMake output, however SDNA related applications have
>> had the odd quirk - so there is something potentially wrong there in
>> limited circumstances (OpenAL related from what I can tell).
>> In any case, obtaining XCode 3 is not really an option for NEW
>> developers. The official download from Apple for XCode
>> (http://developer.apple/com/xcode/) is now XCode 4. They'll download the
>> tools they are told are necessary and still be unable to compile
>> Blender. Whether we like Apple's new IDE or not (and I personally
>> don't), it is what Apple developers are getting now and/or will NEED to
>> get in the near future.
>> --
>> Regards,
>> Benjamin Tolputt
>> Analyst Programmer
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

More information about the Bf-committers mailing list