lwille / node-gphoto2

A Node.js wrapper for libgphoto2
MIT License
298 stars 91 forks source link

node-gphoto2 internal error #115

Closed iilinii closed 4 years ago

iilinii commented 5 years ago

I using node-gyp to build node-gphoto2, then run npm test, it print as below:

npm test

[62956.629489] ****Serial : 6450788685182421010f [62956.635735] ****Serial : 6450788685182421010f

gphoto2@0.3.0 test /root/temp/node-gphoto2 mocha

[62962.038662] ****Serial : 6450788685182421010f [62962.045200] ****Serial : 6450788685182421010f [62965.565392] ****Serial : 6450788685182421010f [62965.571585] ****Serial : 6450788685182421010f module.js:678 return process.dlopen(module, path.toNamespacedPath(filename)); ^

Error: /root/temp/node-gphoto2/build/Release/gphoto2.node: internal error at Object.Module._extensions..node (module.js:678:18) at Module.load (/root/temp/node-gphoto2/node_modules/coffeescript/lib/coffeescript/register.js:53:36) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at Object. (/root/temp/node-gphoto2/index.js:1:94) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (/root/temp/node-gphoto2/node_modules/coffeescript/lib/coffeescript/register.js:53:36) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at Object. (/root/temp/node-gphoto2/test/camera.test.coffee:1:15) at Object. (/root/temp/node-gphoto2/test/camera.test.coffee:1:1) at Module._compile (module.js:649:30) at Object.loadFile (/root/temp/node-gphoto2/node_modules/coffeescript/lib/coffeescript/register.js:18:19) at Module.load (/root/temp/node-gphoto2/node_modules/coffeescript/lib/coffeescript/register.js:53:36) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Module.require (module.js:593:17) at require (internal/module.js:11:18) at /root/temp/node-gphoto2/node_modules/mocha/lib/mocha.js:250:27 at Array.forEach (:null:null) at Mocha.loadFiles (/root/temp/node-gphoto2/node_modules/mocha/lib/mocha.js:247:14) at Mocha.run (/root/temp/node-gphoto2/node_modules/mocha/lib/mocha.js:576:10) at Object. (/root/temp/node-gphoto2/node_modules/mocha/bin/_mocha:637:18) at Module._compile (module.js:649:30) at Object.Module._extensions..js (module.js:660:10) at Module.load (module.js:561:32) at tryModuleLoad (module.js:501:12) at Function.Module._load (module.js:493:3) at Function.Module.runMain (module.js:690:10) at startup (bootstrap_node.js:194:16) at bootstrap_node.js:666:3

npm ERR! Test failed. See above for more details.

the libgphoto2 library in /usr/lib, but no include file. the platform is A40i, build tool is buildroot without development.