box2d.js build instructions do not currently extend to building on Windows. "make" is a Unix tool that native Windows build toolchains don't have. There are three ways you can try to go around this: - switch to linux or osx to build, they have make. - try installing cygwin or msys under Windows, and the make packages there, and try to adapt the box2d.js build arch to build in those environments. (this could be 0% "works out of the box", or, minor changes, or days of work, difficult to say) - try adapting the build system to build via CMake. CMake is a cross platform build configure system that works equally on Windows, Linux and OSX. When building under CMake, one uses the native MinGW toolchain and the tool "mingw32-make" to build instead of Unix "make". Configuration is done via "emcmake cmake xxxx" when targeting Emscripten instead of "cmake xxxx" when targeting a native build.
Most likely the first option will be most hassle free, but if you are interested in contributing to box2d.js, then pursuing the third option is probably the most mature path forward, as the second option via cygwin and msys is a bit of an emulation mechanism and therefore not a good route for stable development. 2015-04-30 16:11 GMT+03:00 Alexandre Rivet <[email protected]>: > Hi, > > I am new with emscripten and makefiles and I have met some difficulties > regarding "emmake make" to build box2d in js. > > I want to learn how to build a full c++ project in js with emscripten so I > am looking for box2d and I want to do same things. > > So, I followed steps described in box2d readme but I got some error: > > "C:\Emscripten\box2d.js-master>emmake make > ERROR root: Exception thrown when invoking Popen in make with args: > "make"! > Traceback (most recent call last): > File "C:\Program Files\Emscripten\emscripten\1.29.0\\emmake", line 26, > in <module> > shared.Building.make(sys.argv[1(inlove)) > File "C:\Program Files\Emscripten\emscripten\1.29.0\tools\shared.py", > line 1113, in make > process = Popen(args, stdout=stdout, stderr=stderr, env=env) > File "C:\Program > Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", line 711, in init > errread, errwrite) > File "C:\Program > Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", line 948, in > _execute_c > hild > startupinfo) > WindowsError: [Error 2] The system cannot find the file specified" > > I am running on windows 8.1 and using emscripten 1.29.0. > Can someone explain me how to process to build box2d in js please ? > > Thank you all in advance for your help. > > Alexandre Rivet > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
