Trunk version of root not compiling on Mac os X 10.6

Dear all,

I am having a problem compiling the head version of root.

*** Building libAfterImage ... make[1]: *** No rule to make target `libjpeg/jdphuff.o', needed by `libAfterImage.a'. Stop. make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2

When root was fine with version 5.27 when built from source.

my machine is:

Darwin BrynMBP.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386

does any one have any ideas?

Cheers,
Bryn

Hi,

does “make distclean-asimage; make” help?

Cheers, Axel.

Hi Axel,

That works perfectly.

Thank you.

Bryn

Rather than make a new post and cluttering the board i will post this here.

After installing root from source with the options:

[bryn@BrynMBP:/opt/root]$ root-config --config --prefix=/opt/local --with-python-incdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 --with-python-libdir=/opt/local/lib --with-gsl-incdir=/opt/local/include/gsl --with-gsl-libdir=/opt/local/lib --enable-mathmore --enable-python --enable-soversion --enable-genvector --enable-roofit

and python at:

[bryn@BrynMBP:/opt/root]$ which python /opt/local/bin/python

I can no longer use PyROOT i get the message:

[code][bryn@BrynMBP:/opt/root]$ python
Python 2.6.5 (r265:79063, Jun 21 2010, 10:39:04)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named ROOT

[/code]

However this set up worked perfectly with Root 5.27.

Any suggestions?

Cheers,
Bryn

Bryn,

did you add the location of ROOT.py (typically $ROOTSYS/lib) to the PYTHONPATH envar?

Cheers,
Wim

Hi Wim,

Turns out that I made a mistake in my config:
–with-python-incdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
should read:
–with-python-incdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/

then everything works fine.

Cheers,
Bryn