2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml">
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10 <title>Command compile — salomeTools 5.0.0dev documentation</title>
12 <link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
13 <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14 <link rel="stylesheet" href="/volatile/wambeke/SAT5/SAT5_S840_MATIX24/SAT/doc/src/custom.css" type="text/css" />
16 <script type="text/javascript">
17 var DOCUMENTATION_OPTIONS = {
20 COLLAPSE_INDEX: false,
25 <script type="text/javascript" src="../_static/jquery.js"></script>
26 <script type="text/javascript" src="../_static/underscore.js"></script>
27 <script type="text/javascript" src="../_static/doctools.js"></script>
28 <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
29 <link rel="top" title="salomeTools 5.0.0dev documentation" href="../index.html" />
30 <link rel="next" title="Command launcher" href="launcher.html" />
31 <link rel="prev" title="Command prepare" href="prepare.html" />
33 <link rel="stylesheet" href="../_static/custom.css" type="text/css" />
36 <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
42 <div class="document">
43 <div class="documentwrapper">
44 <div class="bodywrapper">
45 <div class="body" role="main">
47 <div class="section" id="command-compile">
48 <h1>Command compile<a class="headerlink" href="#command-compile" title="Permalink to this headline">¶</a></h1>
49 <div class="section" id="description">
50 <h2>Description<a class="headerlink" href="#description" title="Permalink to this headline">¶</a></h2>
51 <p>The <strong>compile</strong> command allows compiling the products of a <a class="reference external" href="http://www.salome-platform.org">SALOME</a> application.</p>
53 <div class="section" id="usage">
54 <h2>Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
56 <li><p class="first">Compile a complete application:</p>
57 <div class="highlight-python"><pre>sat compile <application></pre>
60 <li><p class="first">Compile only some products:</p>
61 <div class="highlight-python"><pre>sat compile <application> --products <product1>,<product2> ...</pre>
64 <li><p class="first">Use <em>sat -t</em> to duplicate the logs in the terminal (by default the log are stored and displayed with <em>sat log</em> command):</p>
65 <div class="highlight-python"><pre>sat -t compile <application> --products <product1></pre>
68 <li><p class="first">Compile a module and its dependencies:</p>
69 <div class="highlight-python"><pre>sat compile <application> --products med --with_fathers</pre>
72 <li><p class="first">Compile a module and the modules depending on it (for example plugins):</p>
73 <div class="highlight-python"><pre>sat compile <application> --products med --with_children</pre>
76 <li><p class="first">Clean the build and install directories before starting compilation:</p>
77 <div class="highlight-python"><pre>sat compile <application> --products GEOM --clean_all</pre>
79 <div class="admonition note">
80 <p class="first admonition-title">Note</p>
81 <div class="last line-block">
82 <div class="line">a warning will be shown if option <em>--products</em> is missing</div>
83 <div class="line">(as it will clean everything)</div>
87 <li><p class="first">Clean only the install directories before starting compilation:</p>
88 <div class="highlight-python"><pre>sat compile <application> --clean_install</pre>
91 <li><p class="first">Add options for make:</p>
92 <div class="highlight-python"><pre>sat compile <application> --products <product> --make_flags <flags></pre>
95 <li><p class="first">Use the <em>--check</em> option to execute the unit tests after compilation:</p>
96 <div class="highlight-python"><pre>sat compile <application> --check</pre>
99 <li><p class="first">Remove the build directory after successful compilation (some build directory like qt are big):</p>
100 <div class="highlight-python"><pre>sat compile <application> --products qt --clean_build_after</pre>
103 <li><p class="first">Stop the compilation as soon as the compilation of a module fails:</p>
104 <div class="highlight-python"><pre>sat compile <product> --stop_first_fail</pre>
107 <li><p class="first">Do not compile, just show if products are installed or not, and where is the installation:</p>
108 <div class="highlight-python"><pre>sat compile <application> --show</pre>
113 <div class="section" id="some-useful-configuration-pathes">
114 <h2>Some useful configuration pathes<a class="headerlink" href="#some-useful-configuration-pathes" title="Permalink to this headline">¶</a></h2>
115 <p>The way to compile a product is defined in the <em>pyconf file configuration</em>.
116 The main options are:</p>
118 <div><ul class="simple">
119 <li><strong>build_source</strong> : the method used to build the product (cmake/autotools/script)</li>
120 <li><strong>compil_script</strong> : the compilation script if build_source is equal to "script"</li>
121 <li><strong>cmake_options</strong> : additional options for cmake.</li>
122 <li><strong>nb_proc</strong> : number of jobs to use with make for this product.</li>
132 <div class="sphinxsidebar">
133 <div class="sphinxsidebarwrapper">
134 <p class="logo"><a href="../index.html">
135 <img class="logo" src="../_static/sat_v5.0.png" alt="Logo"/>
137 <h3><a href="../index.html">Table Of Contents</a></h3>
139 <li><a class="reference internal" href="#">Command compile</a><ul>
140 <li><a class="reference internal" href="#description">Description</a></li>
141 <li><a class="reference internal" href="#usage">Usage</a></li>
142 <li><a class="reference internal" href="#some-useful-configuration-pathes">Some useful configuration pathes</a></li>
146 <div class="relations">
147 <h3>Related Topics</h3>
149 <li><a href="../index.html">Documentation overview</a><ul>
150 <li>Previous: <a href="prepare.html" title="previous chapter">Command prepare</a></li>
151 <li>Next: <a href="launcher.html" title="next chapter">Command launcher</a></li>
156 <ul class="this-page-menu">
157 <li><a href="../_sources/commands/compile.txt"
158 rel="nofollow">Show Source</a></li>
160 <div id="searchbox" style="display: none">
161 <h3>Quick search</h3>
162 <form class="search" action="../search.html" method="get">
163 <input type="text" name="q" />
164 <input type="submit" value="Go" />
165 <input type="hidden" name="check_keywords" value="yes" />
166 <input type="hidden" name="area" value="default" />
168 <p class="searchtip" style="font-size: 90%">
169 Enter search terms or a module, class or function name.
172 <script type="text/javascript">$('#searchbox').show(0);</script>
175 <div class="clearer"></div>
181 Powered by <a href="http://sphinx-doc.org/">Sphinx 1.1.3</a>
182 & <a href="https://github.com/bitprophet/alabaster">Alabaster </a>
185 <a href="../_sources/commands/compile.txt"
186 rel="nofollow">Page source</a>