Coder Social home page Coder Social logo

farafonov-alexey / node-atol-wrapper Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 17.0 95.41 MB

Node.js обертка для ДТО версии 10 компании АТОЛ

License: MIT License

Python 1.81% JavaScript 1.03% C++ 8.93% C 61.78% Objective-C 26.45%
atol ecr node wrapper

node-atol-wrapper's People

Contributors

adigezalov avatar dependabot[bot] avatar eustatos avatar farafonov-alexey avatar msotnikov avatar pbardov avatar squalsoft avatar vladdevops avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

node-atol-wrapper's Issues

Ошибка сборки на Windows x32 на nw.js

Добрый день. Возникает ошибка сборки на Windows X32 (собираем на Windows 10) командой

nw-gyp rebuild --target=0.68.0 --msvs_version=2019 --target_arch=ia32 --arch=ia32

Ошибка
Ошибка печати отчета: The specified module could not be found.
\?\C:\Users\Sergey\AppData\Local\Temp\nw3788_752068364\node_modules\node-atol-wrapper\build\Release\node_atol_wrapper.node (код ERR_DLOPEN_FAILED)

на 10-ке и 11 работает нормально.

Вылетает ошибка is not a valid Win32 application

  • Preparing native dependencies: 0 / 1gyp info find Python using Python version 3.9.2 found at "C:\Python39\python.exe"
    \ Preparing native dependencies: 0 / 1gyp info find VS using VS2017 (15.9.28307.1440) found at:
    gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
    gyp info find VS run with --verbose for detailed information
    gyp info spawn C:\Python39\python.exe
    gyp info spawn args [
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\node-gyp\gyp\gyp_main.py',
    gyp info spawn args 'binding.gyp',
    gyp info spawn args '-f',
    gyp info spawn args 'msvs',
    gyp info spawn args '-I',
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\config.gypi',
    gyp info spawn args '-I',
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\node-gyp\addon.gypi',
    gyp info spawn args '-I',
    gyp info spawn args 'C:\Users\muadd\.electron-gyp\12.0.1\include\node\common.gypi',
    gyp info spawn args '-Dlibrary=shared_library',
    gyp info spawn args '-Dvisibility=default',
    gyp info spawn args '-Dnode_root_dir=C:\Users\muadd\.electron-gyp\12.0.1',
    gyp info spawn args '-Dnode_gyp_dir=D:\git_evator\cashreg\node_modules\node-gyp',
    gyp info spawn args '-Dnode_lib_file=C:\\Users\\muadd\\.electron-gyp\\12.0.1\\<(target_arch)\\node.lib',
    gyp info spawn args '-Dmodule_root_dir=D:\git_evator\cashreg\node_modules\node-atol-wrapper',
    gyp info spawn args '-Dnode_engine=v8',
    gyp info spawn args '--depth=.',
    gyp info spawn args '--no-parallel',
    gyp info spawn args '--generator-output',
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\node-atol-wrapper\build',
    gyp info spawn args '-Goutput_dir=.'
    gyp info spawn args ]
    | Preparing native dependencies: 0 / 1gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
    gyp info spawn args [
    gyp info spawn args 'build/binding.sln',
    gyp info spawn args '/clp:Verbosity=minimal',
    gyp info spawn args '/nologo',
    gyp info spawn args '/p:Configuration=Release;Platform=x64',
    gyp info spawn args map: [Function (anonymous)]
    gyp info spawn args ]
    / Preparing native dependencies: 0 / 1Выполняется последовательная сборка проектов в этом решении. Чтобы включить параллельную сборку, добавьте параметр "/m".
    \ Preparing native dependencies: 0 / 1 Copying D:\git_evator\cashreg\node_modules\node-atol-wrapper/src/win-x64/fptr10.dll to D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\Release
    Скопировано файлов: 1.
    Copying D:\git_evator\cashreg\node_modules\node-atol-wrapper/src/win-x64/msvcp140.dll to D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\Release
    Скопировано файлов: 1.
    Copying D:\git_evator\cashreg\node_modules\node-atol-wrapper/src/win-x64/fptr10.lib to D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\Release
    Скопировано файлов: 1.
  • Preparing native dependencies: 0 / 1 index.cc
    / Preparing native dependencies: 0 / 1c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1650): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
    c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1632): note: см. объявление "v8::Module::ResolveCallback"
    \ Preparing native dependencies: 0 / 1 fptr10.cc
    / Preparing native dependencies: 0 / 1c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1650): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
    c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1632): note: см. объявление "v8::Module::ResolveCallback"
    / Preparing native dependencies: 0 / 1 utils.cc
    \ Preparing native dependencies: 0 / 1c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1650): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
    c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1632): note: см. объявление "v8::Module::ResolveCallback"
    \ Preparing native dependencies: 0 / 1 json_worker.cc
    | Preparing native dependencies: 0 / 1c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1650): warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback [D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
    c:\users\muadd.electron-gyp\12.0.1\include\node\v8.h(1632): note: см. объявление "v8::Module::ResolveCallback"
    | Preparing native dependencies: 0 / 1 win_delay_load_hook.cc
    / Preparing native dependencies: 0 / 1 ╤ючфрхЄё  сшсышюЄхър D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\Release\node_atol_wrapper.lib ш юс·хъЄ D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\Release\node_atol_wrapper.exp
  • Preparing native dependencies: 0 / 1 ╤ючфрэшх ъюфр
  • Preparing native dependencies: 0 / 1 All 757 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
    ╤ючфрэшх ъюфр чртхЁ°хэю
    | Preparing native dependencies: 0 / 1 node_atol_wrapper.vcxproj -> D:\git_evator\cashreg\node_modules\node-atol-wrapper\build\Release\node_atol_wrapper.node
  • Preparing native dependencies: 1 / 2gyp info find Python using Python version 3.9.2 found at "C:\Python39\python.exe"
    | Preparing native dependencies: 1 / 2gyp info find VS using VS2017 (15.9.28307.1440) found at:
    gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
    gyp info find VS run with --verbose for detailed information
    gyp info spawn C:\Python39\python.exe
    gyp info spawn args [
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\node-gyp\gyp\gyp_main.py',
    gyp info spawn args 'binding.gyp',
    gyp info spawn args '-f',
    gyp info spawn args 'msvs',
    gyp info spawn args '-I',
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\shtrih-m-js\build\config.gypi',
    gyp info spawn args '-I',
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\node-gyp\addon.gypi',
    gyp info spawn args '-I',
    gyp info spawn args 'C:\Users\muadd\.electron-gyp\12.0.1\include\node\common.gypi',
    gyp info spawn args '-Dlibrary=shared_library',
    gyp info spawn args '-Dvisibility=default',
    gyp info spawn args '-Dnode_root_dir=C:\Users\muadd\.electron-gyp\12.0.1',
    gyp info spawn args '-Dnode_gyp_dir=D:\git_evator\cashreg\node_modules\node-gyp',
    gyp info spawn args '-Dnode_lib_file=C:\\Users\\muadd\\.electron-gyp\\12.0.1\\<(target_arch)\\node.lib',
    gyp info spawn args '-Dmodule_root_dir=D:\git_evator\cashreg\node_modules\shtrih-m-js',
    gyp info spawn args '-Dnode_engine=v8',
    gyp info spawn args '--depth=.',
    gyp info spawn args '--no-parallel',
    gyp info spawn args '--generator-output',
    gyp info spawn args 'D:\git_evator\cashreg\node_modules\shtrih-m-js\build',

App threw an error during load
Error: node-loader:
Error: D:\git_evator\cashreg.webpack\main/12b0a5c2780f1aae5c7e704395e33c4a.node is not a valid Win32 application.
D:\git_evator\cashreg.webpack\main/12b0a5c2780f1aae5c7e704395e33c4a.node
at Object. (D:\git_evator\cashreg.webpack\main\index.js:6940:9)
at Object../node_modules/node-atol-wrapper/build/Release/node_atol_wrapper.node (D:\git_evator\cashreg.webpack\main\index.js:6943:30)
at webpack_require (D:\git_evator\cashreg.webpack\main\index.js:21:30)
at Object../node_modules/node-atol-wrapper/bindings.js (D:\git_evator\cashreg.webpack\main\index.js:6923:17)
at webpack_require (D:\git_evator\cashreg.webpack\main\index.js:21:30)
at Object../src/native/atolIpc.ts (D:\git_evator\cashreg.webpack\main\index.js:19006:12)
at webpack_require (D:\git_evator\cashreg.webpack\main\index.js:21:30)
at Object../src/index.ts (D:\git_evator\cashreg.webpack\main\index.js:18713:17)
at webpack_require (D:\git_evator\cashreg.webpack\main\index.js:21:30)
at D:\git_evator\cashreg.webpack\main\index.js:85:18
webpack built 30cb827c62990537f151 in 29423ms

Это не единственный модуль который у меня собирается, с остальными все нормально.

Не собирается на Raspberry

Добрый день! Сегодня попробовал поставить кассу на Raspberry, но к сожалению, не ставится ваш модуль через npm install. Вылетает ошибка gyp. Я так понял, что это связано с архитектурой arm, которой нет в настройках?

Поддержка версии 10.9.0.0

Здравствуйте. Вышла новая версия драйвера 10.9.0.0 с поддержкой ФФД 1.2.
Подскажите когда обновите пакет?

build windows ia32 "error : undefined symbol"

Добрый день.

Ошибка при сборки модуля для ia32 на windows
Собираю через nw-gyp v3.6.5
node -v v14.0.0

Подскажите пожалуйста в чем возможна ошибка?

lld-link : error : undefined symbol: __imp__libfptr_create [C:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
  >>> referenced by C:\project\node_modules\node-atol-wrapper\src\fptr10.cc:74
  >>>               Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::Create(class Nan::FunctionCallbackInfo<class v
  8::Value> const &))

lld-link : error : undefined symbol: __imp__libfptr_is_opened [C:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj
]
  >>> referenced by C:\project\node_modules\node-atol-wrapper\src\fptr10.cc:140
  >>>               Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::IsOpened(class Nan::FunctionCallbackInfo<class
   v8::Value> const &))
Полный вывод С:\project>nw-gyp rebuild --target=0.45.4 --arch=ia32 --msvs_version=2015 --directory=node_modules/node-atol-wrapper

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info chdir node_modules/node-atol-wrapper
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [
gyp info spawn args 'C:\Roaming\npm\node_modules\nw-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'D:\project\nwjs_mp\node_modules\node-atol-wrapper\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Roaming\npm\node_modules\nw-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\PC\.nw-gyp\0.45.4\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\PC\.nw-gyp\0.45.4',
gyp info spawn args '-Dnode_gyp_dir=C:\Roaming\npm\node_modules\nw-gyp',
gyp info spawn args '-Dnode_lib_file="C:\PC\.nw-gyp\0.45.4\<(target_arch)\node.lib"',
gyp info spawn args '-Dnw_lib_file="C:\PC\.nw-gyp\0.45.4\<(target_arch)\nw.lib"',
gyp info spawn args '-Dmodule_root_dir=D:\project\nwjs_mp\node_modules\node-atol-wrapper',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '-Dv13=1',
gyp info spawn args '--generator-output',
gyp info spawn args 'D:\project\nwjs_mp\node_modules\node-atol-wrapper\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:CLToolExe=clang-cl.exe',
gyp info spawn args '/p:LinkToolExe=lld-link.exe',
gyp info spawn args '/p:CLToolPath=C:\Roaming\npm\node_modules\nw-gyp\clang',
gyp info spawn args '/p:LinkToolPath=C:\Roaming\npm\node_modules\nw-gyp\clang',
gyp info spawn args '/p:Configuration=Release;Platform=Win32'
gyp info spawn args ]

Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".

Copying С:\project\node_modules\node-atol-wrapper/src/win-x64/fptr10.lib to С:\project\node_modules\node-atol-wrapper\build\Re
lease\fptr10.lib
Скопировано файлов: 1.
Copying С:\project\node_modules\node-atol-wrapper/src/win-x64/msvcp140.dll to С:\project\node_modules\node-atol-wrapper\build
Release\msvcp140.dll
Скопировано файлов: 1.
Copying С:\project\node_modules\node-atol-wrapper/src/win-x64/fptr10.dll to С:\project\node_modules\node-atol-wrapper\build\Re
lease\fptr10.dll
Скопировано файлов: 1.

clang-cl : warning : argument unused during compilation: '/MP' [-Wunused-command-line-argument] [С:\project\node_modules\node-atol-wrapp
er\build\node_atol_wrapper.vcxproj]
clang-cl : warning : argument unused during compilation: '/Gm-' [-Wunused-command-line-argument] [С:\project\node_modules\node-atol-wrap
per\build\node_atol_wrapper.vcxproj]

lld-link : error : undefined symbol: __imp__libfptr_create [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:74
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::Create(class Nan::FunctionCallbackInfo<class v
8::Value> const &))

lld-link : error : undefined symbol: __imp__libfptr_is_opened [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj

]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:140
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::IsOpened(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_destroy [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:82
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::Destroy(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_get_settings [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxp

roj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:89
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::GetSettings(class Nan::FunctionCallbackInfo const &))
referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:93
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::GetSettings(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_set_settings [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxp

roj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:120
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::SetSettings(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_open [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:132
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::Open(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_close [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:147
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::Close(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_set_param_str [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx

proj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:168
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::ProcessJson(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_process_json [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxp

roj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:170
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::ProcessJson(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_get_param_str [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx

proj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:174
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::ProcessJson(class Nan::FunctionCallbackInfo const &))
referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:178
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::ProcessJson(class Nan::FunctionCallbackInfo const &))
referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:270
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FindLastDocument(class Nan::FunctionCallbackIn
fo const &))
referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:274
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FindLastDocument(class Nan::FunctionCallbackIn
fo const &))

lld-link : error : undefined symbol: __imp__libfptr_set_param_int [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx

proj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:249
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FnReport(class Nan::FunctionCallbackInfo const &))
referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:251
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FnReport(class Nan::FunctionCallbackInfo const &))
referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:261
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FindLastDocument(class Nan::FunctionCallbackIn
fo const &))

lld-link : error : undefined symbol: __imp__libfptr_report [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:253
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FnReport(class Nan::FunctionCallbackInfo const &))

lld-link : error : undefined symbol: __imp__libfptr_fn_query_data [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx

proj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:263
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FindLastDocument(class Nan::FunctionCallbackIn
fo const &))

lld-link : error : undefined symbol: __imp__libfptr_get_param_int [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx

proj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:267
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FindLastDocument(class Nan::FunctionCallbackIn
fo const &))

lld-link : error : undefined symbol: __imp__libfptr_get_param_datetime [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrappe

r.vcxproj]

referenced by С:\project\node_modules\node-atol-wrapper\src\fptr10.cc:279
Release\obj\node_atol_wrapper\fptr10.obj:(public: static void __cdecl Fptr10::FindLastDocument(class Nan::FunctionCallbackIn
fo const &))

lld-link : error : undefined symbol: __imp__libfptr_error_code [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxpro

j]

referenced by С:\project\node_modules\node-atol-wrapper\src\utils.cc:19
Release\obj\node_atol_wrapper\utils.obj:(bool __cdecl checkErrorString(void *, int, int &, class std::basic_string<char, str
uct std::char_traits, class std::allocator> &))

lld-link : error : undefined symbol: __imp__libfptr_error_description [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper

.vcxproj]

referenced by С:\project\node_modules\node-atol-wrapper\src\utils.cc:22
Release\obj\node_atol_wrapper\utils.obj:(bool __cdecl checkErrorString(void *, int, int &, class std::basic_string<char, str
uct std::char_traits, class std::allocator> &))
referenced by С:\project\node_modules\node-atol-wrapper\src\utils.cc:26
Release\obj\node_atol_wrapper\utils.obj:(bool __cdecl checkErrorString(void *, int, int &, class std::basic_string<char, str
uct std::char_traits, class std::allocator> &))

lld-link : error : undefined symbol: __imp__libfptr_set_param_str [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx

proj]

referenced by С:\project\node_modules\node-atol-wrapper\src\json_worker.cc:9
Release\obj\node_atol_wrapper\json_worker.obj:(public: virtual void __thiscall JsonWorker::Execute(void))

lld-link : error : undefined symbol: __imp__libfptr_process_json [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxp

roj]

referenced by С:\project\node_modules\node-atol-wrapper\src\json_worker.cc:12
Release\obj\node_atol_wrapper\json_worker.obj:(public: virtual void __thiscall JsonWorker::Execute(void))

lld-link : error : undefined symbol: __imp__libfptr_get_param_str [С:\project\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx

proj]

referenced by С:\project\node_modules\node-atol-wrapper\src\json_worker.cc:17
Release\obj\node_atol_wrapper\json_worker.obj:(public: virtual void __thiscall JsonWorker::Execute(void))
referenced by С:\project\node_modules\node-atol-wrapper\src\json_worker.cc:21
Release\obj\node_atol_wrapper\json_worker.obj:(public: virtual void __thiscall JsonWorker::Execute(void))

gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\PC\AppData\Roaming\npm\node_modules\nw-gyp\lib\build.js:271:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Roaming\npm\node_modules\nw-gyp\bin\nw-gyp.js" "rebuild" "--
target=0.45.4" "--arch=ia32" "--msvs_version=2015" "--directory=node_modules/node-atol-wrapper"
gyp ERR! cwd С:\project\node_modules\node-atol-wrapper
gyp ERR! node -v v14.0.0
gyp ERR! nw-gyp -v v3.6.5
gyp ERR! not ok

PS для win x64, linux ia32 и linux x64, проблем не возникло, все собрал без проблем.

Не передаются данные в ОФД

Здравствуйте! Можете подсказать, почему при работе в Linux не передаются данные в ОФД? Если подключить кассу к тестовому приложению драйвера в Windows, то данные передаются, а в Linux ни в какую не хотят передаваться. Я использую способ передачи данных по EoT. Настройки такие:
settings.Port = 0; // com
settings.OfdChannel = 1; // eot
settings.ComFile = "/dev/ttyACM0";

Может, eot не работает через COM?

ARM node-gyp configure error

Доброго дня. Никак не могу собрать под arm raspberry. Если собираю на версиях ниже 12 выдает такое

Screenshot from 2019-12-24 14-13-13
А если на 12 и выше то такая

Screenshot from 2019-12-24 14-14-04

Что-то с питоном, никак не могу понять в чем причина...

Сборка для ia32 на x64 windows

Добрый день, ошибка при сборке модуля для windows ia32, собираю на windows x64.

Для сборки использую electron-rebuilder

node -v
v16.14.2
npm -v
8.11.0

Зависимости

  "devDependencies": {
    "electron": "^19.0.1",
    "electron-builder": "^23.0.3",
    "electron-is-dev": "^2.0.0"
  },
  "dependencies": {
    "electron-log": "^4.4.7",
    "electron-updater": "^5.0.1",
    "node-atol-wrapper": "git+https://github.com/vladdevops/node-atol-wrapper.git",
    "serialport": "^10.4.0"
  },

Ошибка при открытии приложения на 32-рязрадной windows, открывается на x64 системе без проблем.

Unable to load preload script: C:\Program Files\App\resources\app.asar\preload.js
(anonymous) @ VM119 renderer_init:73
VM119 renderer_init:73 Error: The specified module could not be found.
\\?\C:\Program Files\App\resources\app.asar.unpacked\node_modules\node-atol-wrapper\build\Release\node_atol_wrapper.node
   at process.func [as dlopen] (VM116 asar_bundle:5:1812)
   at Module._extensions..node (VM97 loader:1203:18)
   at Object.func [as .node] (VM116 asar_bundle:5:2039)
   at Module.load (VM97 loader:988:32)
   at Module._load (VM97 loader:829:12)
   at c._load (VM116 asar_bundle:5:13343)
   at i._load (VM119 renderer_init:33:356)
   at Module.require (VM97 loader:1012:19)
   at require (VM96 helpers:102:18)
   at Object.<anonymous> (VM175 C:\Program Files\App\resources\app.asar\node_modules\node-atol-wrapper\bindings.js:4:17)
(anonymous) @ VM119 renderer_init:73

Подскажите пожалуйста с чем может быть связанно?

Пытаюсь запустить на Electron, Cannot find module

Добрый день, пытаюсь запустить на Electron, выдает ошибку:

(node:36188) UnhandledPromiseRejectionWarning: Error: Cannot find module 'C:\git\cashreg\dist\main\package.json'
at webpackEmptyContext (C:\git\cashreg\dist\main\main.js:78275:10)
at Object../node_modules/node-atol-wrapper/node_modules/node-pre-gyp/lib/pre-binding.js.exports.find (C:\git\cashreg\dist\main\main.js:79149:123)
at Object../node_modules/node-atol-wrapper/bindings.js (C:\git\cashreg\dist\main\main.js:65361:29)
at webpack_require (C:\git\cashreg\dist\main\main.js:20:30)
at Object../app/electron/main.ts (C:\git\cashreg\dist\main\main.js:1111:21)
at webpack_require (C:\git\cashreg\dist\main\main.js:20:30)
at C:\git\cashreg\dist\main\main.js:1091:65
at processTicksAndRejections (internal/process/task_queues.js:85:5)

При размещении в другом модуле:

[00:03:04.910] INFO Electron main process is restarting...
[00:03:06.551] SUCCESS Electron main process has restarted.
[00:03:06.676] INFO null
[00:03:07.043] INFO App threw an error during load

[00:03:07.068] INFO Error: package.json does not exist at C:\git\cashreg\dist\main\package.json
at Object../node_modules/node-atol-wrapper/node_modules/node-pre-gyp/lib/pre-binding.js.exports.find (C:\git\cashreg\dist\main\main.js:79147:15)
at Object../node_modules/node-atol-wrapper/bindings.js (C:\git\cashreg\dist\main\main.js:65361:29)
at webpack_require (C:\git\cashreg\dist\main\main.js:20:30)
at Object../app/core/api/request.ts (C:\git\cashreg\dist\main\main.js:227:21)
at webpack_require (C:\git\cashreg\dist\main\main.js:20:30)
at Object../app/core/api/index.ts (C:\git\cashreg\dist\main\main.js:207:22)
at webpack_require (C:\git\cashreg\dist\main\main.js:20:30)
at Object../app/core/main.init.ts (C:\git\cashreg\dist\main\main.js:310:34)
at webpack_require (C:\git\cashreg\dist\main\main.js:20:30)
at Object../app/electron/index.ts (C:\git\cashreg\dist\main\main.js:1089:21)

Не собирается на node 12

Во-первых, огромное спасибо за модуль 👍

К сожалению, не удается запустить проект на node 12. Похоже, что все ломается на стадии node-qyp rebuild.

Если вернуться на node 10, все запускается.

Не удается поставить пакет в Windows 10 (x64)

При npm install следующая ошибка компиляции:

C:\KassMaster\node_modules\node-atol-wrapper>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Copying C:\KassMaster\node_modules\node-atol-wrapper/src/win-x64/fptr10.dll to C:\KassMaster\node_modul
es\node-atol-wrapper\build\Release\fptr10.dll
1 file(s) copied.
Copying C:\KassMaster\node_modules\node-atol-wrapper/src/win-x64/fptr10.lib to C:\KassMaster\node_modul
es\node-atol-wrapper\build\Release\fptr10.lib
1 file(s) copied.
Copying C:\KassMaster\node_modules\node-atol-wrapper/src/win-x64/msvcp140.dll to C:\KassMaster\node_mod
ules\node-atol-wrapper\build\Release\msvcp140.dll
1 file(s) copied.
index.cc
fptr10.cc
c:\kassmaster\node_modules\nan\nan_converters_43_inl.h(22): warning C4996: 'v8::Value::ToBoolean': was de
clared deprecated (compiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\b
uild\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(2523): note: see declaration of 'v8::Value::T
oBoolean' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan_converters_43_inl.h(40): warning C4996: 'v8::Value::BooleanValue': was
declared deprecated (compiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrappe
r\build\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(2561): note: see declaration of 'v8::Value::B
ooleanValue' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan_converters_43_inl.h(22): warning C4996: 'v8::Value::ToBoolean': was de
clared deprecated (compiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper
build\node_atol_wrapper.vcxproj]
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(103): error C2664: 'v8::MaybeLocal<v8::Functio
n> v8::Function::New(v8::Localv8::Context,v8::FunctionCallback,v8::Localv8::Value,int,v8::Constructor
Behavior,v8::SideEffectType)': cannot convert argument 1 from 'v8::Isolate *' to 'v8::Localv8::Context'
(compiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wr
apper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(2523): note: see declaration of 'v8::Value::T
oBoolean' (compiling source file ..\src\fptr10.cc)c:\kassmaster\node_modules\nan\nan_implementation_12_
inl.h(105): note: No constructor could take the source type, or constructor overload resolution was amb
iguous (compiling source file ..\src\index.cc)

c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(337): error C2660: 'v8::StringObject::New': fu
nction does not take 1 arguments (compiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node
-atol-wrapper\build\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(5380): note: see declaration of 'v8::StringOb
ject::New' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan_converters_43_inl.h(40): warning C4996: 'v8::Value::BooleanValue': was
declared deprecated (compiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapp
er\build\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(2561): note: see declaration of 'v8::Value::B
ooleanValue' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(337): error C2059: syntax error: ')' (compilin
g source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxp
roj]
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(103): error C2664: 'v8::MaybeLocal<v8::Functio
n> v8::Function::New(v8::Localv8::Context,v8::FunctionCallback,v8::Localv8::Value,int,v8::Constructor
Behavior,v8::SideEffectType)': cannot convert argument 1 from 'v8::Isolate *' to 'v8::Localv8::Context'
(compiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_w
rapper.vcxproj]
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(105): note: No constructor could take the so
urce type, or constructor overload resolution was ambiguous (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(337): error C2660: 'v8::StringObject::New': fu
nction does not take 1 arguments (compiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\nod
e-atol-wrapper\build\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(5380): note: see declaration of 'v8::StringOb
ject::New' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(337): error C2059: syntax error: ')' (compilin
g source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx
proj]
c:\kassmaster\node_modules\nan\nan.h(1034): error C2661: 'v8::Value::ToString': no overloaded function ta
kes 0 arguments (compiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\bui
ld\node_atol_wrapper.vcxproj]
c:\kassmaster\node_modules\nan\nan.h(1044): error C2664: 'int v8::String::WriteUtf8(v8::Isolate *,char *,
int,int *,int) const': cannot convert argument 1 from 'char *' to 'v8::Isolate *' (compiling source file
..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
c:\kassmaster\node_modules\nan\nan.h(1044): note: Types pointed to are unrelated; conversion requires r
einterpret_cast, C-style cast or function-style cast (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan.h(1034): error C2661: 'v8::Value::ToString': no overloaded function ta
kes 0 arguments (compiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\bu
ild\node_atol_wrapper.vcxproj]
c:\kassmaster\node_modules\nan\nan.h(1818): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3358): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan.h(1044): error C2664: 'int v8::String::WriteUtf8(v8::Isolate *,char *,
int,int *,int) const': cannot convert argument 1 from 'char *' to 'v8::Isolate *' (compiling source file
..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
c:\kassmaster\node_modules\nan\nan.h(1044): note: Types pointed to are unrelated; conversion requires r
einterpret_cast, C-style cast or function-style cast (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1824): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3358): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan.h(1830): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3367): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan.h(1836): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3412): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan.h(1842): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3412): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan.h(1847): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\index.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3416): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan.h(1818): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\fptr10.cc)c:\kassmaster\node_modules\nan\nan_object_wrap.h(24): error C2039: '
IsNearDeath': is not a member of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits>' [C:\Kas
sMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
with
[
T=v8::Object
] (compiling source file ..\src\index.cc)
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3358): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1824): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapp
er.vcxproj]

c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3358): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1830): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapp
er.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3367): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1836): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapp
er.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3412): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1842): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapp
er.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3412): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1847): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\fptr10.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapp
er.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3416): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1859): note: see declaration of 'Nan::Persistent<v8::Object,v8::No
nCopyablePersistentTraits>'
with
[
T=v8::Object
] (compiling source file ..\src\index.cc)c:\kassmaster\node_modules\nan\nan_object_wrap.h(24):
error C2039: 'IsNearDeath': is not a member of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTra
its>'
with
[
T=v8::Object
] (compiling source file ..\src\fptr10.cc)

c:\kassmaster\node_modules\nan\nan_object_wrap.h(67): warning C4996: 'v8::PersistentBasev8::Object::Mar
kIndependent': was declared deprecated (compiling source file ..\src\index.cc)c:\kassmaster\node_modules
nan\nan.h(1859): note: see declaration of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits>
' [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
with
[
T=v8::Object
] (compiling source file ..\src\fptr10.cc)

c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(563): note: see declaration of 'v8::Persisten
tBasev8::Object::MarkIndependent' (compiling source file ..\src\index.cc)c:\kassmaster\node_modules\n
an\nan_object_wrap.h(67): warning C4996: 'v8::PersistentBasev8::Object::MarkIndependent': was declare
d deprecated (compiling source file ..\src\fptr10.cc)

c:\kassmaster\node_modules\nan\nan_object_wrap.h(124): error C2039: 'IsNearDeath': is not a member of 'Na
n::Persistent<v8::Object,v8::NonCopyablePersistentTraits>' [C:\KassMaster\node_modules\node-atol-wrapp
er\build\node_atol_wrapper.vcxproj]
with
[
T=v8::Object
] (compiling source file ..\src\index.cc)c:\users\didiandmalish.node-gyp\12.2.0\include\node\v
8.h(563): note: see declaration of 'v8::PersistentBasev8::Object::MarkIndependent' (compiling source
file ..\src\fptr10.cc)

c:\kassmaster\node_modules\nan\nan.h(1859): note: see declaration of 'Nan::Persistent<v8::Object,v8::No
nCopyablePersistentTraits>'
with
[
T=v8::Object
] (compiling source file ..\src\index.cc)
c:\kassmaster\node_modules\nan\nan_object_wrap.h(124): error C2039: 'IsNearDeath': is not a member of 'Na
n::Persistent<v8::Object,v8::NonCopyablePersistentTraits>' [C:\KassMaster\node_modules\node-atol-wrapp
er\build\node_atol_wrapper.vcxproj]
with
[
T=v8::Object
] (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\nan\nan.h(1859): note: see declaration of 'Nan::Persistent<v8::Object,v8::No
nCopyablePersistentTraits>'
with
[
T=v8::Object
] (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\node-atol-wrapper\src\fptr10.cc(26): error C2660: 'v8::FunctionTemplate::GetFu
nction': function does not take 0 arguments [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol
_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(5947): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\node-atol-wrapper\src\fptr10.cc(26): error C2661: 'v8::Object::Set': no overlo
aded function takes 1 arguments [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcx
proj]
c:\kassmaster\node_modules\node-atol-wrapper\src\fptr10.cc(61): error C2660: 'v8::Value::NumberValue': fu
nction does not take 0 arguments [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vc
xproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(2564): note: see declaration of 'v8::Value::N
umberValue' (compiling source file ..\src\fptr10.cc)
c:\kassmaster\node_modules\node-atol-wrapper\src\fptr10.cc(110): error C2661: 'v8::Value::ToObject': no o
verloaded function takes 0 arguments [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\kassmaster\node_modules\node-atol-wrapper\src\fptr10.cc(156): error C2661: 'v8::Value::ToObject': no o
verloaded function takes 0 arguments [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
utils.cc
win_delay_load_hook.cc
c:\kassmaster\node_modules\nan\nan_converters_43_inl.h(22): warning C4996: 'v8::Value::ToBoolean': was de
clared deprecated (compiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\b
uild\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(2523): note: see declaration of 'v8::Value::T
oBoolean' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan_converters_43_inl.h(40): warning C4996: 'v8::Value::BooleanValue': was
declared deprecated (compiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrappe
r\build\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(2561): note: see declaration of 'v8::Value::B
ooleanValue' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(103): error C2664: 'v8::MaybeLocal<v8::Functio
n> v8::Function::New(v8::Localv8::Context,v8::FunctionCallback,v8::Localv8::Value,int,v8::Constructor
Behavior,v8::SideEffectType)': cannot convert argument 1 from 'v8::Isolate *' to 'v8::Localv8::Context'
(compiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wr
apper.vcxproj]
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(105): note: No constructor could take the so
urce type, or constructor overload resolution was ambiguous (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(337): error C2660: 'v8::StringObject::New': fu
nction does not take 1 arguments (compiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node
-atol-wrapper\build\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(5380): note: see declaration of 'v8::StringOb
ject::New' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan_implementation_12_inl.h(337): error C2059: syntax error: ')' (compilin
g source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxp
roj]
c:\kassmaster\node_modules\nan\nan.h(1034): error C2661: 'v8::Value::ToString': no overloaded function ta
kes 0 arguments (compiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\bui
ld\node_atol_wrapper.vcxproj]
c:\kassmaster\node_modules\nan\nan.h(1044): error C2664: 'int v8::String::WriteUtf8(v8::Isolate *,char *,
int,int *,int) const': cannot convert argument 1 from 'char *' to 'v8::Isolate *' (compiling source file
..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
c:\kassmaster\node_modules\nan\nan.h(1044): note: Types pointed to are unrelated; conversion requires r
einterpret_cast, C-style cast or function-style cast (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1818): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3358): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1824): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3358): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1830): warning C4996: 'v8::Object::Set': was declared deprecated (co
mpiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3367): note: see declaration of 'v8::Object::
Set' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1836): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3412): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1842): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3412): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1847): warning C4996: 'v8::Object::Get': was declared deprecated (co
mpiling source file ..\src\utils.cc) [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrappe
r.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(3416): note: see declaration of 'v8::Object::
Get' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan_object_wrap.h(24): error C2039: 'IsNearDeath': is not a member of 'Nan
::Persistent<v8::Object,v8::NonCopyablePersistentTraits>' [C:\KassMaster\node_modules\node-atol-wrappe
r\build\node_atol_wrapper.vcxproj]
with
[
T=v8::Object
] (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1859): note: see declaration of 'Nan::Persistent<v8::Object,v8::No
nCopyablePersistentTraits>'
with
[
T=v8::Object
] (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan_object_wrap.h(67): warning C4996: 'v8::PersistentBasev8::Object::Mar
kIndependent': was declared deprecated (compiling source file ..\src\utils.cc) [C:\KassMaster\node_module
s\node-atol-wrapper\build\node_atol_wrapper.vcxproj]
c:\users\didiandmalish.node-gyp\12.2.0\include\node\v8.h(563): note: see declaration of 'v8::Persisten
tBasev8::Object::MarkIndependent' (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan_object_wrap.h(124): error C2039: 'IsNearDeath': is not a member of 'Na
n::Persistent<v8::Object,v8::NonCopyablePersistentTraits>' [C:\KassMaster\node_modules\node-atol-wrapp
er\build\node_atol_wrapper.vcxproj]
with
[
T=v8::Object
] (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\nan\nan.h(1859): note: see declaration of 'Nan::Persistent<v8::Object,v8::No
nCopyablePersistentTraits>'
with
[
T=v8::Object
] (compiling source file ..\src\utils.cc)
c:\kassmaster\node_modules\node-atol-wrapper\src\utils.cc(31): error C2661: 'v8::Value::ToObject': no ove
rloaded function takes 0 arguments [C:\KassMaster\node_modules\node-atol-wrapper\build\node_atol_wrapper.
vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:257:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\KassMaster\node_modules\node-atol-wrapper
gyp ERR! node -v v12.2.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\didiandmalish\AppData\Roaming\npm-cache_logs\2019-05-15T10_52_10_105Z-debug.log

Как использовать этот пакет?

Добрый день! Хотелось бы какой-то пример, как использовать этот пакет? Не получается подключить его в существующий проект.
Я так понял, что надо вместо const w = require('./bindings'); в файле index.js у себя подключать так:
const w = require("node-atol-wrapper");
А далее использовать, как и в index.js?

Подключение linux

Огромное спасибо за модуль, интегрировали на windows без проблем.

Вот с linux не можем подключиться:
Не через USB:

{
    ...
    Port: 1, // USB
    UsbDevicePath: "auto",
    ...
}

Ни через COM порт:

{
    ...
    Port: 0, // COM
    UsbDevicePath: "/dev/ttyACM0", // тут ккт
    ...
}

Выбрасывает ошибку
Error 4 [ Порт недоступен ]

Linux с коробки не чего не устанавливали, возможно что-то нужно устанавливать или указывать дополнительные настройки, можете подсказать, буду признателен, спасибо.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.