-
Notifications
You must be signed in to change notification settings - Fork 287
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
[docs] Electron apps - undefined symbol __cxa_pure_virtual #394
Comments
Does the example work for you? |
@mitchhentges the versions for the current electron-quickstart should be the follwing, since you use
|
Using
Hmm 🤔 |
@mitchhentges electron comes with a chromium to render the content, no worries. I don't have the time to test the issue currently (currently moving into a new flat) if i find some time at work i will try it though. |
Related: neon-bindings/examples#30 |
If someone is interested, I solved the issue by doing what someone did in this post : https://users.rust-lang.org/t/neon-electron-undefined-symbol-cxa-pure-virtual/21223
I added this piece of code in my native/src/lib.rs file, rebuilt the project, and it worked for me. |
@theJian does neon-bindings/examples#30 resolve this issue? |
@amilajack It doesn't. |
@mitchhentges It looks like you are using Linux from your screenshot. Have you tested on other platforms? |
Any updates on this? Cannot run referenced example, but really interested in getting started with electron + neon |
Well I've tried solution with defining missing fn as suggested by @MeryllEssig but now it has undefined symbols like _ZN12v88Function3.. and so on |
@fominok Happened to me when I didn't build with |
Duplicate of #409 |
Re-opening this issue. It is not a duplicate. It's caused by a missing |
@kjvalencik Hello, is this issue fixed? I've just downloaded examples and trying to start electron-app even with neon-cli dependency bumped to 0.3.3 and still receiving this error |
Yes, it should be fixed. There is an electron test that can be used as an example. The rust neon crate needed to be bumped as well. https://github.com/neon-bindings/neon/tree/master/test/electron |
@kjvalencik thank you for the fast reply |
Hello. I just tried this on Linux (Ubuntu 18.04), and this still fails with the same error. I'm using the latest neon (0.3.3) and Edit: |
@adityapk00 That's likely an issue in the examples repo (for example, it's using an older cli version). Can you open an issue there? Thanks! |
This was needed because of a upstream issue of neon. The issue has since been fixed so no need for it anymore. Upstream issue: neon-bindings/neon#394.
Hey, I'm learning how to set up
neon
here, and I'm running into an issue where, upon launching electron, I get the error:undefined symbol: __cxa_pure_virtual
.FWIW, I followed the documentation here.
I found #194, but I've interpreted it as the ticket for integrating with
electron-rebuild
, and that theelectron-build-env
process was already functional? 🤔 😄To reproduce:
git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm i neon-hello
npm i electron-build-env neon-cli --save-dev
$(npm bin)/neon build neon-hello
main.js
, addingrequire('neon-hello')
to the topnpm start
The text was updated successfully, but these errors were encountered: