Then I go into python and try to import ROOT, does not work
Python 3.3.3 (default, Nov 23 2013, 13:21:35)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
from ROOT import *
Traceback (most recent call last):
File “”, line 1, in
File “/Users/paula/Documents/newroot/root/lib/ROOT.py”, line 103, in
import libPyROOT as _root
ImportError: dynamic module does not define init function (PyInit_libPyROOT)
I would be very grateful if someone has simple instructions for how I can solve this
P.S. Things now got worse, I tried some variations on the above theme and get a compilation error as shown here. I’m totally stuck…
In file included from /Users/paula/Documents/newroot/root/graf2d/graf/src/TTF.cxx:23:
include/TTF.h:51:4: error: unknown type name ‘FT_Glyph’; did you mean ‘FTGlyph’?
FT_Glyph fImage; // glyph image
^~~~~~~~
FTGlyph
include/ftglyph.h:25:19: note: ‘FTGlyph’ declared here
class FTGL_EXPORT FTGlyph
^
In file included from /Users/paula/Documents/newroot/root/graf2d/graf/src/TTF.cxx:23:
include/TTF.h:51:15: error: field type ‘FTGlyph’ is an abstract class
FT_Glyph fImage; // glyph image
^
include/ftglyph.h:49:32: note: unimplemented pure virtual method ‘Render’ in 'FTGlyph’
virtual const FTPoint& Render( const FTPoint& pen) = 0;
^
2 errors generated.
make: *** [graf2d/graf/src/TTF.o] Error 1
This problem appeared because the latest freetype (the one macport installs) has changed the directory tree for its include files, which introduced a clash with a FTGL include files on Mac. It was enough to not expose the FTGL include files in $ROOTSY/include to fix that. Anyway FTGL include files should not be exposed in $ROOTSYS/include, because they are for internal use only. See: