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

Electron 4 support? #144

Closed
anhang opened this issue Feb 12, 2019 · 12 comments
Closed

Electron 4 support? #144

anhang opened this issue Feb 12, 2019 · 12 comments
Labels
help Actively soliciting contributions to help complete this work

Comments

@anhang
Copy link

anhang commented Feb 12, 2019

Any chance we can get electron 4 (electron-v69) support?

@anhang anhang changed the title Electron 4 + Node 69 support Electron 4 support? Feb 13, 2019
@kolnogorov
Copy link

kolnogorov commented Feb 18, 2019

I agree, now it doesn't work with actual Electron/Node.js versions at all.
What should we do, downgrade Electron or there are any better ways to get it to work?
At least, it would be great if you'll provide proper instructions how to manually build iohook under Electron 4, because it throws a lot of errors for now.

Thank you!

@Djiit
Copy link
Collaborator

Djiit commented Feb 18, 2019

Hi there, I did try to make prebuilt binaries for electron 4 but I hit some bugs.
I'll try to find some time to re-test it.
However the build is the same as describe in the docs

@Djiit
Copy link
Collaborator

Djiit commented Feb 18, 2019

Nope, it's clearly out of my knowledge.
I Did some tests on travis : just adding the new target (electron 4.0.5, abi 69) got me an error :

[ 87%] Building CXX object CMakeFiles/iohook.dir/src/iohook.cc.o
In file included from /home/travis/build/wilix-team/iohook/src/iohook.h:3:0,
                 from /home/travis/build/wilix-team/iohook/src/iohook.cc:1:
/home/travis/build/wilix-team/iohook/node_modules/nan/nan.h:24:26: fatal error: node_version.h: No such file or directory
 #include <node_version.h>

Any C++ dev here ?

@Djiit Djiit added the help Actively soliciting contributions to help complete this work label Feb 18, 2019
@Djiit
Copy link
Collaborator

Djiit commented Feb 18, 2019

@DCzajkowski can you help us here ? thanks !

@anoadragon453
Copy link
Contributor

anoadragon453 commented Feb 19, 2019

Well I've tried messing about with this for about 2 hours and haven't figured out a fix. I tried switching all the dependencies to nan v2.12.1 but that hasn't solved it (we've had nan troubles in the past, but seems to just be a red herring).

Search engines don't bring much luck.

Darn you node_version.h!

Edit: Eh, or maybe nan just isn't updated to support Electron v4.x.x yet?

@anoadragon453
Copy link
Contributor

Some insight: electron/electron#17072 (comment)

@Djiit
Copy link
Collaborator

Djiit commented Feb 20, 2019 via email

@anoadragon453
Copy link
Contributor

Is c++11 not backwards compatible with c++99? I can start with what you've said. I really wanna get this working on Electron v4 for inclusion into https://github.com/vector-im/riot-web :D

@anoadragon453
Copy link
Contributor

anoadragon453 commented Feb 21, 2019

So bumping cmake-js to "^5.1.0" seems to make it all just work???

Edit: Seems so.

@Djiit
Copy link
Collaborator

Djiit commented Feb 21, 2019 via email

@anoadragon453
Copy link
Contributor

#148

@DCzajkowski
Copy link
Contributor

Hey @Djiit, sorry for being so late to the party. I would really like to help, but unfortunately I have no clue how. The only thing I can do is wish you good luck :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Actively soliciting contributions to help complete this work
Projects
None yet
Development

No branches or pull requests

5 participants