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

Error: dlopen failed: library "libstdc++.so.6" not found #23

Open
dannygt2003 opened this issue Oct 3, 2019 · 1 comment
Open

Error: dlopen failed: library "libstdc++.so.6" not found #23

dannygt2003 opened this issue Oct 3, 2019 · 1 comment

Comments

@dannygt2003
Copy link

Tried out the node js for mobile samples, specifically, use native module with node folder. Built the project in the Android studio on mac machine by following the steps, and add the sqlite3 reference in the main.js. The sqlite3 is downloaded from npm. The app failed with the error Error: dlopen failed: library "libstdc++.so.6" not found.

How to resolve the issue?

@jaimecbernardo
Copy link
Member

Hi @dannygt2003 ,

Here's the response from gitter.

Modules containing native code are supported by default in the plugins, but outside the plugins there's not set method to build the native modules for the target platforms. The method from the plugins is not supported on Windows 10: https://code.janeasystems.com/nodejs-mobile/faq#are-nodejs-native-modules-supported
There's some discussion for WSL in: JaneaSystems/nodejs-mobile#4
There are samples which use sqlite3 in one of the plugins in: https://github.com/JaneaSystems/nodejs-mobile-samples/tree/651937e419bf1c82fda1f06e8f9c828d5df86fbc/cordova/UseNativeModules and https://github.com/JaneaSystems/nodejs-mobile-samples/tree/651937e419bf1c82fda1f06e8f9c828d5df86fbc/react-native/UseNativeModules

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