Skip to content

Instantly share code, notes, and snippets.

@stoefln
Created February 4, 2021 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoefln/114300c1c3fff00daac47bee75effaec to your computer and use it in GitHub Desktop.
Save stoefln/114300c1c3fff00daac47bee75effaec to your computer and use it in GitHub Desktop.
electron-rebuild rebuilding node-native-ocr with args [
'node',
'node-gyp',
'rebuild',
'--runtime=electron',
'--target=5.0.6',
'--arch=x64',
'--dist-url=https://www.electronjs.org/headers',
'--build-from-source',
'--devdir="/Users/steph/.electron-gyp"',
'--verbose'
] +10ms
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://www.electronjs.org/headers
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python checking Python explicitly set from environment variable PYTHON
gyp verb find Python - process.env.PYTHON is "/usr/local/opt/python/bin/python3.7"
gyp verb find Python - executing "/usr/local/opt/python/bin/python3.7" to get executable path
⠴ Building module: node-native-ocr, Completed: 1gyp verb find Python - executable path is "/usr/local/opt/python/bin/python3.7"
gyp verb find Python - executing "/usr/local/opt/python/bin/python3.7" to get version
⠦ Building module: node-native-ocr, Completed: 1gyp verb find Python - version is "3.7.4"
gyp info find Python using Python version 3.7.4 found at "/usr/local/opt/python/bin/python3.7"
gyp verb get node dir compiling against --target node version: 5.0.6
gyp verb command install [ '5.0.6' ]
gyp verb download using dist-url https://www.electronjs.org/headers
gyp verb install input version string "5.0.6"
gyp verb install installing version: 5.0.6
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 5.0.6
gyp verb ensuring nodedir is created /Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6
gyp http GET https://www.electronjs.org/headers/v5.0.6/node-v5.0.6-headers.tar.gz
⠇ Building module: node-native-ocr, Completed: 1gyp http 200 https://www.electronjs.org/headers/v5.0.6/node-v5.0.6-headers.tar.gz
⠏ Building module: node-native-ocr, Completed: 1gyp verb extracted file from tarball node_headers/include/node/common.gypi
gyp verb extracted file from tarball node_headers/include/node/config.gypi
gyp verb extracted file from tarball node_headers/include/node/js_native_api.h
gyp verb extracted file from tarball node_headers/include/node/js_native_api_types.h
gyp verb extracted file from tarball node_headers/include/node/libplatform/libplatform-export.h
gyp verb extracted file from tarball node_headers/include/node/libplatform/libplatform.h
gyp verb extracted file from tarball node_headers/include/node/libplatform/v8-tracing.h
gyp verb extracted file from tarball node_headers/include/node/node.h
⠋ Building module: node-native-ocr, Completed: 1gyp verb extracted file from tarball node_headers/include/node/node_api.h
gyp verb extracted file from tarball node_headers/include/node/node_api_types.h
gyp verb extracted file from tarball node_headers/include/node/node_buffer.h
gyp verb extracted file from tarball node_headers/include/node/node_object_wrap.h
gyp verb extracted file from tarball node_headers/include/node/node_version.h
gyp verb extracted file from tarball node_headers/include/node/uv/aix.h
gyp verb extracted file from tarball node_headers/include/node/uv/android-ifaddrs.h
gyp verb extracted file from tarball node_headers/include/node/uv/bsd.h
gyp verb extracted file from tarball node_headers/include/node/uv/darwin.h
gyp verb extracted file from tarball node_headers/include/node/uv/errno.h
gyp verb extracted file from tarball node_headers/include/node/uv/linux.h
gyp verb extracted file from tarball node_headers/include/node/uv/os390.h
gyp verb extracted file from tarball node_headers/include/node/uv/posix.h
gyp verb extracted file from tarball node_headers/include/node/uv/stdint-msvc2008.h
gyp verb extracted file from tarball node_headers/include/node/uv/sunos.h
gyp verb extracted file from tarball node_headers/include/node/uv/threadpool.h
gyp verb extracted file from tarball node_headers/include/node/uv/tree.h
gyp verb extracted file from tarball node_headers/include/node/uv/unix.h
gyp verb extracted file from tarball node_headers/include/node/uv/version.h
gyp verb extracted file from tarball node_headers/include/node/uv/win.h
gyp verb extracted file from tarball node_headers/include/node/uv.h
⠙ Building module: node-native-ocr, Completed: 1gyp verb extracted file from tarball node_headers/include/node/v8-internal.h
gyp verb extracted file from tarball node_headers/include/node/v8-platform.h
gyp verb extracted file from tarball node_headers/include/node/v8-profiler.h
gyp verb extracted file from tarball node_headers/include/node/v8-testing.h
gyp verb extracted file from tarball node_headers/include/node/v8-util.h
gyp verb extracted file from tarball node_headers/include/node/v8-value-serializer-version.h
gyp verb extracted file from tarball node_headers/include/node/v8-version-string.h
gyp verb extracted file from tarball node_headers/include/node/v8-version.h
gyp verb extracted file from tarball node_headers/include/node/v8-wasm-trap-handler-posix.h
gyp verb extracted file from tarball node_headers/include/node/v8-wasm-trap-handler-win.h
gyp verb extracted file from tarball node_headers/include/node/v8.h
⠸ Building module: node-native-ocr, Completed: 1gyp verb extracted file from tarball node_headers/include/node/v8config.h
gyp verb extracted file from tarball node_headers/include/node/zconf.h
gyp verb extracted file from tarball node_headers/include/node/zlib.h
gyp verb content checksum node-v5.0.6-headers.tar.gz 946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac
gyp verb tarball done parsing tarball
gyp verb check download content checksum, need to download `SHASUMS256.txt`...
gyp verb checksum url https://www.electronjs.org/headers/v5.0.6/SHASUMS256.txt
gyp http GET https://www.electronjs.org/headers/v5.0.6/SHASUMS256.txt
⠴ Building module: node-native-ocr, Completed: 1gyp http 200 https://www.electronjs.org/headers/v5.0.6/SHASUMS256.txt
gyp verb checksum data {"node-v5.0.6.tar.gz":"946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac","node-v5.0.6-headers.tar.gz":"946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac","iojs-v5.0.6.tar.gz":"946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac","iojs-v5.0.6-headers.tar.gz":"946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac","node.lib":"57862b2cdbab4bf0a47d831d3b59179b9a9411d8dc5fdb62fac26c80a6e2dd74","x64/node.lib":"76a2aade3db44e331af54aeac451a39a998324d9b7a2dcf2685707b58983abd2","win-x86/iojs.lib":"57862b2cdbab4bf0a47d831d3b59179b9a9411d8dc5fdb62fac26c80a6e2dd74","win-x64/iojs.lib":"76a2aade3db44e331af54aeac451a39a998324d9b7a2dcf2685707b58983abd2","win-x86/node.lib":"57862b2cdbab4bf0a47d831d3b59179b9a9411d8dc5fdb62fac26c80a6e2dd74","win-x64/node.lib":"76a2aade3db44e331af54aeac451a39a998324d9b7a2dcf2685707b58983abd2"}
gyp verb download contents checksum {"node-v5.0.6-headers.tar.gz":"946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac"}
gyp verb validating download checksum for node-v5.0.6-headers.tar.gz (946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac == 946517cfc809fa46f1e6938ee7f162b5780103575fa77e41957570cd3d13c8ac)
gyp verb get node dir target node version installed: 5.0.6
gyp verb build dir attempting to create "build" dir: /Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/build
gyp verb build dir "build" dir needed to be created? undefined
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/config.gypi
gyp verb common.gypi checking for gypi file: /Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/local/opt/python/bin/python3.7
gyp info spawn args [
gyp info spawn args '/Users/steph/Documents/workspace/electron-ocr/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/steph/Documents/workspace/electron-ocr/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6',
gyp info spawn args '-Dnode_gyp_dir=/Users/steph/Documents/workspace/electron-ocr/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr',
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 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
⠹ Building module: node-native-ocr, Completed: 1gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
c++ -o Release/obj.target/node-native-ocr/cc/node-native-ocr.o ../cc/node-native-ocr.cc '-DNODE_GYP_MODULE_NAME=node-native-ocr' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_THREADS' -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/include/node -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/src -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/openssl/config -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/openssl/openssl/include -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/uv/include -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/zlib -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/v8/include -I../../node-addon-api -I/usr/local/Cellar/tesseract/4.1.1/include -I/usr/local/Cellar/leptonica/1.80.0/include/leptonica -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/node-native-ocr/cc/node-native-ocr.o.d.raw -c
⠸ Building module: node-native-ocr, Completed: 1 c++ -o Release/obj.target/node-native-ocr/cc/ocr.o ../cc/ocr.cc '-DNODE_GYP_MODULE_NAME=node-native-ocr' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_THREADS' -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/include/node -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/src -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/openssl/config -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/openssl/openssl/include -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/uv/include -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/zlib -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/v8/include -I../../node-addon-api -I/usr/local/Cellar/tesseract/4.1.1/include -I/usr/local/Cellar/leptonica/1.80.0/include/leptonica -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/node-native-ocr/cc/ocr.o.d.raw -c
⠋ Building module: node-native-ocr, Completed: 1 c++ -o Release/obj.target/node-native-ocr/cc/recognize.o ../cc/recognize.cc '-DNODE_GYP_MODULE_NAME=node-native-ocr' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_THREADS' -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/include/node -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/src -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/openssl/config -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/openssl/openssl/include -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/uv/include -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/zlib -I/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr/5.0.6/deps/v8/include -I../../node-addon-api -I/usr/local/Cellar/tesseract/4.1.1/include -I/usr/local/Cellar/leptonica/1.80.0/include/leptonica -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-rtti -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/node-native-ocr/cc/recognize.o.d.raw -c
⠼ Building module: node-native-ocr, Completed: 1 c++ -shared -Wl,-no_pie -Wl,-search_paths_first -mmacosx-version-min=10.7 -arch x86_64 -L./Release -install_name @rpath/node-native-ocr.dylib -stdlib=libc++ -o "Release/node-native-ocr.dylib" ./Release/obj.target/node-native-ocr/cc/node-native-ocr.o ./Release/obj.target/node-native-ocr/cc/ocr.o ./Release/obj.target/node-native-ocr/cc/recognize.o -L/usr/local/Cellar/tesseract/4.1.1/lib -ltesseract -lcurl
⠴ Building module: node-native-ocr, Completed: 1ld: warning: dylib (/usr/local/Cellar/tesseract/4.1.1/lib/libtesseract.dylib) was built for newer macOS version (10.15) than being linked (10.7)
⠦ Building module: node-native-ocr, Completed: 1Undefined symbols for architecture x86_64:
"_napi_call_function", referenced from:
Napi::Function::Call(std::initializer_list<napi_value__*> const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::__1::vector<napi_value__*, std::__1::allocator<napi_value__*> > const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::initializer_list<napi_value__*> const&) const in recognize.o
"_napi_close_escapable_handle_scope", referenced from:
Napi::ObjectReference::Get(char const*) const in node-native-ocr.o
Napi::ObjectReference::Get(char const*) const in recognize.o
Napi::FunctionReference::Call(std::initializer_list<napi_value__*> const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::__1::vector<napi_value__*, std::__1::allocator<napi_value__*> > const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::initializer_list<napi_value__*> const&) const in recognize.o
"_napi_close_handle_scope", referenced from:
Napi::Error::ThrowAsJavaScriptException() const in node-native-ocr.o
Napi::Error::ThrowAsJavaScriptException() const in recognize.o
Napi::AsyncWorker::OnWorkComplete(Napi::Env, napi_status) in recognize.o
RecognizeWorker::OnOK() in recognize.o
"_napi_coerce_to_object", referenced from:
Recognize(Napi::CallbackInfo const&) in recognize.o
"_napi_create_async_work", referenced from:
Napi::AsyncWorker::AsyncWorker(Napi::Object const&, Napi::Function const&, char const*, Napi::Object const&) in recognize.o
"_napi_create_error", referenced from:
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::Error::New(napi_env__*) in recognize.o
Napi::AsyncWorker::OnWorkComplete(Napi::Env, napi_status)::'lambda'()::operator()() const in recognize.o
"_napi_create_external", referenced from:
Napi::Function Napi::Function::New<void (*)(Napi::CallbackInfo const&)>(napi_env__*, void (*)(Napi::CallbackInfo const&), char const*, void*) in node-native-ocr.o
"_napi_create_function", referenced from:
Napi::Function Napi::Function::New<void (*)(Napi::CallbackInfo const&)>(napi_env__*, void (*)(Napi::CallbackInfo const&), char const*, void*) in node-native-ocr.o
"_napi_create_object", referenced from:
Napi::AsyncWorker::AsyncWorker(Napi::Function const&, char const*) in recognize.o
"_napi_create_reference", referenced from:
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::Error::New(napi_env__*) in recognize.o
Napi::TypeError::TypeError(napi_env__*, napi_value__*) in recognize.o
Napi::AsyncWorker::AsyncWorker(Napi::Object const&, Napi::Function const&, char const*, Napi::Object const&) in recognize.o
Napi::AsyncWorker::OnWorkComplete(Napi::Env, napi_status)::'lambda'()::operator()() const in recognize.o
"_napi_create_string_latin1", referenced from:
Napi::AsyncWorker::AsyncWorker(Napi::Object const&, Napi::Function const&, char const*, Napi::Object const&) in recognize.o
"_napi_create_string_utf8", referenced from:
Init(Napi::Env, Napi::Object) in node-native-ocr.o
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::TypeError::New(napi_env__*, char const*) in recognize.o
Napi::Error::New(napi_env__*) in recognize.o
RecognizeWorker::OnOK() in recognize.o
Napi::AsyncWorker::OnWorkComplete(Napi::Env, napi_status)::'lambda'()::operator()() const in recognize.o
"_napi_create_symbol", referenced from:
Napi::Function Napi::Function::New<void (*)(Napi::CallbackInfo const&)>(napi_env__*, void (*)(Napi::CallbackInfo const&), char const*, void*) in node-native-ocr.o
"_napi_create_type_error", referenced from:
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::TypeError::New(napi_env__*, char const*) in recognize.o
Napi::Error::New(napi_env__*) in recognize.o
"_napi_define_properties", referenced from:
Napi::Function Napi::Function::New<void (*)(Napi::CallbackInfo const&)>(napi_env__*, void (*)(Napi::CallbackInfo const&), char const*, void*) in node-native-ocr.o
"_napi_delete_async_work", referenced from:
Napi::AsyncWorker::~AsyncWorker() in recognize.o
"_napi_delete_reference", referenced from:
Napi::Error::~Error() in node-native-ocr.o
Napi::Error::~Error() in node-native-ocr.o
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::AsyncWorker::~AsyncWorker() in recognize.o
Napi::FunctionReference::~FunctionReference() in recognize.o
Napi::ObjectReference::~ObjectReference() in recognize.o
Recognize(Napi::CallbackInfo const&) in recognize.o
...
"_napi_escape_handle", referenced from:
Napi::ObjectReference::Get(char const*) const in node-native-ocr.o
Napi::ObjectReference::Get(char const*) const in recognize.o
Napi::FunctionReference::Call(std::initializer_list<napi_value__*> const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::__1::vector<napi_value__*, std::__1::allocator<napi_value__*> > const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::initializer_list<napi_value__*> const&) const in recognize.o
"_napi_fatal_error", referenced from:
Napi::Error::Fatal(char const*, char const*) in node-native-ocr.o
Napi::Error::Fatal(char const*, char const*) in recognize.o
"_napi_get_and_clear_last_exception", referenced from:
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::Error::New(napi_env__*) in recognize.o
"_napi_get_buffer_info", referenced from:
_getBufferInfo(Napi::Object, void**, unsigned long*) in recognize.o
"_napi_get_cb_info", referenced from:
Napi::CallbackInfo::CallbackInfo(napi_env__*, napi_callback_info__*) in node-native-ocr.o
"_napi_get_last_error_info", referenced from:
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::Error::New(napi_env__*) in recognize.o
"_napi_get_named_property", referenced from:
Napi::ObjectReference::Get(char const*) const in node-native-ocr.o
Napi::ObjectReference::Get(char const*) const in recognize.o
"_napi_get_null", referenced from:
RecognizeWorker::OnOK() in recognize.o
"_napi_get_reference_value", referenced from:
Napi::ObjectReference::Get(char const*) const in node-native-ocr.o
Napi::Error::ThrowAsJavaScriptException() const in node-native-ocr.o
Napi::Error::ThrowAsJavaScriptException() const in recognize.o
Napi::AsyncWorker::OnOK() in recognize.o
Napi::AsyncWorker::OnError(Napi::Error const&) in recognize.o
Napi::ObjectReference::Get(char const*) const in recognize.o
Napi::FunctionReference::Call(std::initializer_list<napi_value__*> const&) const in recognize.o
...
"_napi_get_typedarray_info", referenced from:
_getBufferInfo(Napi::Object, void**, unsigned long*) in recognize.o
"_napi_get_undefined", referenced from:
Recognize(Napi::CallbackInfo const&) in recognize.o
Napi::Function::Call(std::initializer_list<napi_value__*> const&) const in recognize.o
"_napi_get_value_string_utf8", referenced from:
Napi::String::Utf8Value() const in node-native-ocr.o
Napi::String::Utf8Value() const in recognize.o
"_napi_is_exception_pending", referenced from:
Napi::Error::New(napi_env__*) in node-native-ocr.o
Napi::Error::New(napi_env__*) in recognize.o
Napi::FunctionReference::Call(std::initializer_list<napi_value__*> const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::__1::vector<napi_value__*, std::__1::allocator<napi_value__*> > const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::initializer_list<napi_value__*> const&) const in recognize.o
"_napi_module_register", referenced from:
_register_NODE_NATIVE_OCR() in node-native-ocr.o
"_napi_open_escapable_handle_scope", referenced from:
Napi::ObjectReference::Get(char const*) const in node-native-ocr.o
Napi::ObjectReference::Get(char const*) const in recognize.o
Napi::FunctionReference::Call(std::initializer_list<napi_value__*> const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::__1::vector<napi_value__*, std::__1::allocator<napi_value__*> > const&) const in recognize.o
Napi::FunctionReference::Call(napi_value__*, std::initializer_list<napi_value__*> const&) const in recognize.o
"_napi_open_handle_scope", referenced from:
Napi::Error::ThrowAsJavaScriptException() const in node-native-ocr.o
Napi::Error::ThrowAsJavaScriptException() const in recognize.o
Napi::AsyncWorker::OnWorkComplete(Napi::Env, napi_status) in recognize.o
RecognizeWorker::OnOK() in recognize.o
"_napi_queue_async_work", referenced from:
Recognize(Napi::CallbackInfo const&) in recognize.o
"_napi_set_property", referenced from:
Init(Napi::Env, Napi::Object) in node-native-ocr.o
"_napi_throw", referenced from:
Napi::Error::ThrowAsJavaScriptException() const in node-native-ocr.o
Napi::Error::ThrowAsJavaScriptException() const in recognize.o
"_napi_typeof", referenced from:
Recognize(Napi::CallbackInfo const&) in recognize.o
"_pixDestroy", referenced from:
TessRecognizePix(Pix*, char const*, char*&, char const*, char*, char*) in ocr.o
"_pixReadMem", referenced from:
RecognizeWorker::Execute() in recognize.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/node-native-ocr.dylib] Error 1
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild '/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr'.
Error: `make` failed with exit code: 2
Error: node-gyp failed to rebuild '/Users/steph/Documents/workspace/electron-ocr/node_modules/node-native-ocr'.
Error: `make` failed with exit code: 2
at ModuleRebuilder.rebuildNodeGypModule (/Users/steph/Documents/workspace/electron-ocr/node_modules/electron-rebuild/lib/src/module-rebuilder.js:193:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! electron-ocr@0.0.1 electron-rebuild: `cross-env DEBUG=electron-rebuild* electron-rebuild -f`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the electron-ocr@0.0.1 electron-rebuild 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! /Users/steph/.npm/_logs/2021-02-04T08_56_03_578Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment