Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magnum Python Bindings Installation Instructions #217

Merged
merged 4 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/install/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,16 @@ <h4 id="installing-magnum">Installing Magnum<a class="headerlink" href="#install
<a id="__codelineno-2-42" name="__codelineno-2-42" href="#__codelineno-2-42"></a>cmake<span class="w"> </span>-DCMAKE_BUILD_TYPE<span class="o">=</span>Release<span class="w"> </span>-DWITH_DART<span class="o">=</span>ON<span class="w"> </span>-DWITH_EIGEN<span class="o">=</span>ON<span class="w"> </span>..
<a id="__codelineno-2-43" name="__codelineno-2-43" href="#__codelineno-2-43"></a>make<span class="w"> </span>-j
<a id="__codelineno-2-44" name="__codelineno-2-44" href="#__codelineno-2-44"></a>sudo<span class="w"> </span>make<span class="w"> </span>install
<a id="__codelineno-2-45" name="__codelineno-2-45" href="#__codelineno-2-45"></a>
<a id="__codelineno-2-46" name="__codelineno-2-46" href="#__codelineno-2-46"></a><span class="c1"># Installation of Magnum Python Bindings (some examples use them but this is optional)</span>
<a id="__codelineno-2-47" name="__codelineno-2-47" href="#__codelineno-2-47"></a><span class="nb">cd</span><span class="w"> </span>/path/to/tmp/folder
<a id="__codelineno-2-48" name="__codelineno-2-48" href="#__codelineno-2-48"></a>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/mosra/magnum-bindings.git
<a id="__codelineno-2-49" name="__codelineno-2-49" href="#__codelineno-2-49"></a><span class="nb">cd</span><span class="w"> </span>magnum-bindings
<a id="__codelineno-2-50" name="__codelineno-2-50" href="#__codelineno-2-50"></a>mkdir<span class="w"> </span>build<span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nb">cd</span><span class="w"> </span>build
<a id="__codelineno-2-51" name="__codelineno-2-51" href="#__codelineno-2-51"></a>cmake<span class="w"> </span>..<span class="w"> </span>-DMAGNUM_WITH_PYTHON<span class="o">=</span>ON
<a id="__codelineno-2-52" name="__codelineno-2-52" href="#__codelineno-2-52"></a>make<span class="w"> </span>-j
<a id="__codelineno-2-53" name="__codelineno-2-53" href="#__codelineno-2-53"></a><span class="nb">cd</span><span class="w"> </span>src/python
<a id="__codelineno-2-54" name="__codelineno-2-54" href="#__codelineno-2-54"></a>sudo<span class="w"> </span>python3<span class="w"> </span>setup.py<span class="w"> </span>install
</code></pre></div>
<p><strong>For OSX you can also install Magnum via brew:</strong> <code>brew install --HEAD mosra/magnum/corrade &amp;&amp; brew install --HEAD mosra/magnum/magnum &amp;&amp; brew install --HEAD mosra/magnum/magnum-plugins &amp;&amp; brew install --HEAD mosra/magnum/magnum-integration --with-dartsim</code></p>
<h3 id="compilation-and-running-the-examples">Compilation and running the examples<a class="headerlink" href="#compilation-and-running-the-examples" title="Permanent link">&para;</a></h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/search/search_index.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions scripts/install_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/magnum -DMAGNUM_WIT
make -j
sudo make install

cd ../..
if [ ! -d "magnum-bindings" ]
then
git clone https://github.com/mosra/magnum-bindings.git
cd magnum-bindings
mkdir build && cd build
cmake .. -DMAGNUM_WITH_PYTHON=ON
make -j
cd src/python
sudo python3 setup.py install

export PATH=/opt/magnum/bin:$PATH
export LD_LIBRARY_PATH=/opt/magnum/lib:$LD_LIBRARY_PATH

Expand Down
14 changes: 13 additions & 1 deletion scripts/install_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,22 @@ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/magnum -DMAGNUM_WIT
make -j
sudo make install

cd ../..
if [ ! -d "magnum-bindings" ]
then
git clone https://github.com/mosra/magnum-bindings.git
cd magnum-bindings
mkdir build && cd build
cmake .. -DMAGNUM_WITH_PYTHON=ON
make -j
cd src/python
sudo python3 setup.py install


export PATH=/opt/magnum/bin:$PATH
export LD_LIBRARY_PATH=/opt/magnum/lib:$LD_LIBRARY_PATH

cd ../../..
cd ../../../../..
if [ $CLEAN -ne 0 ]; then
rm -rf temp_robot_dart
fi
Expand Down
10 changes: 10 additions & 0 deletions src/docs/docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_DART=ON -DWITH_EIGEN=ON ..
make -j
sudo make install

# Installation of Magnum Python Bindings (some examples use them but this is optional)
cd /path/to/tmp/folder
git clone https://github.com/mosra/magnum-bindings.git
cd magnum-bindings
mkdir build && cd build
cmake .. -DMAGNUM_WITH_PYTHON=ON
make -j
cd src/python
sudo python3 setup.py install
```

**For OSX you can also install Magnum via brew:** `brew install --HEAD mosra/magnum/corrade && brew install --HEAD mosra/magnum/magnum && brew install --HEAD mosra/magnum/magnum-plugins && brew install --HEAD mosra/magnum/magnum-integration --with-dartsim`
Expand Down