-
Notifications
You must be signed in to change notification settings - Fork 293
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
Update cmake-js with fork #157
Conversation
Building iohook for Electron v4 is going to require some updates to `cmake-js`, some of which haven't been merged yet. This PR change the branch to one that merged those PRs. Note:: DO NOT MERGE THIS PR IN IT'S CURRENT FORM. If we're going with a fork we should have it be based off wilix-team's repo instead of mine.
@Djiit Have you had a chance to try this out yet? |
Nope, still no windows machine right now. I'll try tonight |
"version": "0.4.1", deploy Ok. extract but in electron: |
Did you actually build from this branch or just use a pre-built version built from CI? |
I build from wilix-team/iohook#master i try this commit too |
I'd be happy to give this a try on Win64. Do I need to just point my node module at this particular branch or will it require that I actually build this and have tools instead such as cmake / visual studio / etc? |
Ok here is where I am at. I cloned iohook repo. I manually added in this patch...its one line that adjusts CMAKE. I then performed npm install Which gave me the following output. `
[ 'C:\Program Files\nodejs\node.exe', Checking Build System ` I copied over the iohook.node and uiohook.dll from the build/Release folder into my Electron App here: node_modules\iohook\builds\electron-v69-win32-x64\build\Release Then I tried to launch my electron app and got this error:
Quick search of internet shows that we are mismatched on versions from what I compiled to what node is wanting it seems. It's getting late so I'll have to try again tomorrow. Any suggestions? |
Hi there, I just tried a But with no luck. I still get the "Module did not self register" error. Can someone else test it out ? I might have done something wrong. |
Same here, build works fine (with some warnings), but i have same error running in electron: Module did not self register
|
Thanks @Djiit . I just ran your command. It compiled again just fine. For fun I tried running the "demo_hook.exe" and even that gives the Module did not self-register. For good measure I also copied it to my own electron project but got the same error. |
Thanks all for your tests. It seems that using this cmake-js version is not enough. I did one more test : I'm able to build a working version for Electron 3, so cmake-js is definetely working but we might be missing something on our side. |
Got it ! We needed to explicitely list this new cpp file (see: cmake-js/cmake-js@bb82c63) |
It's now resolved and available in 0.4.2. Could you please test it ? I've forked your cmake-js repo under another org, as I can't create another repo here and I can't reach and wilix team member. |
Nice! 0.4.2 run perfectly in electron 4 / win |
Solved in #159 |
Works great for me too! |
Building iohook for Electron v4 is going to require some updates to
cmake-js
, some of which haven't been merged yet. This PR change the branch to one that merged those PRs.Note:: DO NOT MERGE THIS PR IN ITS CURRENT FORM.
If we're going with a fork we should have it be based off wilix-team's repo instead of mine.