EnglishFrenchSpanish

OnWorks favicon

root-config - Online in the Cloud

Run root-config in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command root-config that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


root-config - ROOT utility for your Makefiles

SYNOPSIS


root-config [options]

DESCRIPTION


Put lines like

CFLAGS = $(shell root-config --cflags)
LIBS = $(shell root-config --libs)
GLIBS = $(shell root-config --glibs)

%Cint.cxx:Include.h LinkDef.h
rootcint -f $@ -c $^

in you Makefile.

You may also find the automake(1), autoconf(1), and libtool(1) macro file
/usr/share/aclocal/root.m4 useful. If that macro file isn't installed where Iaclocal will
find it, copy the contents to your local acinclude.m4 file. In the directories you use
ROOT libraries, have in your Makefile.am file:

lib_LTLIBRARIES = libFoo.la
pkginclude_HEADERS = Foo.h
noinst_HEADERS = FooCint.h
libFoo_la_SOURCES = Foo.cxx FooCint.cxx
libFoo_la_LDFLAGS = -version-info 1:0 -R @ROOTLIBDIR@
libFoo_la_LDADD = -lCore -lCint @ROOTAUXLIBS@

BUILT_SOURCES = FooCint.cxx FooCint.h

AM_CPPFLAGS = -I@ROOTINCDIR@
AM_LDFLAGS = -L@ROOTLIBDIR@
CLEANFILES = *Cint.cxx *Cint.h *~ core

%Cint.cxx %Cint.h:Include.h LinkDef.h
@ROOTCINT@ ‐f $*Cint.cxx ‐c $(INCLUDES) $(AM_CPPFLAGS) $^

where you should substitute Foo with whatever, and list the appropriate source files in
the _SOURCES variable. In you configure.in file, put:

AC_PROG_CC
AC_PROG_CXX
ROOT_PATH
AM_PROG_LIBTOOL

along with any other macros you may need.

Note that the ROOT_PATH macro takes three optional arguments: the minimal ROOT version to
use, action if ROOT is found, and action if ROOT isn't found. Some examples are

ROOT_PATH(3.03/05, , AC_MSG_ERROR(Your ROOT version is too old))
ROOT_PATH(, AC_DEFUN(HAVE_ROOT))

For example, if you want to compile some part of your source tree conditionally on wether
ROOT is present or not, you can put in your configure.in file

ROOT_PATH(,
[
AC_DEFUN(HAVE_ROOT)
have_root=yes
])
AM_CONDITIONAL(GOT_ROOT, test "x$have_root" = "xyes")

And then in some Makefile.am

EXTRA_SOURCES = root_depenent_source.cc
if GOT_ROOT
LIBFOOXTRA = root_depenent_source.cc
else
LIBFOOXTRA =
endif

lib_LTLIBRARIES = libFoo.la
libFoo_la_SOURCES = Foo.cc $(LIBFOOXTRA)

The full list of substitution variables are:

ROOTCONF
full path to root-config

ROOTEXEC
full path to root

ROOTCINT
full path to rootcint

ROOTLIBDIR
Where the ROOT libraries are

ROOTINCDIR
Where the ROOT headers are

ROOTCFLAGS
Extra compiler flags

ROOTLIBS
ROOT basic libraries

ROOTGLIBS
ROOT basic + GUI libraries

ROOTAUXLIBS
Auxilary libraries and linker flags for ROOT

ROOTAUXCFLAGS
Auxilary compiler flags

ROOTRPATH
Same as ROOTLIBDIR

OPTIONS


--help Gives a short list of options available, and exit

--version
Report the version number of installed ROOT, and exit.

--prefix=<prefix>
If no arguments is given, reports where ROOT is installed. With an argument of
=<prefix>, set the base of the subsequent options to <prefix>. If \--exec-prefix is
passedwith an argument, that argument overrides the argument given to \--prefix for
the library path.

--exec-prefix=<prefix>
If no argument is given, report where the libraries are installed. If an argument
is given, use that as the installation base directory for the libraries. This
option does not affect the include path.

--libdir
Print the directory where the ROOT libraries are installed.

--incdir
Print the directory where the ROOT headers are installed.

--libs Output a line suitable for linking a program agains the ROOT libraries. No graphics
libraries are output.

--glibs
As above, but also output for the graphics libraries.

--cflags
Output a line suitable for compiling a source file againd the ROOT header (class
declararion) files.

--new Put the libNew.so library in the library lists. This option must be given before
options --libs and --glibs.

--nonew
Compatiblity option. Does nothing.

--auxlibs
Print auxiliary libraries and/or system linker flags.

--noauxlibs
Do not print auxiliary libraries and/or system linker flags in the output of --libs
and --glibs. --auxcflags Print auxiliary compiler flags.

--noauxcflags
Do not print auxiliary compiler flags in the output of --cflags.

--noldflags
Do not print library path link option in output of --libs and --glibs.

Use root-config online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 2
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • 3
    Apache OpenOffice Extensions
    Apache OpenOffice Extensions
    The official catalog of Apache
    OpenOffice extensions. You'll find
    extensions ranging from dictionaries to
    tools to import PDF files and to connect
    with ext...
    Download Apache OpenOffice Extensions
  • 4
    MantisBT
    MantisBT
    Mantis is an easily deployable, web
    based bugtracker to aid product bug
    tracking. It requires PHP, MySQL and a
    web server. Checkout our demo and hosted
    offerin...
    Download MantisBT
  • 5
    LAN Messenger
    LAN Messenger
    LAN Messenger is a p2p chat application
    for intranet communication and does not
    require a server. A variety of handy
    features are supported including
    notificat...
    Download LAN Messenger
  • 6
    DrJava
    DrJava
    DrJava is a lightweight programming
    environment for Java designed to foster
    test-driven software development. It
    includes an intelligent program editor,
    an int...
    Download DrJava
  • More »

Linux commands

  • 1
    abiviewe
    abiviewe
    abiview - Display the trace in an ABI
    sequencer file ...
    Run abiviewe
  • 2
    abiword
    abiword
    abiword � flexible cross-platform word
    processor ...
    Run abiword
  • 3
    create_icons
    create_icons
    ctn_manpage - Generic CTN manual page
    DESCRIPTION: This is a generic manual
    package for a CTN program. All CTN
    programs will give their brief usage
    synopsis wh...
    Run create_icons
  • 4
    create_icons.94
    create_icons.94
    ctn_manpage - Generic CTN manual page
    DESCRIPTION: This is a generic manual
    package for a CTN program. All CTN
    programs will give their brief usage
    synopsis wh...
    Run create_icons.94
  • 5
    g.removegrass
    g.removegrass
    g.remove - Removes data base element
    files from the user�s current mapset
    using the search pattern. KEYWORDS:
    general, map management, remove ...
    Run g.removegrass
  • 6
    g.renamegrass
    g.renamegrass
    g.rename - Renames data base element
    files in the user�s current mapset.
    KEYWORDS: general, map management,
    rename ...
    Run g.renamegrass
  • More »

Ad