如何交叉编译ARM的node-gyp

我创build了一个需要从C程序中创build一个节点模块的节点应用程序。我使用SWIG(简单包装接口生成器)来做到这一点,我得到了节点模块。应用程序运行在我的PC上成功运行。我现在想交叉编译我的应用程序运行在Beaglebone Black.I上运行这个命令:

node-gyp --arch=arm configure 

它工作得很好,但是当我运行时:

 node-gyp build 

我得到这个消息:

  module.js:356 Module._extensions[extension](this, filename); ^ Error: /home/user/a/build/Release/example.node: cannot open shared object file: No such file or directory at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/home/user/a/app.js:21:8) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) 

我认为这个问题与swig version有关,但是我没有成功将它安装在beagleBone Black上。