ROOT+Qt4.8.6+Pythia8

Hello.
Can you help me to properly install ROOT+QT+Pythia8 on ubuntu ?

I struggled but I can’t. Please help.

See the relevant sections of this documentation:
Configure/Make
root.cern.ch/drupal/content/inst … oot-source
CMake
root.cern.ch/drupal/content/building-root-cmake

I tried the following things with the ./configure make build option. I didn’t find what I missed :cry:
Pythia8 is installed in /home/navds/pythia_root/pythia8 (–enable-shared option)
I created a root directory in pythia_root dir (I plan root will be installed in)


Then I added the following lines in /etc/bash.bashrc
"
#Pythia and root
export PYTHIA8=/home/navds/pythia_root/pythia8
export PYTHIA8DATA=$PYTHIA8/xmldoc
export ROOTSYS=/home/navds/pythia_root/root
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
"

qmake --version give
"
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu
"

All packages needed are installed
I am in su terminal
The root_v5.34.18.source.tar.gz is in /home/STORE
command:
tar -xzvf root_v5.34.18.source.tar.gz
cd root

navds-Lenovo-G580 root # ./configure --with-pythia8-incdir=$PYTHIA8/include --with-pythia8-libdir=$PYTHIA8/lib --enable-qt
Checking for source directory … /home/navds/STORE/root
Configuring for linuxx8664gcc
Checking for GNU Make version >= 3.80 … ok
Checking for C compiler … gcc
Checking for C++ compiler … g++
Checking for linker (LD) … g++
Checking for F77 compiler … gfortran
Checking for libX11 … /usr/lib/x86_64-linux-gnu
Checking for X11/Xlib.h … /usr/include
Checking for X11/xpm.h … /usr/include
Checking for X11/Xft/Xft.h … /usr/include
Checking for X11/extensions/shape.h … /usr/include
Checking for libXpm … /usr/lib/x86_64-linux-gnu
Checking for libXft … /usr/lib/x86_64-linux-gnu
Checking for libXext … /usr/lib/x86_64-linux-gnu
Checking for freetype-config … /usr/bin/freetype-config
Checking for libfreetype version >= 9.3.0 … ok
Checking whether to build included libfreetype6 … no
Checking for pcre-config … /usr/bin/pcre-config
Checking for libpcre version >= 3.9 … ok
Checking whether to build included libpcre … no
Checking for zlib.h … /usr/include
Checking for libz … /usr/lib/x86_64-linux-gnu
Checking whether to build included zlib … no
Checking for lzma.h … no
Checking for liblzma … no
Checking whether to build included lzma … yes
Checking for GL/gl.h, or gl.h … /usr/include
Checking for libGL, or libMesaGL … /usr/lib/x86_64-linux-gnu
Checking for libGLU, or libMesaGLU … /usr/lib/x86_64-linux-gnu
Checking for GL/glew.h … /usr/include
Checking for libGLEW … /usr/lib/x86_64-linux-gnu
Checking whether to build included GLEW … no
Checking for pkg-config … /usr/bin/pkg-config
Checking for libftgl … ok
Checking for ftgl version > 2.1.2 … ok
Checking whether to build included libftgl … no
Checking for mysql_config … /usr/bin/mysql_config
Checking for libmysqlclient version >= 3.23.* … ok
Checking for mysql.h … /usr/include/mysql
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … no
Checking for sqlite3.h … no
Checking for libsqlite3 … no
Checking for sql.h … no
Checking for libsqlod … no
Checking for sqlext.h … no
Checking for libiodbc, libodbc, or odbc32 … no
Checking for Qt/qglobal.h … /usr/include/qt4
Checking for 4.3.0 <= Qt version < 5.0.0 … 4.8.6
Checking for libQtCore, QtCore, QtCore4, or QtCore4 … /usr/lib/x86_64-linux-gnu
Checking for libQtGui, QtGui, QtGui4, or QtGui4 … /usr/lib/x86_64-linux-gnu
Checking for libQt3Support, Qt3Support, Qt3Support4, or Qt3Support4 … /usr/lib/x86_64-linux-gnu
Checking for moc or moc.exe … /usr/bin/moc-qt4
Checking for rfio_api.h … no
Checking for librfio, libdpm, libcastorrfio, libshift, shiftmd, or shift … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libcastorrfio, libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for gfal_srm_ifce_types.h … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for fftw3.h … /usr/include
Checking for libfftw3, or libfftw3-3 … /usr/lib/x86_64-linux-gnu
Checking for fitsio.h … /usr/include
Checking for libcfitsio, or cfitsio … /usr/lib/x86_64-linux-gnu
Checking for gvc.h … /usr/include/graphviz
Checking for libgvc, or gvc … /usr/lib
Checking for libgraph, graph, libcgraph, or cgraph … /usr/lib
Checking for libcdt, or cdt … /usr/lib
Checking for libpathplan, or pathplan … /usr/lib
Checking for libexpat, or expat … /usr/lib/x86_64-linux-gnu
Checking for libgvplugin_dot_layout, or gvplugin_dot_layout … /usr/lib/graphviz
Checking for libPythia6 … no
Checking for Pythia8/Pythia.h … /home/navds/pythia_root/pythia8/include
Checking for libpythia8 … /home/navds/pythia_root/pythia8/lib
Checking for dcap.h … no
Checking for libdcap … no
Checking for davix.hpp … no
Checking for libdavix … no
Checking for chirp_reli.h … no
Checking for libchirp_client … no
Checking for hdfs.h … no
Checking for jni.h … no
Checking for libhdfs … no
Checking for libjvm … no
Checking for dns_sd.h … /usr/include
Checking for libdns_sd … /usr/lib/x86_64-linux-gnu
Checking for avahi-client/client.h … /usr/include
Checking for avahi-common/strlst.h … /usr/include
Checking for avahi-core/core.h … no
Checking for libavahi-client … /usr/lib/x86_64-linux-gnu
Checking for libavahi-common … /usr/lib/x86_64-linux-gnu
Checking for libavahi-core … no
Checking for libglite-api-wrapper … no
Checking for gapiUI.h … no
Checking for libgapiUI … no
Checking for jpeglib.h … no
Checking for png.h … /usr/include
Checking for tiffio.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libz … /usr/lib/x86_64-linux-gnu
Checking for libpng … /usr/lib/x86_64-linux-gnu
Checking whether to build included libAfterImage … yes
Checking for ldap.h … /usr/include
Checking for libldap … /usr/lib/x86_64-linux-gnu
Checking for liblber … /usr/lib/x86_64-linux-gnu
Checking for Python.h … /usr/include/python2.7
Checking for python2.7, libpython2.7, libpython, python, or Python … /usr/lib/x86_64-linux-gnu
Checking for xml2-config … /usr/bin/xml2-config
Checking for libxml2 version >= 2.4.x … ok
Checking for XrdVersion.hh … no
Checking for libssl … /usr/lib/x86_64-linux-gnu
Checking for libcrypto … /usr/lib/x86_64-linux-gnu
Checking for openssl/bio.h … /usr/include
Checking for openssl/blowfish.h … /usr/include
Checking for openssl/err.h … /usr/include
Checking for openssl/pem.h … /usr/include
Checking for openssl/rand.h … /usr/include
Checking for openssl/rsa.h … /usr/include
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … /usr/include
Checking for krb5.h redirect … /usr/include/krb5/krb5.h
Checking for krb5_c_valid_cksumtype in krb5.h … yes
Checking for valid_cksumtype in krb5.h … no
Checking for libk5crypto … /usr/lib/x86_64-linux-gnu
Checking whether we’re using MIT Kerberos … yes
Checking for krb5_c_valid_cksumtype in /usr/lib/x86_64-linux-gnu/libk5crypto.so … ok
Checking for valid_cksumtype in /usr/lib/x86_64-linux-gnu/libk5crypto.so … ok
Checking for libkrb5 … /usr/lib/x86_64-linux-gnu
Checking for kinit … no
Checking for libcom_err … /usr/lib/x86_64-linux-gnu
Checking for shadow passwords … yes
Checking for gsl/gsl_version.h … /usr/include
Checking for GSL version >= 1.8 … ok
Checking for libgsl, gslML, or gsl … /usr/lib
Checking for libgslcblas, gslcblasML, gslcblas, or cblas … /usr/lib
Checking whether /usr/lib/libgsl.a is compiled with -fPIC … yes
Checking whether /usr/lib/libgslcblas.a is compiled with -fPIC … no
Checking for shared library versions using gsl-config … yes
Checking whether to build libMathMore … yes
Checking whether to build libGenVector … yes
Checking whether to build libCintex … yes
Checking whether to build libReflex … yes
Checking whether to build libRooFit … no
Checking whether to build libMinuit2 … no
Checking whether to build libUnuran … no
Checking whether to build libVc … no
Checking whether to install VDT … yes
Checking whether to build libGdml … no
Checking whether to build libTable … no
Checking whether to build libTMVA … yes
Checking whether to build libMemStat … yes
Checking whether to build afdsmgrd … no
Checking whether to integrate experimental cling … no
Checking what type of dictionaries to build … cint
Checking whether setresuid declared in /usr/include/unistd.h … yes
Creating include … done
Creating bin … done
Creating lib … done
Writing config/Makefile.config … done
Writing config/Makefile.comp … done
Writing include/RConfigure.h … done
Writing include/RConfigOptions.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/daemons/rootd.rc.d … done
Writing etc/daemons/rootd.xinetd … done
Writing etc/daemons/proofd.rc.d … done
Writing etc/daemons/proofd.xinetd … done
Writing main/src/proofserv.sh … done
Writing main/src/roots.sh … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing bin/thisroot.sh … done
Writing bin/thisroot.csh … done
Writing bin/setxrd.sh … done
Writing bin/setxrd.csh … done
Writing bin/genreflex … done
Writing bin/genreflex-rootcint … done
Writing config.status … done

Enabled support for asimage, astiff, builtin_afterimage, builtin_lzma, cintex, explicitlink, fftw3, fitsio, gviz, genvector, krb5, ldap, mathmore, memstat, mysql, opengl, pythia8, python, qt, reflex, shadowpw, shared, ssl, tmva, vdt, x11, xft, xml.

To build ROOT type:

make

navds-Lenovo-G580 root # make
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . .

make[1]: Leaving directory `/home/navds/STORE/root/graf2d/asimage/src/libAfterImage’
make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2
make: *** Waiting for unfinished jobs…
navds-Lenovo-G580 root # make install
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . .
compilation terminated.
make[1]: *** [asfont.o] Error 1
make[1]: Leaving directory `/home/navds/STORE/root/graf2d/asimage/src/libAfterImage’
make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2
navds-Lenovo-G580 root #

try to run root:
The program ‘root’ is currently not installed.
ldconfig: nothing

I checked /home/navds/pythia_root/root : no files


I am tired :angry:
S.O.S

Hi,

unfortunately the error message you post is not informative:

make[1]: Leaving directory `/home/navds/STORE/root/graf2d/asimage/src/libAfterImage'
make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2
make: *** Waiting for unfinished jobs....

does not say anything about the problem which was encountered.

D

oh, sorry:

*** Building libAfterImage ...
make[1]: Entering directory `/home/navds/STORE/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>

Generating dictionary graf2d/qt/src/G__GQt.cxx... core/utils/src/rootcint_tmp -cint -f graf2d/qt/src/G__GQt.cxx -c -DQT_GUI_LIB -DQT_CORE_LIB -DQT_DLL -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/mkspecs/default -I. -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXmlPatterns /home/navds/STORE/root/graf2d/qt/inc/TGQt.h /home/navds/STORE/root/graf2d/qt/inc/TQtTimer.h /home/navds/STORE/root/graf2d/qt/inc/TQtApplication.h /home/navds/STORE/root/graf2d/qt/inc/TQtBrush.h /home/navds/STORE/root/graf2d/qt/inc/TQMimeTypes.h /home/navds/STORE/root/graf2d/qt/inc/TQtClientFilter.h /home/navds/STORE/root/graf2d/qt/inc/TQtClientWidget.h /home/navds/STORE/root/graf2d/qt/inc/TQtWidget.h /home/navds/STORE/root/graf2d/qt/inc/TQtMarker.h /home/navds/STORE/root/graf2d/qt/inc/TQtTimer.h /home/navds/STORE/root/graf2d/qt/inc/TQtRootSlot.h /home/navds/STORE/root/graf2d/qt/inc/TQtPadFont.h /home/navds/STORE/root/graf2d/qt/inc/LinkDef.h make[1]: Leaving directory `/home/navds/STORE/root/graf2d/asimage/src/libAfterImage' make: *** [graf2d/asimage/src/libAfterImage/libAfterImage.a] Error 2

Hi,

you can find many answers about freetype on ubuntu 14 already on this forum.
Just search for freetype/freetype.h in the search bar on the top left of this page.

Cheers,
Danilo

Thanks for your help Danilo. I will look at

:laughing: Finally it seems to be working!
Resolved by adding a link:

Ouf, need to do some tests.

Thanks to RootTalk!

Navalona