#javascript #node.js #electron-forge #node-addon-api #gpu.js
Вопрос:
Я создал электронное приложение. После установки gpu.js установка npm библиотеки gpu.js —спаси’. Когда я пытаюсь запустить приложение the electron, оно выдает ошибку. Приложение скомпилировано и запущено с использованием библиотеки electron-forge.
Я создал электронное приложение для некоторых функций обработки сигналов. Он получает некоторые данные с устройства, а затем обрабатывает их и отображает графики.
Я реализовал часть приема данных с помощью node-addon-api. Я отправляю полученные данные с устройства в js и хотел реализовать обработку сигналов в js с помощью библиотеки gpujs.
После установки библиотеки gpujs, когда я пытаюсь запустить приложение. Я получаю эту ошибку. Я пытался найти решения, но у меня ничего не получалось.
Preparing native dependencies: 0 / 1webgl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::shared_ptr<class v8::BackingStore> __cdecl v8::ArrayBuffer::GetBacki ngStore(void)" (__imp_?GetBackingStore@ArrayBuffer@v8@@QEAA?AV?$shared_ptr@VBackingStore@v8@@@std@@XZ) referenced in function "public: __cdecl Nan::TypedArrayConten ts<char>::TypedArrayContents<char>(class v8::Local<class v8::Value>)" (??0?$TypedArrayContents@D@Nan@@QEAA@V?$Local@VValue@v8@@@v8@@@Z) [E:ProjectsSoftware_Define d_RadioboxRFnode_modulesglbuildwebgl.vcxproj] E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildReleasewebgl.node : fatal error LNK1120: 1 unresolved externals [E:ProjectsSoftware_Defined_Radio boxRFnode_modulesglbuildwebgl.vcxproj] × Preparing native dependencies: 0 / 1 An unhandled error has occurred inside Forge: node-gyp failed to rebuild 'E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl'. Error: `C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBinMSBuild.exe` failed with exit code: 1 Error: node-gyp failed to rebuild 'E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl'. Error: `C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBinMSBuild.exe` failed with exit code: 1 at ModuleRebuilder.rebuildNodeGypModule (E:ProjectsSoftware_Defined_RadioboxRFnode_moduleselectron-rebuildsrcmodule-rebuilder.ts:231:13) at processTicksAndRejections (internal/process/task_queues.js:93:5) at Rebuilder.rebuildModuleAt (E:ProjectsSoftware_Defined_RadioboxRFnode_moduleselectron-rebuildsrcrebuild.ts:283:5) at Rebuilder.rebuild (E:ProjectsSoftware_Defined_RadioboxRFnode_moduleselectron-rebuildsrcrebuild.ts:189:9) at E:ProjectsSoftware_Defined_RadioboxRFnode_modules@electron-forgecoresrcutilrebuild.ts:33:5
Ниже я также добавил все журналы только для справки:
electron-forge start √ Checking your system √ Locating Application Preparing native dependencies: 0 / 1Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch. / Preparing native dependencies: 0 / 1 Copying E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl/deps/windows/dll/x64/libEGL.dll to E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuild Release Preparing native dependencies: 0 / 1 1 file(s) copied. Copying E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl/deps/windows/dll/x64/libGLESv2.dll to E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildRelease 1 file(s) copied. Copying E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl/deps/windows/dll/x64/d3dcompiler_47.dll to E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildRelease 1 file(s) copied. Preparing native dependencies: 0 / 1 bindings.cc / Preparing native dependencies: 0 / 1E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl11.1.0includenodev8.h(9182,39): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl11.1.0includenodev8.h(9190,42): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] Preparing native dependencies: 0 / 1 webgl.cc | Preparing native dependencies: 0 / 1E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl11.1.0includenodev8.h(9182,39): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl11.1.0includenodev8.h(9190,42): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] Preparing native dependencies: 0 / 1E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglsrcnativewebgl.cc(466,37): warning C4312: 'reinterpret_cast': conversion from 'GLint' to 'GLvoid *' of gr eater size [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] Preparing native dependencies: 0 / 1 procs.cc Preparing native dependencies: 0 / 1E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl11.1.0includenodev8.h(9182,39): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl11.1.0includenodev8.h(9190,42): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] | Preparing native dependencies: 0 / 1 win_delay_load_hook.cc Preparing native dependencies: 0 / 1 Creating library E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildReleasewebgl.lib and object E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildReleasewebgl.exp Preparing native dependencies: 0 / 1webgl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::shared_ptr<class v8::BackingStore> __cdecl v8::ArrayBuffer::GetBacki ngStore(void)" (__imp_?GetBackingStore@ArrayBuffer@v8@@QEAA?AV?$shared_ptr@VBackingStore@v8@@@std@@XZ) referenced in function "public: __cdecl Nan::TypedArrayConten ts<char>::TypedArrayContents<char>(class v8::Local<class v8::Value>)" (??0?$TypedArrayContents@D@Nan@@QEAA@V?$Local@VValue@v8@@@v8@@@Z) [E:ProjectsSoftware_Define d_RadioboxRFnode_modulesglbuildwebgl.vcxproj] E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildReleasewebgl.node : fatal error LNK1120: 1 unresolved externals [E:ProjectsSoftware_Defined_RadioboxRFnode_modulesglbuildwebgl.vcxproj] × Preparing native dependencies: 0 / 1 An unhandled error has occurred inside Forge: node-gyp failed to rebuild 'E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl'. Error: `C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBinMSBuild.exe` failed with exit code: 1 Error: node-gyp failed to rebuild 'E:ProjectsSoftware_Defined_RadioboxRFnode_modulesgl'. Error: `C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBinMSBuild.exe` failed with exit code: 1 at ModuleRebuilder.rebuildNodeGypModule (E:ProjectsSoftware_Defined_RadioboxRFnode_moduleselectron-rebuildsrcmodule-rebuilder.ts:231:13) at processTicksAndRejections (internal/process/task_queues.js:93:5) at Rebuilder.rebuildModuleAt (E:ProjectsSoftware_Defined_RadioboxRFnode_moduleselectron-rebuildsrcrebuild.ts:283:5) at Rebuilder.rebuild (E:ProjectsSoftware_Defined_RadioboxRFnode_moduleselectron-rebuildsrcrebuild.ts:189:9) at E:ProjectsSoftware_Defined_RadioboxRFnode_modules@electron-forgecoresrcutilrebuild.ts:33:5 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! boxrf@1.0.0 start: `electron-forge start` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the boxrf@1.0.0 start 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:UserssushaAppDataRoamingnpm-cache_logs2021-05-28T03_58_03_166Z-debug.log