Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > e7618febbb9cbed15bb79e326774c050 > files > 1651

ompl-devel-0.9.5-1.fc14.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/>
<title>OMPL: Installation</title>
<meta name="author" content="Ioan A. Șucan, Mark Moll, Lydia E. Kavraki">
<link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print">
<!--[if lt IE 7]>
<script type="text/javascript" src="../js/jquery/jquery.js"></script>
<script type="text/javascript" src="../js/jquery/jquery.dropdown.js"></script>
<![endif]-->
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-9156598-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search API');
--></script>
<div class="navigation" id="top">
  <div class="tabs" id="ompltitle">
    <ul class="tablist">
      <li>The Open Motion Planning Library</li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search API" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)"
               onblur="searchBox.OnSearchFieldFocus(false)"
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>

  <ul id="nav" class="dropdown">
    <li class="first"><a href="index.html">Home</a></li>
    <li><a href="download.html">Download</a></li>
    <li><a href="documentation.html">Documentation</a></li>
    <li><span class="dir">Code API</span>
      <ul>
        <li><a href="api_overview.html">API Overview</a></li>
        <li><a href="namespaces.html">Namespaces</a></li>
        <li><a href="annotated.html">Classes</a></li>
        <li><a href="files.html">Files</a></li>
        <li><a href="dirs.html">Directories</a></li>
      </ul>
    </li>
    <li><span class="dir">Community</span>
      <ul>
        <li><a href="developers.html">Developers</a></li>
        <li><a href="thirdparty.html">Contributions</a></li>
        <li><a href="education.html">Education</a></li>
        <li><a href="gallery.html">Gallery</a></li>
      </ul>
    </li>
    <li><span class="dir">About</span>
      <ul>
        <li><a href="license.html">License</a></li>
        <li><a href="citations.html">Citations</a></li>
        <li><a href="acknowledgements.html">Acknowledgments</a></li>
        <li><a href="contact.html">Contact Us</a></li>
      </ul>
    </li>
  </ul>
</div>

<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
  onmouseover="return searchBox.OnSearchSelectShow()"
  onmouseout="return searchBox.OnSearchSelectHide()"
  onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
  <iframe src="" frameborder="0"name="MSearchResults" id="MSearchResults"></iframe>
</div>

<div class="container">
  <div class="span-22 push-2 first last">
  <div>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">Installation </div>  </div>
</div>
<div class="contents">
<div class="textblock"><p>To compile OMPL the following two packages are required:</p>
<ul>
<li><a href="http://www.boost.org">Boost</a> (recommended version 1.42 or higher) and</li>
<li><a href="http://www.cmake.org">CMake</a> (required version 2.8.2 or higher).</li>
</ul>
<p>For running the tests, you will also need <a href="http://code.google.com/p/googletest/">GTest</a>. For the python bindings you need to have the python libraries and header files installed. If you also want to be able to generate the python bindings, then you need to install <a href="http://sourceforge.net/projects/pygccxml/">Py++</a>. To (re)generate this documentation locally you will need <a href="http://www.doxygen.org">Doxygen</a>.</p>
<p>Below are installation instructions for <a href="#install_linuxosx">Linux, OS X</a>, and <a href="#install_windows">Windows</a>. <br/>
</p>
<dl class="note"><dt><b>Note:</b></dt><dd>If you are using <a href="http://code.ros.org">ROS</a>, please see the <a href="http://www.ros.org/wiki/ompl">ompl package in ROS</a>.</dd></dl>
<h2><a class="anchor" id="install_linuxosx"></a>
Installation on Linux and Mac OS X</h2>
<p>Below are installation instructions for Ubuntu Linux and Mac OS X. Similar steps can be taken for other distributions, but package names may not be identical.</p>
<h3><a class="anchor" id="install_linux_ubuntu"></a>
Ubuntu Linux</h3>
<ul>
<li>If using Ubuntu 10.04 or earlier, the supplied Boost version is too old. You will need to add another repository. For Ubuntu 9.10 or 10.04, this can be done with the following command: <div class="fragment"><pre class="fragment">sudo add-apt-repository ppa:gezakovacs/boost
</pre></div> For Ubuntu 9.04 or earlier, adding the repository will require a <a href="https://launchpad.net/~gezakovacs/+archive/boost">different approach</a>.</li>
</ul>
<ul>
<li>If using Ubuntu 9.10 or earlier, the supplied version of CMake is too old. You can download the latest version from <a href="http://www.cmake.org/cmake/resources/software.html">here</a>.</li>
<li>Install Boost, CMake <div class="fragment"><pre class="fragment">sudo apt-<span class="keyword">get</span> install libboost-all-dev cmake
</pre></div></li>
<li>To be able to build tests, generate documentation, generate Python bindings, build the ODE extension, the following packages are also needed: <div class="fragment"><pre class="fragment">sudo apt-<span class="keyword">get</span> install libgtest-dev doxygen graphviz python-dev libode-dev
</pre></div></li>
<li>To be able to generate Python bindings, follow <a class="el" href="installPyPlusPlus.html">these</a> instructions.</li>
<li>Follow the common steps <a class="el" href="installation.html#common_steps">below</a>.</li>
</ul>
<h3><a class="anchor" id="install_mac_os"></a>
Mac OS X</h3>
<ul>
<li>It is easiest to install the dependencies through <a href="http://www.macports.org">MacPorts</a>, a package manager for OS X, so install MacPorts first.</li>
<li>If you do not need to modify or see the source code of OMPL, then the easiest way to install OMPL is with the MacPorts <code>port</code> command: <div class="fragment"><pre class="fragment">sudo port selfupdate
sudo port install ompl
</pre></div> This is it. You are done. Demo programs can be found in <code>/opt/local/share/ompl</code>.</li>
<li>If you downloaded the source distribution of OMPL, then you need to install the dependencies Boost, and CMake. Optionally, you can also install the Open Dynamics Engine, Py++, and the Python libraries and headers. If you have MacPorts installed, type the following: <div class="fragment"><pre class="fragment">sudo port selfupdate
sudo port install boost +python27 \; install cmake ode py27-pyplusplus-devel
</pre></div> If you omit the <code>+python27</code> part, Boost.Python will not be installed, and the Python bindings for OMPL cannot be compiled.</li>
<li>It is <b>very</b> important that you use the same installed version of Python for all dependencies and OMPL.app. If you are using MacPorts, then you <b>must</b> use the MacPorts version of python 2.7 (most likely installed in <code>/opt/local/bin</code>). To make this version the default python version, make sure <code>/opt/local/bin</code> appears before <code>/usr/bin</code> in your PATH. You can add a line like this to your <code>${HOME}/.bash_profile</code>: <div class="fragment"><pre class="fragment">export PATH=/opt/local/bin:/opt/local/sbin:$PATH
</pre></div> Next, execute the following command: <div class="fragment"><pre class="fragment">sudo port select python python27
</pre></div> You can check if the MacPorts-installed python 2.7 is the default one by typing the following command: <div class="fragment"><pre class="fragment">ls -l `which python`
</pre></div></li>
<li>To be able to build tests and generate documentation, Google Test and Doxygen are also needed: <div class="fragment"><pre class="fragment">sudo port install google-test doxygen
</pre></div></li>
<li>Follow the common steps <a class="el" href="installation.html#common_steps">below</a>.</li>
</ul>
<h3><a class="anchor" id="common_steps"></a>
Common steps</h3>
<ul>
<li>Create a build directory and run cmake: <div class="fragment"><pre class="fragment">cd ompl
mkdir -p build/Release
cd build/Release
cmake -DCMAKE_BUILD_TYPE=Release ../.. [-DCMAKE_INSTALL_PREFIX=/path/to/install]
</pre></div> If you want a debug version of ompl, change "Release" to "Debug" above.</li>
<li>If Python bindings are to be generated, type <code>make update_bindings</code>. (If this does not work and you are sure you have Py++ installed, you may have to run <code>cmake</code> again.) <b>Note:</b> <code>make update_bindings</code> is <em>never</em> run automatically. If you change any of the OMPL header files, you need to type <code>make update_bindings</code> again for the changes to be reflected in the Python modules. The command <code>make</code> needs to be executed <b>after</b> every call to <code>make update_bindings</code>.</li>
<li>Compile OMPL by typing <code>make</code>.</li>
<li>Optionally, run the test programs by typing <code>make test</code>.</li>
<li>Optionally, generate documentation by typing <code>make doc</code>.</li>
<li>If you need to install the library, you can type <code>make install</code>. The install location is specified by <code>CMAKE_INSTALL_PREFIX</code>. If you install in a non-standard location, you have to set the environment variable PYTHONPATH to the directory where the OMPL python module is installed.</li>
</ul>
<h2><a class="anchor" id="install_windows"></a>
Installation on Windows</h2>
<p>At this point we support only Linux and OS X, and we have not done any extensive testing on Windows. That said, it is definitely possible to compile and install OMPL on Windows.</p>
<ul>
<li>Download and install <a href="http://www.cmake.org">CMake</a>.</li>
<li>If you plan to use Microsoft Visual Studio, you can download Boost <a href="http://www.boostpro.com/download/">here</a>. If you want to use MinGW or Cygwin, follow the <a href="http://www.boost.org/doc/libs/release/more/getting_started/unix-variants.html">Unix installation instructions</a>.</li>
<li>Optionally, download and install <a href="http://www.python.org/download/">Python</a>.</li>
<li>Run CMake (either the GUI or the command line version). From the GUI it is easy to generate project files for Visual Studio or Makefiles.</li>
<li>Build the "solution" ALL in Visual Studio, or run <code>make</code> if you use MinGW/Cygwin.</li>
</ul>
</div></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></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>

<div class="footer span-22 push-2 last">
  <a href="http://www.kavrakilab.org">Physical and Biological Computing Group</a> &bull;
  <a href="http://www.cs.rice.edu">Department of Computer Science</a> &bull;
  <a href="http://www.rice.edu">Rice University</a><br>
  <div class="gray">Generated on Sun Oct 9 2011 23:04:41 by&#160;<a href="http://www.doxygen.org/index.html">doxygen</a> 1.7.4</div>
</div>
</div>
</body>
</html>