Skip to content

Commit

Permalink
Add magnum bindings in OSX script as well
Browse files Browse the repository at this point in the history
  • Loading branch information
costashatz committed Aug 26, 2024
1 parent fc9807c commit 1691291
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
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

0 comments on commit 1691291

Please sign in to comment.