charto / nbind

:sparkles: Magical headers that make your C++ library accessible from JavaScript :rocket:
MIT License
1.98k stars 119 forks source link

sample app refuses to run #139

Open unxed opened 4 years ago

unxed commented 4 years ago

Hello and thanks for your great work!

I am trying to build turbo vision TUI framework binding for node with nbind. Followed the vg instruction and finally got my build done. But js code fails with the following error:

$ ./test.js
internal/modules/cjs/loader.js:807
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: /home/unxed/far2l/!!next/!!node-cli/nbind/git/project/build/Release/nbind.node: undefined symbol: _ZN8TProgram7deskTopE
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at initNode (/home/unxed/far2l/!!next/!!node-cli/nbind/git/project/node_modules/nbind/dist/nbind.js:141:15)
    at /home/unxed/far2l/!!next/!!node-cli/nbind/git/project/node_modules/nbind/dist/nbind.js:115:13
    at findCompiledModule (/home/unxed/far2l/!!next/!!node-cli/nbind/git/project/node_modules/nbind/dist/nbind.js:79:13)
    at find (/home/unxed/far2l/!!next/!!node-cli/nbind/git/project/node_modules/nbind/dist/nbind.js:93:13)

Can you please suggest me the directions for further work? Thanks!