| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.9.1"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>libmpc: Linux</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script> |
| <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td id="projectalign" style="padding-left: 0.5em;"> |
| <div id="projectname">libmpc |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.9.1 --> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| var searchBox = new SearchBox("searchBox", "search",false,'Search','.html'); |
| /* @license-end */ |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| /* @license-end */</script> |
| <div id="main-nav"></div> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| </div><!-- top --> |
| <div class="PageDoc"><div class="header"> |
| <div class="headertitle"> |
| <div class="title">Linux </div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <div class="textblock"><h2>Software dependencies</h2> |
| <p>CMake is required to build the library and can usually be installed from the operating system package manager.</p> |
| <ul type="disc"> |
| <li> |
| sudo apt install cmake </li> |
| </ul> |
| <p>If not, then you can download it from www.cmake.org</p> |
| <p>In order to build the documentation <a href="http://www.doxygen.nl/">doxygen</a> is required.</p> |
| <h3>AMCL</h3> |
| <p><a href="https://github.com/apache/incubator-milagro-crypto-c">AMCL</a> is used to provide the large finite field functionality.</p> |
| <p>Build and install the AMCL library</p> |
| <ul type="disc"> |
| <li> |
| git clone <a href="#" onclick="location.href='mai'+'lto:'+'git'+'@g'+'ith'+'ub'+'.co'+'m'; return false;">git@g<span style="display: none;">.nosp@m.</span>ithu<span style="display: none;">.nosp@m.</span>b.com</a>:apache/incubator-milagro-crypto-c.git </li> |
| <li> |
| cd incubator-milagro-crypto-c </li> |
| <li> |
| mkdir target </li> |
| <li> |
| cd target </li> |
| <li> |
| cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=ON -D AMCL_CHUNK=64 -D AMCL_CURVE="BLS381,SECP256K1" -D AMCL_RSA="" -D BUILD_PAILLIER=ON -D BUILD_PYTHON=OFF -D BUILD_BLS=ON -D BUILD_WCC=OFF -D BUILD_MPIN=OFF -D BUILD_X509=OFF -D CMAKE_INSTALL_PREFIX=/usr/local .. </li> |
| <li> |
| make </li> |
| <li> |
| make test </li> |
| <li> |
| sudo make install </li> |
| </ul> |
| <h2>Compiling</h2> |
| <ul type="disc"> |
| <li> |
| mkdir build </li> |
| <li> |
| cd build </li> |
| <li> |
| cmake .. </li> |
| <li> |
| make </li> |
| <li> |
| make test </li> |
| <li> |
| make doc </li> |
| <li> |
| sudo make install </li> |
| </ul> |
| <p>The build can be configured by setting flags on the command line i.e.</p> |
| <ul type="disc"> |
| <li> |
| cmake -D CMAKE_INSTALL_PREFIX=/usr/local </li> |
| </ul> |
| <p>list available CMake options</p> |
| <ul type="disc"> |
| <li> |
| cmake -LH </li> |
| </ul> |
| <h2>Uninstall software</h2> |
| <ul type="disc"> |
| <li> |
| sudo make uninstall </li> |
| </ul> |
| <h2>Building an installer</h2> |
| <p>After having built the libraries you can build a binary installer and a source distribution by running this command</p> |
| <ul type="disc"> |
| <li> |
| make package </li> |
| </ul> |
| </div></div><!-- contents --> |
| </div><!-- PageDoc --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 |
| </small></address> |
| </body> |
| </html> |