Brew llvm and xcode?

Hi all,

Has anyone managed to use a brew-ed llvm/clang with of and xcode?
I need openMP support.

I manages to link the new llvm in xcode (just hacked an ln -s of the ‘usr’ dir) but then Im missing the libtool and the brew libtool is not the same.
It was a hack so Im not sure if that was my only problem.

A brew gcc with of/xcode would be ok but I think that is not supported at all.


Here are instructions for using OpenMP with Xcode brew’s llvm/clang. I had to get it working for ofxFAISS.

Perfect Ill test!

1 Like

@bakercp Im getting the error below.
for clarity I downloaded the 0.9.8 osx release and Im compuling the allAddonExample with the CC/CXX additions.

/usr/local/Cellar/llvm/4.0.1/include/c++/v1/cstddef:48:7: No member named ‘ptrdiff_t’ in the global namespace; did you mean ‘::ns_creeps::ptrdiff_t’?

/usr/local/Cellar/llvm/4.0.1/include/c++/v1/cstddef:53:7: No member named ‘max_align_t’ in the global namespace; did you mean ‘::ns_creeps::max_align_t’?

Any ideas?

I’m not sure … I have only tested it with the master branch, but I’m not sure that’s the problem.

Are you able to use the compiler outside of xcode to compile a simple openmp program?

yes. something is wrong with the ofxVectorGraphics.

EDIT: I forgot to say that the same problem happens on master too. Im now trying to get it in Linux maybe.