kripken / ammo.js

Direct port of the Bullet physics engine to JavaScript using Emscripten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make[2]: emcc: No such file or directory

jespertheend opened this issue · comments

when I try to build with

cmake -B builds -DEMSCRIPTEN_ROOT=$emscriptenPath
cmake --build builds

I get the following output:

Scanning dependencies of target LinearMath
[  0%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btAlignedAllocator.o
shared:INFO: (Emscripten: Running sanity checks)
[  1%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btConvexHull.o
[  1%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btConvexHullComputer.o
[  2%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btGeometryUtil.o
[  2%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btPolarDecomposition.o
[  3%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btQuickprof.o
[  3%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btSerializer.o
[  5%] Building CXX object bullet/src/LinearMath/CMakeFiles/LinearMath.dir/btVector3.o
[  5%] Linking CXX static library libLinearMath.a
[  5%] Built target LinearMath
Scanning dependencies of target ammo-bindings
[  6%] Generating ammo bindings
[  6%] Building ammo bindings
make[2]: emcc: No such file or directory
make[2]: *** [glue.o] Error 1
make[1]: *** [CMakeFiles/ammo-bindings.dir/all] Error 2
make: *** [all] Error 2

Adding emsdk to my PATH using export PATH=$PATH:/node_modules/emsdk-npm/emsdk/upstream/emscripten/ seems to fix it.