{"action":"opened","issue":{"url":"https://api.github.com/repos/kripken/ammo.js/issues/136","repository_url":"https://api.github.com/repos/kripken/ammo.js","labels_url":"https://api.github.com/repos/kripken/ammo.js/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/kripken/ammo.js/issues/136/comments","events_url":"https://api.github.com/repos/kripken/ammo.js/issues/136/events","html_url":"https://github.com/kripken/ammo.js/issues/136","id":131883093,"number":136,"title":"ammo.js building errors","user":{"login":"CypD","id":11931060,"avatar_url":"https://avatars.githubusercontent.com/u/11931060?v=3","gravatar_id":"","url":"https://api.github.com/users/CypD","html_url":"https://github.com/CypD","followers_url":"https://api.github.com/users/CypD/followers","following_url":"https://api.github.com/users/CypD/following{/other_user}","gists_url":"https://api.github.com/users/CypD/gists{/gist_id}","starred_url":"https://api.github.com/users/CypD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CypD/subscriptions","organizations_url":"https://api.github.com/users/CypD/orgs","repos_url":"https://api.github.com/users/CypD/repos","events_url":"https://api.github.com/users/CypD/events{/privacy}","received_events_url":"https://api.github.com/users/CypD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-06T18:13:27Z","updated_at":"2016-02-06T18:13:27Z","closed_at":null,"body":"Hi\r\nI am trying to build ammo.js from the source.\r\nI have installed fresh emscrpiten sdk (linux x64),   and master ammo.js branch in zip file.\r\nBut it doesn't nod compile, just trhows error.\r\n\r\nEmscripten is installed using thecommands from http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html  :\r\n./emsdk update\r\n./emsdk install latest\r\n./emsdk activate latest\r\n./emsdk_env.sh\r\n\r\nbelow  is error log after runing python make.py\r\nany ideas ?\r\n\r\nammo.js-master_2016-02-06$ python make.py \r\n\r\n--------------------------------------------------\r\nBuilding ammo.js, build type: ['-O3', '--llvm-lto', '1', '-s', 'NO_EXIT_RUNTIME=1', '-s', 'AGGRESSIVE_VARIABLE_ELIMINATION=1', '-s', 'NO_DYNAMIC_EXECUTION=1', '--memory-init-file', '0', '-s', 'NO_FILESYSTEM=1', '-s', 'NO_BROWSER=1', '-s', 'EXPORTED_RUNTIME_METHODS=[]', '-s', 'TOTAL_MEMORY=67108864', '-s', 'EXPORT_NAME=\"AmmoLib\"', '-s', 'MODULARIZE=1']\r\n--------------------------------------------------\r\n\r\n\r\n==========================\r\nStage 1: Generate bindings\r\n==========================\r\n\r\n\r\n=======================\r\nStage 2: Build bindings\r\n=======================\r\n\r\nglue.cpp:2504:14: error: no matching constructor for initialization of\r\n      'btSoftBody'\r\n  return new btSoftBody(arg0, arg1, arg2, arg3);\r\n             ^          ~~~~~~~~~~~~~~~~~~~~~~\r\n../src/BulletSoftBody/btSoftBody.h:684:2: note: candidate constructor not\r\n      viable: no known conversion from 'float' to 'const btScalar *'\r\n      (aka 'const float *') for 4th argument; take the address of the argument\r\n      with &\r\n        btSoftBody(     btSoftBodyWorldInfo* worldInfo,int node_count...\r\n        ^\r\n../src/BulletSoftBody/btSoftBody.h:687:2: note: candidate constructor not\r\n      viable: requires single argument 'worldInfo', but 4 arguments were\r\n      provided\r\n        btSoftBody(     btSoftBodyWorldInfo* worldInfo);\r\n        ^\r\n../src/BulletSoftBody/btSoftBody.h:71:7: note: candidate constructor (the\r\n      implicit copy constructor) not viable: requires 1 argument, but 4 were\r\n      provided\r\nclass   btSoftBody : public btCollisionObject\r\n        ^\r\nglue.cpp:3265:29: error: cannot initialize a parameter of type\r\n      'const btScalar *' (aka 'const float *') with an lvalue of type 'float'\r\n  self->setFromOpenGLMatrix(arg0);\r\n                            ^~~~\r\n../src/LinearMath/btTransform.h:131:43: note: passing argument to parameter 'm'\r\n      here\r\n        void setFromOpenGLMatrix(const btScalar *m)\r\n                                                 ^\r\nglue.cpp:3671:89: error: cannot initialize a parameter of type 'float *' with an\r\n      lvalue of type 'float'\r\n  ...*arg1, *arg2, *arg3, *arg4, arg5, arg6, arg7, arg8, arg9);\r\n                                                         ^~~~\r\n../src/BulletSoftBody/btSoftBodyHelpers.h:101:10: note: passing argument to\r\n      parameter 'tex_coords' here\r\n                float* tex_coords=0);\r\n                       ^\r\nglue.cpp:3679:41: error: cannot initialize a parameter of type\r\n      'const btScalar *' (aka 'const float *') with an lvalue of type 'float'\r\n  return self->CreateFromTriMesh(*arg0, arg1, arg2, arg3, arg4);\r\n                                        ^~~~\r\n../src/BulletSoftBody/btSoftBodyHelpers.h:110:19: note: passing argument to\r\n      parameter 'vertices' here\r\n                const btScalar* vertices,\r\n                                ^\r\n4 errors generated.\r\nERROR:root:compiler frontend failed to generate LLVM bitcode, halting\r\nTraceback (most recent call last):\r\n  File \"make.py\", line 95, in <module>\r\n    emscripten.Building.emcc('glue.cpp', args, 'glue.bc')\r\n  File \"/home/cyp/programy/emsdk_portable/emscripten/master/tools/shared.py\", line 1548, in emcc\r\n    assert os.path.exists(output_filename), 'emcc could not create output file: ' + output_filename\r\nAssertionError: emcc could not create output file: glue.bc\r\n\r\n"}}