Open dannygt2003 opened 4 years ago
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: https://github.com/JaneaSystems/nodejs-mobile/issues/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
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?