2012-09-05 13:37:39 +04:00
_ _ _ _ _ _ _ _ _ _ _ _
_ (_ )(_)(_) _ (_ ) (_)(_)(_) (_) _ (_ ) _ (_ )(_)(_) _
(_) (_) (_) (_) (_)(_)_ (_) (_) (_)
(_) (_) (_) (_) (_)_ (_) (_) _ _ _
(_) (_) (_) (_) (_)_ (_) (_) (_)(_)(_)
(_) _ (_ ) (_) (_) (_)(_) (_) (_)
(_) _ _ _ (_ ) (_) _ _ _ (_ ) _ (_ ) (_) (_) _ _ _ (_ )
(_)(_)(_) (_)(_)(_) (_)(_)(_) (_) (_) (_)(_)(_)(_)
--------------------------------------------------------------------------------
2014-02-21 13:30:12 +04:00
1. INSTALLATION
2012-09-05 13:37:39 +04:00
2014-02-21 13:30:12 +04:00
--------------------------------------------------------------------------------
1.1. Binaries
We offer binary snapshots for download at https://ecsft.cern.ch/dist/cling
--------------------------------------------------------------------------------
1.2 Source
2012-09-05 13:37:39 +04:00
2014-02-21 13:30:12 +04:00
CLING source depends on the LLVM[1] and CLANG[2] headers and libraries.
You will also need CMake[3] >= 2.6.1 or GNU Make to build all of those
packages and subversion[4] and git[5] to get the source code.
2012-09-05 13:37:39 +04:00
[1] http://llvm.org
[2] http://clang.llvm.org
[3] http://cmake.org
2014-02-21 13:30:12 +04:00
[4] http://subversion.tigris.org
[5] http://git-scm.com
2012-09-05 13:37:39 +04:00
2014-02-21 13:30:12 +04:00
1.2.1 Building
2012-09-05 13:37:39 +04:00
2014-02-21 13:30:12 +04:00
Building LLVM and CLANG you must:
2012-09-05 13:37:39 +04:00
* Check out the sources:
2014-02-21 13:30:12 +04:00
git clone http://root.cern.ch/git/llvm.git src
cd src
git checkout cling-patches
cd tools
git clone http://root.cern.ch/git/cling.git
git clone http://root.cern.ch/git/clang.git
cd clang
git checkout cling-patches
2012-09-05 13:37:39 +04:00
* Configure, build and install them, either using CMake:
cd ..
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/some/install/dir \
-DLLVM_TARGETS_TO_BUILD=CBackend\;CppBackend\;X86 \
-DCMAKE_BUILD_TYPE=Debug \
2014-02-21 13:30:12 +04:00
../src
2012-09-05 13:37:39 +04:00
make
make install
or GNU Make (see ../src/configure --help for all options):
cd ..
mkdir build
cd build
2014-02-21 13:30:12 +04:00
../src/configure --prefix=/some/install/dir
2012-09-05 13:37:39 +04:00
make
make install
2014-02-21 13:30:12 +04:00
--------------------------------------------------------------------------------
2012-09-05 13:37:39 +04:00
2014-02-21 13:30:12 +04:00
2. USAGE
2012-09-05 13:37:39 +04:00
2014-02-21 13:30:12 +04:00
To get started run: /some/install/dir/bin/cling --help
2014-02-21 13:35:50 +04:00
or type
/some/install/dir/bin/cling
[cling]$ .help
2014-02-21 13:30:12 +04:00
--------------------------------------------------------------------------------
3. Developers' corner:
We have doxygen documentation of cling's code at:
http://cling.web.cern.ch/cling/doxygen/
--------------------------------------------------------------------------------