I am using "i.MX6q" board with ARM architecture and Linux os.
i am facing "could not locate bindings file: try" error in "node-modules/ffi/node-modules/ref/" module while using "ffi". initially i was not able to install ffi. after following below steps i was able to install ffi on board:-
a. Using python2.7 on board.
b. Copy "compiler" folder in "/usr/lib/python2.7/" from other machine as it is not in python2.7.
c. Copy "filecmp.pyc" file in "/usr/lib/python2.7/" from other machine as it is not in python2.7.
d. Copy "multiprocessing" module to "/usr/lib/python2.7/" after cross-compilling it.
e. "make" was not existing in "/usr/bin/" as it was in "/usr/share/lmbench/scripts", so i copied "make" to "/usr/bin".
Then i was able to install "ffi" on board using "npm install ffi" command.
When i am using "ffi" in my application then bindings error is occuring as: -
/home/root/jp.necds.websharing/node_modules/ref/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
/home/root/jp.necds.websharing/node_modules/ref/build/binding.node
/home/root/jp.necds.websharing/node_modules/ref/build/Debug/binding.node
/home/root/jp.necds.websharing/node_modules/ref/build/Release/binding.node
/home/root/jp.necds.websharing/node_modules/ref/out/Debug/binding.node
/home/root/jp.necds.websharing/node_modules/ref/Debug/binding.node
/home/root/jp.necds.websharing/node_modules/ref/out/Release/binding.node
/home/root/jp.necds.websharing/node_modules/ref/Release/binding.node
/home/root/jp.necds.websharing/node_modules/ref/build/default/binding.node
/home/root/jp.necds.websharing/node_modules/ref/compiled/0.10.31/linux/arm/binding.node at bindings (/home/root/jp.necds.websharing/node_modules/ref/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/home/root/jp.necds.websharing/node_modules/ref/lib/ref.js:5:47)
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 Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/root/jp.necds.websharing/node_modules/ffi/lib/ffi.js:6:11)
at Module._compile (module.js:456:26)
Please, let me know why this error is? if some one has any idea about this.
Regards Sanjay Sharma