-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Electron: libvips-cpp.42.dylib image not found mac osx build #678
Comments
Hello, were you following the instructions at https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md ? |
Hi Lovell, |
Thanks for the update. binding.js#L32 places pre-compiled binaries in the binding.gyp#L141-L142 sets the runtime location for My best guess is that Electron on OS X is using non-standard locations. |
I'm having the same issue. I'm on a Mac, Node 6.9.1, NPM 3.10.8, sharp 0.17.1 My app works locally with sharp. After using electron-builder to generate the Mac dist of my app, when I run it on a machine without libvips installed through brew, I get.
Which makes sense.. I think, since libvips can't be found. I'd hoped the pre-built versions inside node_modules/sharp would cover it. Before creating the dist, I made sure to use Compiling native modules is new to me, I know you don't explicitly support electron but would love any insight you have. |
The appearance of From v0.17.x onwards you'll see the |
node: 7.4.0 npm: 4.0.5 .. problem occurs with asar file option (asar: true) we need to use the asar option .. electron-builder claims to automate native module building |
it the seems the workaround for mac is to use Electron-builder and the asarUnpack option: |
I ended up here because I have the same problem when running
to my package.json seems to solve the problem, yarn dist works, the application starts, and sharp works. But since I don't understand fully the implications, I am a bit unsure of using it in production |
Im still having this problem with Electron and unpacking the sharp module solution is not working any one has any other ideas ? |
@adhambadr You can try build the app without asar. |
ELECTRON_ASAR.js:173 Uncaught Error:
dlopen(/var/folders/rt/7f85090559l9jxmyt06cd_7w0000gn/T/.org.app.4Y18VM, 1): Library not loaded: @rpath/libvips-cpp.42.dylib
Referenced from: /var/folders/rt/7f85090559l9jxmyt06cd_7w0000gn/T/.org.app.4Y18VM
Reason: image not found
i get this when trying to build on electron (electron-builder).... not sure what image its looking for
The text was updated successfully, but these errors were encountered: