Compiling ROOT v5.34.10 on OSX Mavericks with Xcode 5.0.1 (Partially solved in ROOT v5.34.11)

  1. Open config/Makefile.macosx64 file in the root source folder with any text editor.
  2. add -stdlib=libstdc++ to the variables CXXFLAGS, CFLAGSCINTCXXFLAGSCINTCFLAGS, and LDFLAGS.
  3. If Fortran is compiled and environment variables for it are set, then you should copy LDFLAGS to F77LDFLAGS before you add -stdlib=libstdc++.
  4. That’s it!
  • Finally, when you compile your code using ROOT library, -stdlib=llibstdc++ should be added as an argument to the compiler.
  • Reference
  1. https://github.com/mxcl/homebrew/pull/22259

– Solved on 2013/10/31 in ROOT v5.34.11

– Added on 2013/10/22

  • I’m not sure this happens only to me, but after I updated to Mavericks GM 2 (13A603), the ROOT is not compiled on it. So, I have to find out the way to resolving this.
  1. Open core/base/inc/RConfig.h
  2. Find AvailabilityMacros.h
  3. Add path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include
    in before the filename.

– Added on 2013/11/04

  • Maybe the command below will solve the all problems.

xcode-select –install

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.