Skip to content

Building Bullet

Xpe edited this page Feb 20, 2017 · 9 revisions

Compiling Bullet C++ to JavaScript

-- Windows 64 bit

To build bullet to javascript you will need to download the precompiled emscripten I made (Xpe) "emsdk-1.37.1-portable-64bit" or compile the last version your self. ("1.35.0" is buggy and does not work)

  • Note: For some unknown reason the precompiled version is not working in systems that does not have visual studio. clang is not marked as installed =(

Put it in "C:" so it becomes "C:\emsdk-1.37.1-portable-64bit". If you put it somewhere else you may need to edit "build-js.xml" file.

Add "emsdk-1.37.1-portable-64bit" folder and "emsdk-1.37.1-portable-64bit\python\2.7.5.3_64bit" to Environment Variables -> Path

Execute the commands below to activate the tools (It should show "Installed")

emsdk activate emscripten-tag-1.37.1-64bit
emsdk activate node-4.1.1-64bit
emsdk activate python-2.7.5.3-64bit
emsdk activate clang-tag-e1.37.1-64bit

All the installed tools will have a * mark.

You will need apache ant. Later (if you would like to help) add gradle/java to generate it also.

In "dragome-Backend\extensions\gdx-bullet\gdx-bullet-build\jni\emscripten" you execute "ant -buildfile build-js.xml" and "bullet.js" will be generated to "dragome-Backend\extensions\gdx-bullet\gdx-bullet-build\natives"

gdxBullet.js at release will be updated as soon as new changes are made.

Clone this wiki locally