Making ROOT on Ubuntu 14.04

Hi,

I’m trying to complile root on an ubuntu 14.04. I followed the instructions on this page

root.cern.ch/drupal/content/inst … oot-source

but get an error when I try to make

My steps:

git clone root.cern.ch/git/root.git
cd root
git tag -l
git checkout -b v5-34-18 v5-34-18
./configure
make

lori@lori-Veriton-M4620G:~/root$ make
*** Building libAfterImage …
make[1]: Entering directory `/home/lori/root/graf2d/asimage/src/libAfterImage’
gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -I/usr/include/freetype2 -c asfont.c -o asfont.o
asfont.c:67:33: fatal error: freetype/freetype.h: No such file or directory

include <freetype/freetype.h>

                              ^

compilation terminated.
make[1]: *** [asfont.o] Error 1
make[1]: Leaving directory `/home/lori/root/graf2d/asimage/src/libAfterImage’
make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2
lori@lori-Veriton-M4620G:~/root$

I’ve tried make and sudo make install just in case, but both methods show this message. Is there something wrong with my environment here?

Cheers,
Lori

Hi Lori,

did you install the freetype development pakage?
You can check this on ubuntu with dpkg --get-selections | grep freetype

Cheers,
Danilo

Here’s what I got:

lori@lori-Veriton-M4620G:~$ dpkg --get-selections | grep freetype libfreetype6:amd64 install libfreetype6-dev install lori@lori-Veriton-M4620G:~$

So I have 2 freetype libraries. Am I missing a library?

Cheers,
Lori

Why don’t you simply type “freetype” in the “Search…” field of this forum and then press the “Search” button?

facepalm Right.

Found a similar thread and made the freetype adjustment in graf2d/asimage/src/libAfterImage/asfont.c and now it compiles.

“Unable to compile ROOT because of freetype2 error”

Cheers,
Lori

Hi,

This is fixed in the current tip of the v5-34-00-patches branch (and ROOT 6). We will release a new v5.34 patch release soon.

Cheers, Axel