cling/www/build.html
2016-07-06 16:14:07 +02:00

125 lines
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/highlight.js/9.2.0/styles/railscasts.min.css">
<script src="http://cdn.jsdelivr.net/highlight.js/9.2.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<head>
<title>Cling Website</title>
<meta name="description" content="Official website of Cling" />
<meta name="keywords" content="cling, interactive compiler interface, interpreter, clang, LLVM" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="robots" content="noindex,nofollow" />
<link rel="stylesheet" type="text/css" href="style/style.css" />
<link rel="stylesheet" type="text/css" href="style/menu.css" />
</head>
<body>
<div id="website">
<div id="header">
<div id="logo">
<div id="logo_text">
<!-- class="logo_colour", allows you to change the colour of the text -->
<h1><a href="index.html"><span class="logo_colour">Cling</span></a></h1>
<h2>Interactive Compiler Interface</h2>
</div>
</div>
<div id="mainmenubar">
<ul id="mainmenu">
<!-- put class="selected" in the li tag for the selected page - to highlight which page you're on -->
<li><a class="tab_link" href="newindex.html">Home</a></li>
<li class="selected"><a class="tab_link" href="build.html">Build</a></li>
<li><a class="tab_link" href="contribute.html">Contribuite</a></li>
<li><a class="tab_link" href="jupyter.html">Jupyter</a></li>
</ul>
</div>
</div>
<div id="breadcrumb"></div>
<div id="content">
<div class="sidebar">
<!-- insert your sidebar items here -->
<h3>Latest News</h3>
<h4>Cling goes public</h4>
<h5>July 25th, 2011</h5>
<p> Cling was officially announced to the Clang community <br /><a href="news/ClingAnnouncement.html">Read more</a></p>
<p></p>
<h4>New website launched</h4>
<h5>July 1st, 2011</h5>
<p> Welcome to the new website of the project. <br /><a href="news/NewWebsiteLaunched.html">Read more</a></p>
<h3>Useful Links</h3>
<ul>
<li><a href="www.cern.ch" target="_blank">CERN</a></li>
</ul>
</div>
<div id="main">
<!-- insert the page content here -->
<h1>Build Instructions</h1>
<p> This page is shows how to download and build the project cling as a standalone C++ interpreter in few steps..</p>
<h3> Build script </h3>
You can download and run this <a href= "https://raw.githubusercontent.com/karies/cling-all-in-one/master/clone.sh" target="_blank">build script</a>.
<h3> Building with CMake </h3>
<ul><b>Prerequisites</b>
<li>See <a href="http://llvm.org/docs/GettingStarted.html#requirements" target="_blank">Getting Started with the LLVM System - Requirements</a>
</li>
<li>
Note also that <a href= "http://www.python.org/download" target = "_blank" >Python</a> is needed for running the test suite.
</li>
<br/>
<b> And extra for Windows</b>
<li><b>cmake</b> - http://www.cmake.org/cmake/resources/software.html</li>
<li><b>Python</b> - http://www.python.org/download/</li>
<li><b>GnuWin32 Tools</b> - http://getgnuwin32.sourceforge.net/</li>
<li><b>Visual Studio</b> - <a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express" target="_blank">VS Express should work as well</a></li>
</ul>
<p>Start by checking out llvm, clang and cling: </p>
<pre><code>
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
</code></pre>
<p>
Now follow the procedure described at the <a href = "http://clang.llvm.org/get_started.html" target = "_blank">clang web page</a> for ./configure --enable-cxx11; make- or CMake-based build instructions.
Don't forget to make install. You will get a binary called cling: that's your interactive C++ interpreter!
</p>
<p> Then use CMake to configure & build cling: </p>
<pre><code>
mkdir obj
cd obj
cmake -DCMAKE_INSTALL_PREFIX=[Install Path] ..\src
cmake --build . --config [Release/Debug] --target cling
</code></pre>
</div>
</div>
<div id="footer">
<div id="copyright">
Copyright &copy; Cling Team
</div>
<div id="links">
<a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
<a href="http://llvm.org" target="_blank">LLVM</a> |
<a href="http://clang.llvm.org" target="_blank">Clang</a> |
<a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
</div>
<div id="modified"><i>Page was modified on <b>$Date$</b> in $Rev$ by <b>$Author$</b></i></div>
</div>
</div>
</body>
</html>