Skip to content

How to Build

Radovan Cervenka edited this page Sep 7, 2016 · 4 revisions

How to Build ZgeBullet Library # {#Howto}

Note: By homedir is meant the directory where the ZgeBullet sources are extracted on your computer.

Before compiling the ZgeBullet, you must copy the Bullet Physics SDK to homedir, e.g., homedir\bullet3-2.83.7.

Compilation of ZgeBullet to Windows DLL

The ZgeBullet DLL is compiled with Microsoft Visual Studio 2013 (MSVS).

  1. Compile the Bullet library with MSVS project file build3\vs2010\0_Bullet3Solution.sln. The resulting .lib files are placed in the lib folder of the Bullet's directory.

  2. Open homedir\vs2013\ZgeBullet.sln in MSVS.

  3. Build the solution with the 'Release' configuration that results in generation of the ZgeBullet.dll (for 32-bit Windows) or ZgeBullet_x64.dll (for 64-bit Windows) file respectively placed to homedir\lib\ directory.

Compilation of ZgeBullet to Android Shared Library

The ZgeBullet shared library (.so) is compiled with Android NDK which must be installed on your computer; see http://developer.android.com/tools/sdk/ndk/ for details.

  1. Open the Cygwin terminal (on Windows) and move to the homedir/android/ folder.

  2. Run the ndk-build command of the Android NDK. The result is placed to the homedir/android/libs/<architecture>/libZgeBullet.so file(s).

By default, the Library is compiled for the ARM architecture - ARMv5TE and ARMv7-A. To change it or add other target architectures, modify Android.mk and/or Application.mk files. See the Android NDK documentation for details.