-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Uncaught Error: libsqlcipher.so.0: cannot open shared object file: No such file or directory. #2732
Comments
node-sqlite3 doesn't provide prebuilt binaries and so, you can build app only on the target platform. Do build for Linux on Linux? |
Yes I'm building for a linux dist on my local ubuntu machine. Do the shared libraries get bundled in the asar? |
No. You should bundle it somehow. What do you use — AppImage or Snap? |
My target for Is there a recommended solution to include shared libs in a cross platform way?
|
Got your error. So, it is definitely not your misconfiguration or user error. Please try to copy shared lib ( I hope this hint will help you. Please set debug env |
Do know where to grab |
I have the location for the Do I place the dll files in |
I guess sqlite3 binary for windows is static. You only need this for Linux (and maybe for macOS). That's why "under the field linux" |
Using extraFiles configuration under the field linux in package.json for copying the library file it works. thank you. |
sorry, using |
@pasupathy1611 extraFiles will be supported again in next 20.15.0 version. |
I have seen many opened and closed issues redirecting to here, but I didn't find a clear example to figure out how to proceed with this. @develar Could you provide a good example? |
@slorenzo adding this to {
"build": {
"linux": {
"target": [
"Appimage",
"snap"
],
"extraFiles": [
{
"from": "/usr/lib/x86_64-linux-gnu/libhogweed.so.4",
"to": "usr/lib/libhogweed.so.4"
},
{
"from": "/usr/lib/x86_64-linux-gnu/libnettle.so.6",
"to": "usr/lib/libnettle.so.6"
}
]
}
}
}
The AppImage layout looks like this when extracted with
|
Is there any way to include the sqlcipher shared object in the build config.
I’m using https://github.com/mapbox/node-sqlite3 SQLCipher with --build-from-source and also attached the build property.
build.txt
The text was updated successfully, but these errors were encountered: