Binding for bullet-2.79.
- download and extract bullet physics source code: bullet-2.79-rev2440.zip
unzip bullet-2.79-rev2440.zip
- compile and install the library:
cd bullet-2.79
cmake . -DBUILD_DEMOS=NO (on OSX for 32 bit GHC also add -DCMAKE_OSX_ARCHITECTURES='i386')
make
sudo make install
-
compile and install the haskell bullet binding:
cabal install
(run command in the bullet.cabal's directory) -
compile and run the example (needs OpenGL and GLUT):
cd Examples
ghc --make -O2 BulletExample
./BulletExample
- copy and run
prepareHeaders.hs
executable tobullet/src
- move the generated bullet directory to bullet binding directory
- from
cbits
folder copyHaskellBulletAPI.h
andGLDebugDrawer.h
to generatedbullet
folder and copybullet.py
to generatedbullet
folder also - execute
bullet.py
in bullet directory - copy generated files
Physics
directory to binding directory- Bullet.[h/cpp] to
cbits
directory