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

Doesn't work on Windows 10 x64 #29

Closed
eli-rich opened this issue Sep 12, 2017 · 13 comments
Closed

Doesn't work on Windows 10 x64 #29

eli-rich opened this issue Sep 12, 2017 · 13 comments

Comments

@eli-rich
Copy link

Using this code:

const ioHook = require('iohook');
 
ioHook.on("mousemove", event => {
  console.log(event);
});
 
ioHook.start();

I get this error:

module.js:598
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\Users\Eli\Desktop\!NODEJS\node_modules\iohook\builds\node-v51-win32-x64\build\Release\iohook.node
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\Eli\Desktop\!NODEJS\node_modules\iohook\index.js:16:21)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
@Djiit
Copy link
Collaborator

Djiit commented Sep 18, 2017

Hi there, could you please specify your node/npm/yarn version so we can help ?

@eli-rich
Copy link
Author

@Djiit Node 7.7.4 NPM 4.1.2

@Earl-Brown
Copy link

I'm getting the same issue with NPM 4.0.5 and node 7.4.0. The file exists, so I'm guessing there's probably a load issue. Perhaps it's compiled for 32-bit and the attempt is to load it into a 64-bit OS?

@xobotyi
Copy link

xobotyi commented Oct 12, 2017

Same stuff.

Node: 8.6.0

During build had one warning:

"C:\Users\a.zinoviev\Desktop\iohook-master\build\ALL_BUILD.vcxproj" (целевой объект по умолчанию) (1) ->
"C:\Users\a.zinoviev\Desktop\iohook-master\build\iohook.vcxproj" (целевой объект по умолчанию) (8) ->
(Целевой объект ClCompile) ->
C:\Users\a.zinoviev.cmake-js\node-x64\v8.6.0\include\node\node.h(625): warning C4251: 'node::CallbackScope::try_catch_': class 'v8::TryCatch' needs to have dll-interface to be used by clients of class 'node::
CallbackScope' [C:\Users\a.zinoviev\Desktop\iohook-master\build\iohook.vcxproj]

Предупреждений: 1
Ошибок: 0

@xobotyi
Copy link

xobotyi commented Oct 12, 2017

Quick solution:
Put the uiohook.dll near the iohook.node file. Solved problem for me

@Earl-Brown
Copy link

Where do I find uiohook.dll?

@xobotyi
Copy link

xobotyi commented Oct 12, 2017

@Earl-Brown in the build directory. i'm building iohook on my own for Windows.

@Earl-Brown
Copy link

Ah...do you have instructions for doing that? I didn't see any in the readme.

@xobotyi
Copy link

xobotyi commented Oct 12, 2017

I'm going to iohook/libuiohook dir and making there over MinGW:

./bootstrap.sh
./configure
make && make install

then going to iohook dir and making over default Windows cmd:

cmake-js rebuild -r="electron" -v="1.7.9" -a="x64"
buld will be at iohook/build/Release directory

@Earl-Brown
Copy link

I'll have to try that. Probably take a while because of setup stuff. Do you think that would build for Node 8+?

@tobeorla
Copy link

@Earl-Brown did you succeed? could you share the resulting .dll?

@Earl-Brown
Copy link

No progress - work got in the way, and I found a close-enough alternative for now.

@Djiit
Copy link
Collaborator

Djiit commented Dec 11, 2017

Hi @Earl-Brown , could you elaborate on the alternative you found ?

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants