artoolkitx / jsartoolkit5

Javascript ARToolKit v5.x
https://artoolkitx.github.io/jsartoolkit5/examples/
Other
291 stars 69 forks source link

npm run build error #63

Closed ThorstenBux closed 6 years ago

ThorstenBux commented 6 years ago

Original from @DarrenGuinness from https://github.com/artoolkit/jsartoolkit5/issues/82

Hi there, I have followed the build instructions found on the README, installed enscripten and activated the environment variables but seem to have encounter an error during the last step (npm run build). emconfigure doesn't seem to be a supported command. Is there a workaround for this?

output:

npm run build

jsartoolkit@0.0.0 build C:\Users\user1\Desktop\jsartoolkit5 cd emscripten/artoolkit5/ && emconfigure ./configure && cd ../../ && node tools/makem.js; echo Built at date

'emconfigure' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! jsartoolkit@0.0.0 build: cd emscripten/artoolkit5/ && emconfigure ./configure && cd ../../ && node tools/makem.js; echo Built atdate`` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the jsartoolkit@0.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:

ThorstenBux commented 6 years ago

For me ./emconfigure is a valid command.

Zaphod:Downloads thorstenbux$ emconfigure

  emconfigure is a helper for configure, setting various environment
  variables so that emcc etc. are used. Typical usage:

    emconfigure ./configure [FLAGS]

  (but you can run any command instead of configure)

I guess something in your emscripten installation is broken.

ThorstenBux commented 6 years ago

As for your response on https://github.com/artoolkit/jsartoolkit5/issues/82 If the examples work correctly locally that is because the repo already contains prebuild js files. You only need to build it if you make code changes to the library