GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » External Packages » Install error external packages "apr 13" and Kubuntu 14.04
Install error external packages "apr 13" and Kubuntu 14.04 [message #16380] Sun, 20 April 2014 18:41 Go to next message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *physik.uni-giessen.de
Hello,

I have just tried to compile the external packages "apr 13" on a fresh install of Kubuntu 14.04 64 bit. apr 13 is the recommended version for the PandaRoot trunk.

It seems that there is a problem with the compilation of root. I actually found my problem described here:
https://sft.its.cern.ch/jira/browse/ROOT-5817

Quote:

Olivier Couet added a comment - 10/Dec/13 11:13 AM

We do support locally installed freetype (to use the ROOT freetype one has to do the configure with the option --enable-buildin-freetype). Now the version of freetype in ROOT is 2.3.12 the new one is 2.5.1. I managed to reproduce the problem replacing 2.3.12 by 2.5.1 in the local version. It seems that the problem comes for the fact that 2.5.1 puts its include file a level higher than 2.3.12. I guess we have to support both.


However, I don't know how to fix the problem myself.

Here is my error output:
Quote:

Enabled support for asimage, astiff, builtin_afterimage, builtin_ftgl, builtin_glew, builtin_pcre, builtin_lzma, explicitlink, gdml, genvector, mathmore, memstat, minuit2, monalisa, opengl, pythia6, pythia8, roofit, shadowpw, shared, soversion, tmva, x11, xft.

To build ROOT type:

make
make install

bin/rmkdepend -R -fcore/base/src/TROOT.d -Y -w 1000 -- -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -D__cplusplus -- /home/fairroot/apr13/tools/root/core/base/src/TROOT.cxx
g++ -O2 -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -o core/base/src/TROOT.o -c /home/fairroot/apr13/tools/root/core/base/src/TROOT.cxx
*** Building libAfterImage ...
make[1]: Entering directory `/home/fairroot/apr13/tools/root/graf2d/asimage/src/libAfterImage'
gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -I/usr/include/freetype2 -c asfont.c -o asfont.o
gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -I/usr/include/freetype2 -c transform.c -o transform.o
gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -I/usr/include/freetype2 -c ungif.c -o ungif.o
gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -I/usr/include/freetype2 -c xcf.c -o xcf.o
gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -I/usr/include/freetype2 -c ximage.c -o ximage.o
gcc -m64 -O3 -DNO_DEBUG_OUTPUT -fPIC -I/usr/include/freetype2 -c xpm.c -o xpm.o
asfont.c:67:33: fatal error: freetype/freetype.h: No such file or directory
# include <freetype/freetype.h>
^
compilation terminated.

...

Lots of output in between...

...

,ake[1]: Leaving directory `/home/fairroot/apr13/tools/root/graf2d/asimage/src/libAfterImage'
make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2
make: *** Waiting for unfinished jobs....
*** Building libAfterImage ...
make[1]: Entering directory `/home/fairroot/apr13/tools/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/fairroot/apr13/tools/root/graf2d/asimage/src/libAfterImage'
make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2
**** Checking libraries in /home/fairroot/apr13build/lib ****
*** ERROR: root could not be created.
*** End installation of external packages with Errors***


Thank you for your help!
Martin

Re: Install error external packages "apr 13" and Kubuntu 14.04 [message #16396 is a reply to message #16380] Tue, 22 April 2014 11:19 Go to previous messageGo to next message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *physik.uni-giessen.de
Hello all,

last night I had an idea how to work around the problem I encountered with the compilation of the external packages apr13 with Kubuntu 14.04 and this morning I tried it. The workaround seems to have worked.
In case anybody else would like to upgrade to *buntu 14.04 here is what you can do in order to compile the external packages apr13:

cd /usr/include/freetype2
sudo ln -s . freetype


Now root should be able to find the freetype.h header.

The rest of the compilation worked without any problems.

I believe that alternatively, one could also change the scripts
apr13/tools/rootconfig.sh
and
apr13/tools/root/rootconfig.sh
(I'm not sure which one is being used, both scripts are identical, so I would just change both)

and add
--enable-builtin-freetype

to the lines
   ./configure $arch  --enable-soversion   $XROOTD  $ROOFIT \
                    --enable-minuit2  --enable-gdml --enable-xml \
		    --enable-builtin-ftgl  --enable-builtin-glew \
		    --with-pythia6-libdir=$pythia6_libdir \
		    --with-pythia8-libdir=$pythia8_libdir \
		    --with-pythia8-incdir=$pythia8_incdir \
		    --enable-mysql --enable-pgsql\
                    --disable-globus \
                    --disable-reflex \
                    --disable-cintex \
 		    --with-monalisa-libdir=$monalisa_dir/lib \
		    --with-monalisa-incdir=$monalisa_dir/include \
                    --with-gsl-incdir=$gsl_dir/include \
                    --with-gsl-libdir=$gsl_dir/lib \
                    --with-f77=$FC  $prefix_string \
                    $etc_string $debugstring 


However, I would recommend the first workaround. I did not try the second option.

Kind regards,
Martin

[Updated on: Tue, 22 April 2014 11:20]

Report message to a moderator

Re: Install error external packages "apr 13" and Kubuntu 14.04 [message #16481 is a reply to message #16396] Wed, 30 April 2014 13:38 Go to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Martin,

there is a new patch release apr13p1 available which fixes the issue. In this patch the "--enable-builtin-freetype" option is used when building root. This is a way to fix the issue for everybody, since for the other solution one needs root privileges.

Ciao

Florian
Previous Topic: external packages dec13 - mac os x maverick
Next Topic: Problem with externals jul14 on OS 10.8
Goto Forum:
  


Current Time: Wed Oct 09 00:29:42 CEST 2024

Total time taken to generate the page: 0.00740 seconds