samick17 / windows-automator-lib

This is the wrapper of windows-OS mouse/keyboard API implemented in C++.Wrapped in NodeJs
MIT License
3 stars 1 forks source link

unable to install in latest node versions #6

Open duvemula opened 1 year ago

duvemula commented 1 year ago

Hi @samick17,

Could you please add support for latest node versions.

I was trying to build it for latest node versionsbut got some syntax errors.

Please let share the rebuild process fpr latest node versions, I will try my end

Regards, Durga Prasad

samick17 commented 1 year ago

Hi @duvemula , I have updated the required package node-abi-version to 1.2.12. Here are the build steps. https://github.com/samick17/windows-automator-lib/blob/master/README.md#build-the-package

Thanks for your feedback!

Samick.Hsu

duvemula commented 1 year ago

Hi @samick17, I am getting some compilation error in windows-automator-lib.cc. :\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(61,1): error C2660: 'v8::Value::ToInteger': function does not take 0 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] C:\Users\durga\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(379,45): message : see declaration of 'v8::Value::ToInteger' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(73,1): error C2661: 'v8::Object::Get': no overloaded function takes 1 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(88,1): error C2661: 'v8::Object::Get': no overloaded function takes 1 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(99,1): error C2660: 'v8::Value::ToString': function does not take 0 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] C:\Users\durga\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(360,44): message : see declaration of 'v8::Value::ToString' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(107,1): error C2660: 'v8::Value::ToString': function does not take 0 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] C:\Users\durga\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-value.h(360,44): message : see declaration of 'v8::Value::ToString' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(120,1): error C2440: 'return': cannot convert from 'v8::MaybeLocal' to 'v8::Local' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(120,1): message : No constructor could take the source type, or constructor overload resolution was ambiguous [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(123,1): error C2440: 'return': cannot convert from 'v8::MaybeLocal' to 'v8::Local' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(123,1): message : No constructor could take the source type, or constructor overload resolution was ambiguous [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(135,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(143,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(149,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(150,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(155,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(156,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(161,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(162,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(163,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(164,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(169,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(170,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(171,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(180,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(181,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(182,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(192,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(193,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(194,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(202,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(208,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(209,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(210,1): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(215,1): error C2664: 'v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot convert argument 1 from 'v8::Local' to 'const v8::String::Utf8Value &' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(215,1): message : Reason: cannot convert from 'v8::Local' to 'const v8::String::Utf8Value' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] D:\Automation\New folder\windows-automator-lib\src\win-automator-lib.cc(215,38): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj] C:\Users\durga\AppData\Local\node-gyp\Cache\18.13.0\include\node\v8-primitive.h(517,5): message : see declaration of 'v8::String::Utf8Value::Utf8Value' [D:\Automation\New folder\windows-automator-lib\build\Automator.vcxproj]

Could you please help me

vemulaprasadvialto commented 1 year ago

Hi @samick17, Could you please build the code to support latest node versions.

samick17 commented 1 year ago

Hello, Thanks for your feedback. Unfortunately, I have changed my operating-system from windows to Linux and MacOS few years ago.

Samick