Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for compiling CBOR? #2541

Open
kion-dgl opened this issue Aug 27, 2023 · 0 comments
Open

Instructions for compiling CBOR? #2541

kion-dgl opened this issue Aug 27, 2023 · 0 comments

Comments

@kion-dgl
Copy link

https://github.com/svaarala/duktape/tree/master/extras/cbor

Trying to install the command line interface for CBOR. No instructions for dependencies are provided.

duktape/extras/cbor$ make jsoncbor
rm -rf ./prep
python2 ../../tools/configure.py --quiet --output-directory ./prep \
	-DDUK_USE_JSON_DECNUMBER_FASTPATH \
	-DDUK_USE_JSON_DECSTRING_FASTPATH \
	-DDUK_USE_JSON_EATWHITE_FASTPATH \
	-DDUK_USE_JSON_QUOTESTRING_FASTPATH \
	-DDUK_USE_JSON_STRINGIFY_FASTPATH

****************************************************************************
*** Duktape python tooling is obsolete, migrate to JS-based tooling!     ***
*** This tool now internally invokes the JS-based tooling.               ***
*** Minimum Node.js version is 14.x.                                     ***
****************************************************************************

*** Executing JS-based tooling with command: ['node', '/home/kion/Documents/duktape/tools/../src-tools/index.js', 'configure', '--output-directory', './prep', '--source-directory', '/home/kion/Documents/duktape/tools/../src-input', '--option-file', '/tmp/tmpCJzrgZ', '--fixup-file', '/tmp/tmpfyL9j_']

node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module '../extdeps/js-yaml'
Require stack:
- /home/kion/Documents/duktape/src-tools/lib/util/yaml.js
- /home/kion/Documents/duktape/src-tools/lib/util/fs.js
- /home/kion/Documents/duktape/src-tools/lib/duktool/main.js
- /home/kion/Documents/duktape/src-tools/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1067:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/benjamin/Documents/duktape/src-tools/lib/util/yaml.js:3:16)
    at Module._compile (node:internal/modules/cjs/loader:1165:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
    at Module.load (node:internal/modules/cjs/loader:1043:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1067:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/kion/Documents/duktape/src-tools/lib/util/yaml.js',
    '/home/kion/Documents/duktape/src-tools/lib/util/fs.js',
    '/home/kion/Documents/duktape/src-tools/lib/duktool/main.js',
    '/home/kion/Documents/duktape/src-tools/index.js'
  ]
}
Traceback (most recent call last):
  File "../../tools/configure.py", line 222, in <module>
    main()
  File "../../tools/configure.py", line 219, in main
    subprocess.check_call(cmd)
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['node', '/home/benjamin/Documents/duktape/tools/../src-tools/index.js', 'configure', '--output-directory', './prep', '--source-directory', '/home/benjamin/Documents/duktape/tools/../src-input', '--option-file', '/tmp/tmpCJzrgZ', '--fixup-file', '/tmp/tmpfyL9j_']' returned non-zero exit status 1
make: *** [Makefile:19: jsoncbor] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant