[Bf-committers] Help on linking added lib on XCode

Rafael Campos rafaelcdn at gmail.com
Sat Jul 20 18:45:50 CEST 2013

Hi all,

As part of SoC, I had to add the intel tbb library to Blender (tbb files
not committed), and it compiled and ran fine on Windows. Now, I'm trying to
setup the same project on Mac, and I keep getting these linker errors.
Trunk builds ok.

I've added a tbb folder, with include and lib dirs, to cmake's LIBDIR,
which is lib/darwin-9.x.universal/ here.

On XCode, in Library Search Paths, I currently have

and in Other Linker Flags, among many listed, I have

On Windows, the libraries were tbb.dll and tbb_debug.dll, so I kept these
names on CmakeLists.txt, but the actual files now are libtbb.dylib and
libtbb_debug.dylib - not sure if the preceding lib makes a difference here.
In all cases, not statically linked, but it did work on Windows. :(

The errors I'm getting are below - there are 20, but same error messages.
cycles_kernel_osl Group
Semantic Issue Group
Cannot use typeid with -fno-rtti

No member named 'punned_cast' in namespace 'tbb::internal'

Use of undeclared identifier '__TBB_ReverseBits'

And I suspect I might be missing something obvious. Any ideas?

Thanks a lot,

More information about the Bf-committers mailing list