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

Dynamic libraries are not enabled for embedded interpreter #250

Open
expscience opened this issue Nov 30, 2023 · 3 comments
Open

Dynamic libraries are not enabled for embedded interpreter #250

expscience opened this issue Nov 30, 2023 · 3 comments

Comments

@expscience
Copy link

expscience commented Nov 30, 2023

Everything was good until I've tried to debug 'requiring' my dll. Debug fails after with exit status 4294967295 and message "error loading module from file. Dynamic libraries not enabled; check your lua installation".
Extension strongly needs to support interpreter setting, or config. Or a way to enable dynamic libs.

@satoren
Copy link
Owner

satoren commented Dec 4, 2023

The built-in lua interpreter is built in wasm and runs on node js, so it cannot load DLLs.

I know I am not explaining it well enough, but see here.

@expscience
Copy link
Author

The built-in lua interpreter is built in wasm and runs on node js, so it cannot load DLLs.

I know I am not explaining it well enough, but see here.

Ok, I see info about wasm WebAssembly/proposals#42 . But next question is: If DLL usage is impossible, is it possible to add setting to use external interpreter via system path?

@satoren
Copy link
Owner

satoren commented Dec 4, 2023

Yes, Install the debugging module by luarocks or integrate the C++ code into the host program. (C++ compiler is required)
https://github.com/satoren/LRDB#code

Please note this issue.

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

2 participants