-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_linux.html
117 lines (117 loc) · 5.86 KB
/
install_linux.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="generator" content="jemdoc, see http://jemdoc.jaboc.net/" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="jemdoc.css" type="text/css" />
<title>Linux installation</title>
</head>
<body>
<table summary="Table for page layout." id="tlayout">
<tr valign="top">
<td id="layout-menu">
<div class="menu-category">ACADO Toolkit</div>
<div class="menu-item"><a href="index.html">Overview</a></div>
<div class="menu-item"><a href="features.html">Features</a></div>
<div class="menu-item"><a href="licensing.html">Licensing</a></div>
<div class="menu-item"><a href="publications.html">Publications</a></div>
<div class="menu-item"><a href="developers.html">Developers</a></div>
<div class="menu-item"><a href="blog.html">Blog</a></div>
<div class="menu-category">Installation</div>
<div class="menu-item"><a href="install_linux.html" class="current">Linux</a></div>
<div class="menu-item"><a href="install_osx.html">OS X</a></div>
<div class="menu-item"><a href="install_windows.html">Windows</a></div>
<div class="menu-category">Interfaces</div>
<div class="menu-item"><a href="matlab_overview.html">MATLAB interface</a></div>
<div class="menu-category">The Code <br /> Generation Tool</div>
<div class="menu-item"><a href="cgt_overview.html">Overview</a></div>
<div class="menu-category">Support</div>
<div class="menu-item"><a href="documentation.html">Documentation</a></div>
<div class="menu-item"><a href="extra_support.html">Additional</a></div>
<div class="menu-category">For developers</div>
<div class="menu-item"><a href="dev_guide.html">Guidelines</a></div>
<div class="menu-item"><a href="known_issues.html">Known issues</a></div>
<div class="menu-item"><a href="getting_involved.html">Getting involved</a></div>
</td>
<td id="layout-content">
<div id="toptitle">
<h1>Linux installation</h1>
</div>
<p>Here is explained how to download, compile and use ACADO toolkit with <a href="http://www.cmake.org" target=“blank”>CMake</a> build system in Linux operating system. In particular, the focus is on Ubuntu distribution (or any Debian based distribution).</p>
<div class="infoblock">
<div class="blocktitle">MATLAB installation</div>
<div class="blockcontent">
<p>The instructions below are for building of the C++ library. If you are looking for the instructions on how to install and use the MATLAB interface, please <i><a href="matlab_overview.html" target=“blank”>click here</a></i>.</p>
</div></div>
<h2>Prerequisites </h2>
<p>For starters, one needs to download a few packages via apt-get package manager (you will need root privileges):</p>
<div class="codeblock">
<div class="blockcontent"><pre>
sudo apt-get install gcc g++ cmake git gnuplot doxygen graphviz
</pre></div></div>
<div class="infoblock">
<div class="blocktitle">NOTE</div>
<div class="blockcontent">
<p>The following packages are mandatory: gcc, g++, cmake and subversion. <a href="http://gnuplot.info" target=“blank”>Gnuplot</a>, <a href="http://www.doxygen.org" target=“blank”>Doxygen</a> and <a href="http://www.graphviz.org" target=“blank”>Graphviz</a> are optional. ACADO can work without those packages, but you will not be able to visualize results and/or generate API documentation.</p>
</div></div>
<h2>Installation</h2>
<p>Please download the toolkit code. Our suggestion is to always clone <b>stable</b> branch:</p>
<div class="codeblock">
<div class="blockcontent"><pre>
git clone https://github.com/acado/acado.git -b stable ACADOtoolkit
</pre></div></div>
<p>We will refer to the ACADOtoolkit folder as <ACADO_ROOT>.</p>
<p>Go to ACADOtoolkit folder and create a build folder for an out-of-source build:</p>
<div class="codeblock">
<div class="blockcontent"><pre>
cd ACADOtoolkit
mkdir build
cd build
</pre></div></div>
<p>Run CMake to generate makefiles and start the building process:</p>
<div class="codeblock">
<div class="blockcontent"><pre>
cmake ..
make
</pre></div></div>
<p>Check whether the installation was successful by running an example:</p>
<div class="codeblock">
<div class="blockcontent"><pre>
cd ..
cd examples/getting_started
./simple_ocp
</pre></div></div>
<p>Now you can proceed to the <a href="documentation.html" target=“blank”>documentation</a> related page, where you can find out more about tutorials, source code documentation etc.</p>
<h3>Additonal</h3>
<p>In case you want to compile ACADO in debug mode, you can run CMake like this:</p>
<div class="codeblock">
<div class="blockcontent"><pre>
cmake -DCMAKE_BUILD_TYPE=Debug ..
</pre></div></div>
<h2>Alternative code download</h2>
<p>If for any reason you cannot download the code using GIT or you do not want to use GIT (this is not encouraged!), you can download the code in a zip archive</p>
<ol>
<li><p>current code from the <b>stable</b> branch <a href="http://www.acadotoolkit.org/zip/acadotoolkit-current-stable.zip" target=“blank”>acadotoolkit-current-stable.zip</a> or</p>
</li>
<li><p>current code from the <b>master</b> branch <a href="http://www.acadotoolkit.org/zip/acadotoolkit-current-master.zip" target=“blank”>acadotoolkit-current-master.zip</a>.</p>
</li>
</ol>
<p>Those archives are automatically updated after each successfully compiled and tested commit we push to the GIT repository.</p>
<div id="footer">
<div id="footer-text">
Page generated 2014-09-02 01:01:41 CEST, by <a href="https://github.com/wsshin/jemdoc_mathjax" target="blank">jemdoc+MathJax</a>.
</div>
</div>
</td>
</tr>
</table>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: { equationNumbers: { autoNumber: "AMS" } }
});
</script>
</body>
</html>