artoolkitx / jsartoolkit5

Javascript ARToolKit v5.x

Home Page:https://artoolkitx.github.io/jsartoolkit5/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm run build error

ThorstenBux opened this issue · comments

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:

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.

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