<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Box2D install script</title>
<description> So the old version of Box2D on the wiki is really out of date, so I thought I&amp;#039;d try building it from a newer source so that it&amp;#039;d be compatible with the manual. You&amp;#039;ll need to have CMake installed. Here&amp;#039;s a build script; just copy and paste it into your terminal. Make sure you have $DEVKITPRO and $DEVKITPPC set. Good luck! :D

git clone git://github.com/blackberry/box2d
cd Box2D/Build
cmake -DBOX2D_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/libogc \
-DCMAKE_CXX_COMPILER=$DEVKITPPC/bin/powerpc-eabi-g++ \
-DCMAKE_SYSTEM_NAME=Generic -DBOX2D_INSTALL=ON ..
make all install
cd $DEVKITPRO/libogc/lib
rm -rf Box2D
mv libBox2D.a wii

In order to use it in your project, just add Box2D to your libraries in the Makefile and include the header wherever you end up using it.

LIBS += -lBox2D

#include &amp;lt;Box2D/Box2D.h&amp;gt;
</description><link>http://forum.wiibrew.org/read.php?11,74736,74736#msg-74736</link><lastBuildDate>Thu, 15 Oct 2026 22:34:16 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,74736,74736#msg-74736</guid>
<title>Box2D install script</title><link>http://forum.wiibrew.org/read.php?11,74736,74736#msg-74736</link><description><![CDATA[ So the old version of Box2D on the wiki is <i>really</i> out of date, so I thought I&#039;d try building it from a newer source so that it&#039;d be compatible with <a href="http://box2d.org/manual.html" rel="nofollow">the manual</a>. You&#039;ll need to have CMake installed. Here&#039;s a build script; just copy and paste it into your terminal. Make sure you have $DEVKITPRO and $DEVKITPPC set. Good luck! :D<br /><pre class="bbcode">
git clone git://github.com/blackberry/box2d
cd Box2D/Build
cmake -DBOX2D_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/libogc \
  -DCMAKE_CXX_COMPILER=$DEVKITPPC/bin/powerpc-eabi-g++ \
  -DCMAKE_SYSTEM_NAME=Generic -DBOX2D_INSTALL=ON ..
make all install
cd $DEVKITPRO/libogc/lib
rm -rf Box2D
mv libBox2D.a wii</pre><br />In order to use it in your project, just add Box2D to your libraries in the Makefile and include the header wherever you end up using it.<br /><pre class="bbcode">
LIBS += -lBox2D</pre>
<pre class="bbcode">
#include &lt;Box2D/Box2D.h&gt;
</pre>]]></description>
<dc:creator>tweakdeveloper</dc:creator>
<category>Coding</category><pubDate>Tue, 07 Apr 2015 20:02:04 +0200</pubDate></item>
</channel>
</rss>