PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/root-5.34.01/cint/cling/www/download.html

#
HTML | 186 lines | 176 code | 6 blank | 4 comment | 0 complexity | 024c72e0c22c35e999188f1974401ca3 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, LGPL-2.0, JSON, GPL-2.0, BSD-3-Clause
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html>
  3. <head>
  4. <title>Cling Download</title>
  5. <meta name="description" content="Official Website of Cling" />
  6. <meta name="keywords" content="download cling, svn, make, build" />
  7. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  8. <link rel="stylesheet" type="text/css" href="style/style.css" />
  9. <link rel="stylesheet" type="text/css" href="style/menu.css" />
  10. </head>
  11. <body>
  12. <div id="website">
  13. <div id="header">
  14. <div id="logo">
  15. <div id="logo_text">
  16. <!-- class="logo_colour", allows you to change the colour of the text -->
  17. <h1><a href="../index.html"><span class="logo_colour">Cling</span> Website</a></h1>
  18. <h2>Interactive Compiler Interface</h2>
  19. </div>
  20. </div>
  21. <div id="mainmenubar">
  22. <ul id="mainmenu">
  23. <!-- put class="selected" in the li tag for the selected page - to highlight which page you're on -->
  24. <li><a class="tab_link" href="index.html">Home</a></li>
  25. <li class="selected"><a class="tab_link" href="download.html">Download</a></li>
  26. <li><a class="tab_link" href="news.html">News</a></li>
  27. <li class="root"><a class="tab_link" href="docs.html">Docs</a>
  28. <div id="secondarymenu">
  29. <div id="secondarymenu_content">
  30. <div class="secondarymenu_header">Documentation</div>
  31. <br class="clear" />
  32. <div class="column">
  33. <div class="column_header">Developer</div>
  34. <ul>
  35. <li><a class="secm_link" href="docs/internal/doxygen.html">Doxygen</a></li>
  36. <li><a class="secm_link" href="docs/internal/extensions.html">Extensions</a></li>
  37. <li><a class="secm_link" href="#">Error Recovery</a></li>
  38. <li><a class="secm_link" href="#">Late Binding</a></li>
  39. </ul>
  40. </div>
  41. <div class="column">
  42. <div class="column_header">End User</div>
  43. <ul>
  44. <li><a class="secm_link" href="#">User Manual</a></li>
  45. <li><a class="secm_link" href="#">Status of ObjectiveC[++]</a></li>
  46. </ul>
  47. </div>
  48. </div>
  49. </div>
  50. </li>
  51. <li><a class="tab_link" href="contact.html">Get Involved</a></li>
  52. </ul>
  53. </div>
  54. </div>
  55. <div id="breadcrumb"></div>
  56. <div id="content">
  57. <div class="sidebar">
  58. <!-- insert your sidebar items here -->
  59. <h3>Latest News</h3>
  60. <h4>Cling goes public</h4>
  61. <h5>July 25th, 2011</h5>
  62. <p> Cling was officially announced to the Clang community <br /><a href="news/ClingAnnouncement.html">Read more</a></p>
  63. <p></p>
  64. <h4>New website launched</h4>
  65. <h5>July 1st, 2011</h5>
  66. <p> Welcome to the new website of the project. <br /><a href="news/NewWebsiteLaunched.html">Read more</a></p>
  67. <h3>Useful Links</h3>
  68. <ul>
  69. <li><a href="www.cern.ch" target="_blank">CERN</a></li>
  70. </ul>
  71. </div>
  72. <div id="main">
  73. <!-- insert the page content here -->
  74. <h1>Download & Build Instructions</h1>
  75. <p>This page is shows how to download and build the project cling as a standalone C++ interpreter in few steps</p>
  76. <div class="info"> If you want to download and build cling within ROOT please follow the tutorial <a href="http://root.cern.ch/drupal/content/cling-build-instructions" target="_blank">here</a></div>
  77. <h2>Build</h2>
  78. <h3>Unix systems</h3>
  79. <ul><b><i>Prerequisites</i></b>
  80. <li>See <a href="http://llvm.org/docs/GettingStarted.html#requirements" target="_blank">Getting Started with the LLVM System - Requirements</a>
  81. </li>
  82. <li>
  83. Note also that Python is needed for running the test suite. Get it at: http://www.python.org/download
  84. </li>
  85. </ul>
  86. <ol>
  87. <li>
  88. Checkout LLVM:
  89. <pre>svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm/src</pre>
  90. </li>
  91. <li>
  92. Checkout Clang:
  93. <pre>cd llvm/src/tools/
  94. svn co http://llvm.org/svn/llvm-project/cfe/trunk clang</pre>
  95. </li>
  96. <li>
  97. Checkout Cling (next to clang):
  98. <pre>svn co http://root.cern.ch/svn/root/branches/dev/cling cling</pre>
  99. </li>
  100. <li>
  101. Allow Cling to hook into LLVM's build system:
  102. <pre>cat tools/cling/patches/*.diff | patch -p0
  103. </pre>
  104. </li>
  105. <li>
  106. Configure in your build folder (preferably out of the source code). For example:
  107. <pre>cd ../../obj
  108. ../src/configure --prefix=Where\to\be\installed\
  109. </pre>
  110. </li>
  111. <li>
  112. Now compile and install:
  113. <pre>make && make install</pre>
  114. </li>
  115. </ol>
  116. <p>The executables could be found in your installation folder.
  117. </p>
  118. <h3>Using Visual Studio</h3>
  119. <ul><b><i>Prerequisites</i></b>
  120. <li><b>Subversion client</b> - http://subversion.tigris.org/getting.html</li>
  121. <li><b>cmake</b> - http://www.cmake.org/cmake/resources/software.html</li>
  122. <li><b>Python</b> - http://www.python.org/download/</li>
  123. <li><b>GnuWin32 Tools</b> - http://getgnuwin32.sourceforge.net/</li>
  124. <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>
  125. </ul>
  126. <ol>
  127. <li>
  128. Checkout LLVM
  129. <pre>svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm/src/</pre>
  130. </li>
  131. <li>
  132. Checkout Clang
  133. <pre>cd llvm\src\tools\
  134. svn co http://llvm.org/svn/llvm-project/cfe/trunk clang</pre>
  135. </li>
  136. <li>
  137. Checkout Cling (next to Clang)
  138. <pre>
  139. svn co http://root.cern.ch/svn/root/branches/dev/cling cling</pre>
  140. </li>
  141. <li>
  142. Allow Cling to hook into LLVM's build system: apply the two patches located in the cling\patches folder.
  143. </li>
  144. <li>
  145. Open up cmake and enter the path to the 'src' folder in the 'Where is the source code' field and the path to the 'build' folder in the 'Where to build the binaries' field (mkdir llvm\obj - next to src).
  146. </li>
  147. <li>
  148. Click the Configure button and in the newly popped up window choose Visual Studio version that you have, then click Finish.
  149. </li>
  150. <li>
  151. After the configuring completes many red entries should appear in the Cmake window. You may want to change CMAKE_INSTALL_PREFIX to 'inst' (next to next to src and obj, otherwise the default is Program Files). Click Generate. <br /><i>Note:</i> You may have to do it twice (on 2.8.5) in case after clicking Generate the box is still red.
  152. </li>
  153. <li>
  154. Navigate to your 'build' folder and open LLVM.sln using Visual Studio and build it.
  155. </li>
  156. <li>
  157. Navigate to CMakePredefined project in Visual Studio and right click INSTALL. Choose Project Only -> Build only INSTALL.
  158. </li>
  159. </ol>
  160. <p>The executables could be found in your CMAKE_INSTALL_PREFIX/bin/
  161. </p>
  162. <p>More information about cmake in LLVM and Clang could be found <a href="http://www.llvm.org/docs/CMake.html" target="_blank">here</a> and <a href="http://clang.llvm.org/get_started.html" target="_blank">here</a>.
  163. </p>
  164. </div>
  165. </div>
  166. <div id="footer">
  167. <div id="copyright">
  168. Copyright &copy; Cling Team
  169. </div>
  170. <div id="links">
  171. <a href="http://root.cern.ch/" target="_blank">The ROOT Framework</a> |
  172. <a href="http://llvm.org" target="_blank">LLVM</a> |
  173. <a href="http://clang.llvm.org" target="_blank">Clang</a> |
  174. <a href="http://www.html5webtemplates.co.uk" target="_blank">Web Design</a>
  175. </div>
  176. <div id="modified"><i>Page was modified on <b>$Date: 2011-11-05 17:00:24 +0100 (Sat, 05 Nov 2011) $</b> in $Rev: 41792 $ by <b>$Author: vvassilev $</b></i></div>
  177. </div>
  178. </div>
  179. </body>
  180. </html>