GithubHelp home page GithubHelp logo

node-native-ocr's People

Contributors

geoffmclennan avatar jschlight avatar s1hofmann avatar stoefln avatar

Stargazers

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

Watchers

 avatar  avatar

node-native-ocr's Issues

types / dist missing in currently published version

Package.json uses dist/index.d.ts path, but it is not actually included in the published package

{
  "name": "node-native-ocr",
  "version": "0.3.9",
  "description": "Native Node.js bindings for the Tesseract OCR project.",
  "gypfile": true,
  "main": "lib/index.js",
  "module": "src/index.js",
  "types": "./dist/index.d.ts",
Bildschirmfoto 2023-12-09 um 10 43 11

shelljs dependency not installed prior to install script execution

Upon installing node-native-ocr with npm install node-native-ocr, I was faced with the following error:

Error: Cannot find module 'shelljs'

This prevents node-native-ocr from properly installing and being added to package.json. The error is caused by the dependency shelljs here: build-tesseract.js#L3.

It seems as though the install script is attempting to use this dependency before installing the shelljs dependency. You can temporarily resolve this issue by manually installing shelljs as a devDependency with npm install --save-dev shelljs.

Windows 11 fatal error: LNK1120: 1 unresolved externals [C:\...\node_modules\node-native-ocr\build\node-native-ocr.vcxproj

node -v v14.18.1
node-gyp -v v5.1.0

  tesseract.vcxproj -> C:\Users\steph\repeato-studio\node_modules\node-native-ocr\tesseract\build\bin\Release\tesseract.exe
  Building Custom Rule C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/CMakeLists.txt
Installing a Release build.
-- Install configuration: "Release"
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/lib/pkgconfig/tesseract.pc
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/bin/tesseract.exe
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/lib/tesseract41.lib
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/cmake/TesseractTargets.cmake
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/cmake/TesseractTargets-release.cmake
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/cmake/TesseractConfig.cmake
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/cmake/TesseractConfig-version.cmake
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/apitypes.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/baseapi.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/capi.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/renderer.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/tess_version.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/thresholder.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/ltrresultiterator.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/pageiterator.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/resultiterator.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/osdetect.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/publictypes.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/genericvector.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/helpers.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/ocrclass.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/platform.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/serialis.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/strngs.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/tesscallback.h
-- Installing: C:/Users/steph/repeato-studio/node_modules/node-native-ocr/tesseract/build//bin/include/tesseract/unichar.h
build-tesseract script end.

C:\Users\steph\repeato-studio\node_modules\node-native-ocr>if not defined npm_config_node_gyp (node "C:\Users\steph\AppData\Roaming\nvm\v14.18.1\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\steph\AppData\Roaming\nvm\v14.18.1\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.
  node-native-ocr.cc
  ocr.cc
  recognize.cc
  win_delay_load_hook.cc
     Creating library C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\Release\node-native-ocr.lib and object C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\Release\node-native-ocr.exp
tesseract41.lib(convolve.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(lstm.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(segsearch.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(findseam.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(topitch.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(oldbasel.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(colpartitiongrid.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(strokewidth.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(tablefind.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(tfacepp.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(baselinedetect.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(wordseg.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(networkio.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(unicharcompress.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(colpartition.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(svutil.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(permdawg.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(clusttool.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(superscript.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(mainblk.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(params_model.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(paramsd.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(lstmrecognizer.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(tordmain.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(imagedata.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(boxread.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(normmatch.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(textord.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(language_model.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(pieces.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(trie.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(polyaprx.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(stopper.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(cutoffs.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(picofeat.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(scrollview.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(ambigs.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(dawg.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(equationdetect.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(osdetect.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(paragraphs.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(blamer.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(pageres.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(adaptmatch.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(control.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(pgedit.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(unicharset.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(ratngs.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(tessdatamanager.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(ocrpara.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(baseapi.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(unichar.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(strngs.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
tesseract41.lib(params.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4 [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]
C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\Release\node-native-ocr.node : fatal error LNK1120: 1 unresolved externals [C:\Users\steph\repeato-studio\node_modules\node-native-ocr\build\node-native-ocr.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:\Users\steph\AppData\Roaming\nvm\v14.18.1\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\steph\\AppData\\Roaming\\nvm\\v14.18.1\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\steph\repeato-studio\node_modules\node-native-ocr
gyp ERR! node -v v14.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok

Full log:

https://gist.github.com/stoefln/fa6fbe2975ea9f85d7e221124f23ef13

Prerequisites for installing / building under Windows 10

When trying to install under Windows I got stuck several times. There seem to be unmet dependencies around Visual Studio, Microsoft Build Tools and node-gyp. However, I could not set up my local environment to successfully run the build.

What I did so far:

  • Installed CMake
  • Installed windows build tools
    • npm install --global --production windows-build-tools

Windows build tools got stuck on the loading of Python 2.7.15
[ https://github.com/felixrieseberg/windows-build-tools/issues/147 ]

After that I removed previously installed Python 2.7 and the node_modules folder from the project. But the build tools got stuck again after completing the python install.

When trying to run the install at this point it gave me:
MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
[ https://stackoverflow.com/questions/41695251/c-microsoft-cpp-default-props-was-not-found ]

Went ahead and installed Visual Studio 2019 CE (only C++ Packages for Desktop Applications)

  • Set the msvs_version for node
    • npm config set msvs_version 2019

After that the installation was running for a while, until it hit the following:

node-native-ocr>if not defined npm_config_node_gyp (node "C:\Users\loco\AppData\Roaming\nvm\v11.15.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\loco\AppData\Roaming\nvm\v11.15.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:247:19) gyp ERR! stack at onErrorNT (internal/child_process.js:429:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:81:17) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\loco\\AppData\\Roaming\\nvm\\v11.15.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd c:\Repos\repeato-studio\node_modules\node-native-ocr gyp ERR! node -v v11.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help:

Uninstalling node-gyp manually and restarting the process resulted in the same outcome again.

As stated before, I don't fully understand what kind of requirements / dependencies the installation needs. Any hint is greatly appreciated.

Error LNK2019: unresolved external symbol "public: __cdecl tesseract::TessBaseAPI::TessBaseAPI(void)"

Environment:

  • Python => 3.9
  • Node => 11.15 (Also tried using 14)
  • Node-Gyp => 8.2 (Globally installed) - But in error I can see => node-gyp -v v3.8.0
  • Npm => 6.7

Unable to install this package getting the following errors during build:

  • Error LNK2019: unresolved external symbol "public: __cdecl tesseract::TessBaseAPI::TessBaseAPI(void)"
  • fatal error LNK1120: 7 unresolved externals [C:\Users\MyUserName\Documents\project\node_modules\node-native-ocr\build\node-native-ocr.vcxproj]

See attached screenshots for reference
image
image
image

undefined error in lib/index.js

Hi, thanks for the library. Just tested and found that the line in lib/index.js is throwing error:

undefined = tessdataPath;

Cheers!

Typescript bindings

Hi! Thanks for making this library, this looks very promising compared to competing OCR libraries for Javascript.

However, I am trying to include this in my Typescript project, but since this library does not seem to have Typescript type declarations I'm getting some issues. If you do have the .d.ts files somewhere and I'm just missing them let me know!

I'll look into creating some custom declarations for my project, but it would be great if this library included them by default for future Typescript consumers. If its any help, I can provide my custom declarations once I complete them

D:\...\Anaconda\Library\include\gif_lib.h(286): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file D:\code\repeato-studio\node_modules\node-native-ocr\leptonica\src\libversions.c) [D:\code\repeato-studio\node_modules\node-native-ocr\leptonica\build\src\leptonica.vcxproj]

Full log:

(base) PS D:\code\repeato-studio> npm i --save node-native-ocr

> [email protected] install D:\code\repeato-studio\node_modules\node-native-ocr
> npm run build-tesseract && node-gyp rebuild


> [email protected] build-tesseract D:\code\repeato-studio\node_modules\node-native-ocr
> node ./scripts/build-tesseract

build-tesseract script start.
This script requires CMake version 3.15 or later.
CMake 3.23.1 found on this system.
Working directory: D:\code\repeato-studio\node_modules\node-native-ocr
Initializing Git submodules.
The 'tesseract' and 'leptonica' directories already exist.
Building libjpeg.
The libjpeg directory already exists.
Configuring a Release build.
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${PWD}/bin -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 ..
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.16.27048.0
-- The CXX compiler identification is MSVC 19.16.27048.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_BUILD_TYPE


-- Build files have been written to: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build
Creating a Release build.
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/CMakeLists.txt
  jaricom.c
  jcapimin.c
  jcapistd.c
  jcarith.c
  jccoefct.c
  jccolor.c
  jcdctmgr.c
  jchuff.c
  jcinit.c
  jcmainct.c
  jcmarker.c
  jcmaster.c
  jcomapi.c
  jcparam.c
  jcprepct.c
  jcsample.c
  jctrans.c
  jdapimin.c
  jdapistd.c
  jdarith.c
  Generating Code...
  Compiling...
  jdatadst.c
  jdatasrc.c
  jdcoefct.c
  jdcolor.c
  jddctmgr.c
  jdhuff.c
  jdinput.c
  jdmainct.c
  jdmarker.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jdmarker.c(331): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\JPEG.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h(338): note: see declaration of 'strncpy'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jdmarker.c(655): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\JPEG.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\string.h(338): note: see declaration of 'strncpy'
  jdmaster.c
  jdmerge.c
  jdpostct.c
  jdsample.c
  jdtrans.c
  jerror.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jerror.c(194): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\JPEG.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jerror.c(196): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\JPEG.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
  jfdctflt.c
  jfdctfst.c
  jfdctint.c
  jidctflt.c
  jidctfst.c
  Generating Code...
  Compiling...
  jidctint.c
  jquant1.c
  jquant2.c
  jutils.c
  jmemmgr.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jmemmgr.c(1107): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\JPEG.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdlib.h(1191): note: see declaration of 'getenv'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jmemmgr.c(1110): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\JPEG.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
  jmemnobs.c
  Generating Code...
  JPEG.vcxproj -> D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\Release\libjpeg.lib
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/CMakeLists.txt
  cjpeg.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\cjpeg.c(277): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\cjpeg.c(345): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\cjpeg.c(412): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\cjpeg.c(438): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\cjpeg.c(461): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\cjpeg.c(597): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\cjpeg.c(608): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
  rdppm.c
  rdgif.c
  rdtarga.c
  rdrle.c
  rdbmp.c
  rdswitch.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(90): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(183): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(280): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(312): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(346): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\cjpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
  cdjpeg.c
  Generating Code...
  cjpeg.vcxproj -> D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\Release\cjpeg.exe
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/CMakeLists.txt
  djpeg.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\djpeg.c(207): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\djpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\djpeg.c(275): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\djpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\djpeg.c(294): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\djpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\djpeg.c(330): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\djpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\djpeg.c(505): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\djpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\djpeg.c(516): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\djpeg.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
  wrppm.c
  wrgif.c
  wrtarga.c
  wrrle.c
  wrbmp.c
  rdcolmap.c
  cdjpeg.c
  Generating Code...
  djpeg.vcxproj -> D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\Release\djpeg.exe
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/CMakeLists.txt
  jpegtran.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jpegtran.c(239): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jpegtran.c(284): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jpegtran.c(463): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jpegtran.c(487): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\jpegtran.c(532): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
  rdswitch.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(90): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(183): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(280): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(312): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdswitch.c(346): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\jpegtran.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(2263): note: see declaration of 'sscanf'
  cdjpeg.c
  transupp.c
  Generating Code...
  jpegtran.vcxproj -> D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\Release\jpegtran.exe
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/CMakeLists.txt
  rdjpgcom.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\rdjpgcom.c(490): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\rdjpgcom.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
  rdjpgcom.vcxproj -> D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\Release\rdjpgcom.exe
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/CMakeLists.txt
  wrjpgcom.c
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\wrjpgcom.c(456): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\wrjpgcom.vcxproj]
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\wrjpgcom.c(465): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\wrjpgcom.vcxproj]
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\wrjpgcom.c(466): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\wrjpgcom.vcxproj]
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\wrjpgcom.c(442): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\wrjpgcom.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\wrjpgcom.c(485): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\wrjpgcom.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\stdio.h(208): note: see declaration of 'fopen'
  wrjpgcom.vcxproj -> D:\code\repeato-studio\node_modules\node-native-ocr\libjpeg\build\Release\wrjpgcom.exe
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/CMakeLists.txt
Installing a Release build.
-- Install configuration: "Release"
-- Installing: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build//bin/include/jerror.h
-- Installing: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build//bin/include/jmorecfg.h
-- Installing: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build//bin/include/jpeglib.h
-- Installing: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build//bin/include/jconfig.h
-- Installing: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build//bin/lib/libjpeg.lib
-- Installing: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build//bin/lib/cmake/jpeg/jpeg-config.cmake
-- Installing: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build//bin/lib/cmake/jpeg/jpeg-config-release.cmake
Building Leptonica.
Configuring a Release build.
cmake -DSW_BUILD=OFF -DCMAKE_FIND_USE_CMAKE_SYSTEM_PATH=FALSE -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=TRUE -DCMAKE_PREFIX_PATH=${PWD}/../../libjpeg/build -DCMAKE_INCLUDE_PATH=${PWD}/../../libjpeg/build/bin/include -DCMAKE_LIBRARY_PATH=${PWD}/../../libjpeg/build/bin/lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${PWD}/bin -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 ..
-- Building for: Visual Studio 15 2017
CMake Deprecation Warning at CMakeLists.txt:11 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.16.27048.0
-- The CXX compiler identification is MSVC 19.16.27048.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found GIF: D:/code/Anaconda/Library/lib/gif.lib (found version "5.2.1")
-- Found JPEG: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build/bin/lib/libjpeg.lib (found version "90")
-- Found ZLIB: D:/code/Anaconda/Library/lib/z.lib (found version "1.2.11")
-- Found PNG: D:/code/Anaconda/Library/lib/libpng.lib (found version "1.6.37")
-- Found TIFF: D:/code/Anaconda/Library/lib/tiff.lib (found version "4.2.0")
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Can not find: /webp/mux.h
CMAKE_BUILD_TYPE = Release
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - not found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - not found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - not found
-- Looking for include file openjpeg-2.0/openjpeg.h
-- Looking for include file openjpeg-2.0/openjpeg.h - not found
-- Looking for include file openjpeg-2.1/openjpeg.h
-- Looking for include file openjpeg-2.1/openjpeg.h - not found
-- Looking for include file openjpeg-2.2/openjpeg.h
-- Looking for include file openjpeg-2.2/openjpeg.h - not found
-- Looking for include file openjpeg-2.3/openjpeg.h
-- Looking for include file openjpeg-2.3/openjpeg.h - not found
-- Looking for fmemopen
-- Looking for fmemopen - not found
-- Looking for fstatat
-- Looking for fstatat - not found
--
-- General configuration for Leptonica 1.80.0
-- --------------------------------------------------------
-- Build type: Release
-- Compiler: MSVC
-- C compiler options:  /DWIN32 /D_WINDOWS /W3
-- Linker options: /machine:X86
-- Install directory: D:/code/repeato-studio/node_modules/node-native-ocr/leptonica/build/${PWD}/bin
--
-- Build with sw [SW_BUILD]: OFF
-- Build utility programs [BUILD_PROG]: OFF
-- Used ZLIB library: D:/code/Anaconda/Library/lib/z.lib
-- Used PNG library:  D:/code/Anaconda/Library/lib/libpng.lib;D:/code/Anaconda/Library/lib/z.lib
-- Used JPEG library: D:/code/repeato-studio/node_modules/node-native-ocr/libjpeg/build/bin/lib/libjpeg.lib
-- Used JP2K library:
-- Used TIFF library: D:/code/Anaconda/Library/lib/tiff.lib
-- Used GIF library:  D:/code/Anaconda/Library/lib/gif.lib
-- Used WEBP library:
-- --------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: D:/code/repeato-studio/node_modules/node-native-ocr/leptonica/build
Creating a Release build.
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule D:/code/repeato-studio/node_modules/node-native-ocr/leptonica/src/CMakeLists.txt
  adaptmap.c
  affine.c
  affinecompose.c
  arrayaccess.c
  bardecode.c
  baseline.c
  bbuffer.c
  bilateral.c
  bilinear.c
  binarize.c
  binexpand.c
  binreduce.c
  blend.c
  bmf.c
  bmpio.c
  bmpiostub.c
  bootnumgen1.c
  bootnumgen2.c
  bootnumgen3.c
  bootnumgen4.c
  boxbasic.c
  boxfunc1.c
  boxfunc2.c
  boxfunc3.c
  boxfunc4.c
  boxfunc5.c
  bytearray.c
  ccbord.c
  ccthin.c
  checkerboard.c
  classapp.c
  colorcontent.c
  colorfill.c
  coloring.c
  colormap.c
  colormorph.c
  colorquant1.c
  colorquant2.c
  colorseg.c
  colorspace.c
  compare.c
  conncomp.c
  convertfiles.c
  convolve.c
  correlscore.c
  dewarp1.c
  dewarp2.c
  dewarp3.c
  dewarp4.c
  dnabasic.c
  dnafunc1.c
  dnahash.c
  dwacomb.2.c
  dwacomblow.2.c
  edge.c
  encoding.c
  enhance.c
  fhmtauto.c
  fhmtgen.1.c
  fhmtgenlow.1.c
  finditalic.c
  flipdetect.c
  fliphmtgen.c
  fmorphauto.c
  fmorphgen.1.c
  fmorphgenlow.1.c
  fpix1.c
  fpix2.c
  gifio.c
  gifiostub.c
D:\code\Anaconda\Library\include\gif_lib.h(286): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file D:\code\repeato-studio\node_modules\node-native-ocr\leptonica\src\gifio.c) [D:\code\repeato-studio\node_modules\node-native-ocr\leptonica\build\src\leptonica.vcxproj]
  gplot.c
  graphics.c
  graymorph.c
  grayquant.c
  heap.c
  jbclass.c
  jp2kheader.c
  jp2kheaderstub.c
  jp2kio.c
  jp2kiostub.c
  jpegio.c
  jpegiostub.c
  kernel.c
  leptwin.c
  libversions.c
D:\code\Anaconda\Library\include\gif_lib.h(286): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern' (compiling source file D:\code\repeato-studio\node_modules\node-native-ocr\leptonica\src\libversions.c) [D:\code\repeato-studio\node_modules\node-native-ocr\leptonica\build\src\leptonica.vcxproj]
  list.c
  map.c
  maze.c
  morph.c
  morphapp.c
  morphdwa.c
  morphseq.c
  numabasic.c
  numafunc1.c
  numafunc2.c
  pageseg.c
  paintcmap.c
  parseprotos.c
  partify.c
  partition.c
  pdfio1.c
  pdfio1stub.c
  pdfio2.c
  pdfio2stub.c
  pix1.c
  pix2.c
  pix3.c
  pix4.c
  pix5.c
  pixabasic.c
  pixacc.c
  pixafunc1.c
  pixafunc2.c
  pixalloc.c
  pixarith.c
  pixcomp.c
  pixconv.c
  pixlabel.c
  pixtiling.c
  pngio.c
  pngiostub.c
  pnmio.c
  pnmiostub.c
  projective.c
  psio1.c
  psio1stub.c
  psio2.c
  psio2stub.c
  ptabasic.c
  ptafunc1.c
  ptafunc2.c
  ptra.c
  quadtree.c
  queue.c
  rank.c
  rbtree.c
  readbarcode.c
  readfile.c
  recogbasic.c
  recogdid.c
  recogident.c
  recogtrain.c
  regutils.c
  rop.c
  roplow.c
  rotate.c
  rotateam.c
  rotateorth.c
  rotateshear.c
  runlength.c
  sarray1.c
  sarray2.c
  scale1.c
  scale2.c
  seedfill.c
  sel1.c
  sel2.c
  selgen.c
  shear.c
  skew.c
  spixio.c
  stack.c
  stringcode.c
  strokes.c
  sudoku.c
  textops.c
  tiffio.c
  tiffiostub.c
  utils1.c
  utils2.c
  warper.c
  watershed.c
  webpanimio.c
  webpanimiostub.c
  webpio.c
  webpiostub.c
  writefile.c
  zlibmem.c
  zlibmemstub.c
D:\code\repeato-studio\node_modules\shelljs\src\common.js:401
      if (config.fatal) throw e;
                        ^

Error: exec:
    at Object.error (D:\code\repeato-studio\node_modules\shelljs\src\common.js:110:27)
    at execSync (D:\code\repeato-studio\node_modules\shelljs\src\exec.js:102:12)
    at Object._exec (D:\code\repeato-studio\node_modules\shelljs\src\exec.js:205:12)
    at Object.exec (D:\code\repeato-studio\node_modules\shelljs\src\common.js:335:23)
    at runCMakeBuild (D:\code\repeato-studio\node_modules\node-native-ocr\scripts\build-tesseract.js:166:9)
    at buildLeptonica (D:\code\repeato-studio\node_modules\node-native-ocr\scripts\build-tesseract.js:107:3)
    at Object.<anonymous> (D:\code\repeato-studio\node_modules\node-native-ocr\scripts\build-tesseract.js:50:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-tesseract: `node ./scripts/build-tesseract`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-tesseract 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\zsuzs\AppData\Roaming\npm-cache\_logs\2022-05-12T07_38_42_159Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\glob-watcher\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\sane\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\iconv-corefoundation):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\dmg-license):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `npm run build-tesseract && 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\zsuzs\AppData\Roaming\npm-cache\_logs\2022-05-12T07_38_44_256Z-debug.log

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.