Skip to content

Error on running electron app after installing gpu.js #698

@robosushie

Description

@robosushie

image

Just wanted to share this meme after looking at the crypto market 🤣

What is wrong?

I have built an electron application. After installing gpu.js library 'npm install gpu.js --save'.
When I try to run the the electron application it errors out.
The app is compiled and run using electron-forge library.

I have built an electron application for some signal processing functionality. It receives some data from a device and then processes it and displays the plots.

I have implemented the data receive part using node-addon-api. I am sending the received data from device to js and wanted to implement the signal processing in js using gpujs library.

After installing the gpujs library, when I try to run the app. I am receiving this error.
I tried to looking up solutions but nothing worked for me.

\ Preparing native dependencies: 0 / 1webgl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::shared_ptr __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::TypedArrayContents(class v8::Local)" (??0?$TypedArrayContents@D@Nan@@qeaa@V?$Local@VValue@v8@@@v8@@@z) [E:\Projects\Software_Define
d_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\Release\webgl.node : fatal error LNK1120: 1 unresolved externals [E:\Projects\Software_Defined_Radio\
boxRF\node_modules\gl\build\webgl.vcxproj]
× Preparing native dependencies: 0 / 1

An unhandled error has occurred inside Forge:
node-gyp failed to rebuild 'E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl'.
Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1

Error: node-gyp failed to rebuild 'E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl'.
Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1

at ModuleRebuilder.rebuildNodeGypModule (E:\Projects\Software_Defined_Radio\boxRF\node_modules\electron-rebuild\src\module-rebuilder.ts:231:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at Rebuilder.rebuildModuleAt (E:\Projects\Software_Defined_Radio\boxRF\node_modules\electron-rebuild\src\rebuild.ts:283:5)
at Rebuilder.rebuild (E:\Projects\Software_Defined_Radio\boxRF\node_modules\electron-rebuild\src\rebuild.ts:189:9)
at E:\Projects\Software_Defined_Radio\boxRF\node_modules\@electron-forge\core\src\util\rebuild.ts:33:5

Below I have also added the entire logs just for reference:

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:\Projects\Software_Defined_Radio\boxRF\node_modules\gl/deps/windows/dll/x64/libEGL.dll to E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build
\Release
Preparing native dependencies: 0 / 1 1 file(s) copied.
Copying E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl/deps/windows/dll/x64/libGLESv2.dll to E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\bu
ild\Release
1 file(s) copied.
Copying E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl/deps/windows/dll/x64/d3dcompiler_47.dll to E:\Projects\Software_Defined_Radio\boxRF\node_modules
gl\build\Release
1 file(s) copied.
\ Preparing native dependencies: 0 / 1 bindings.cc
/ Preparing native dependencies: 0 / 1E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\11.1.0\include\node\v8.h(9182,39): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version.
[E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\11.1.0\include\node\v8.h(9190,42): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version.
[E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
Preparing native dependencies: 0 / 1 webgl.cc
| Preparing native dependencies: 0 / 1E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\11.1.0\include\node\v8.h(9182,39): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version.
[E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\11.1.0\include\node\v8.h(9190,42): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version.
[E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
\ Preparing native dependencies: 0 / 1E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\src\native\webgl.cc(466,37): warning C4312: 'reinterpret_cast': conversion from 'GLint' to 'GLvoid *' of gr
eater size [E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
Preparing native dependencies: 0 / 1 procs.cc
Preparing native dependencies: 0 / 1E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\11.1.0\include\node\v8.h(9182,39): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version.
[E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\11.1.0\include\node\v8.h(9190,42): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version.
[E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
| Preparing native dependencies: 0 / 1 win_delay_load_hook.cc
Preparing native dependencies: 0 / 1 Creating library E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\Release\webgl.lib and object E:\Projects\Software_Defined_Radio\boxRF\node_modu
les\gl\build\Release\webgl.exp
\ Preparing native dependencies: 0 / 1webgl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::shared_ptr __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::TypedArrayContents(class v8::Local)" (??0?$TypedArrayContents@D@Nan@@qeaa@V?$Local@VValue@v8@@@v8@@@z) [E:\Projects\Software_Define
d_Radio\boxRF\node_modules\gl\build\webgl.vcxproj]
E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl\build\Release\webgl.node : fatal error LNK1120: 1 unresolved externals [E:\Projects\Software_Defined_Radio\
boxRF\node_modules\gl\build\webgl.vcxproj]
× Preparing native dependencies: 0 / 1

An unhandled error has occurred inside Forge:
node-gyp failed to rebuild 'E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl'.
Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1

Error: node-gyp failed to rebuild 'E:\Projects\Software_Defined_Radio\boxRF\node_modules\gl'.
Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1

at ModuleRebuilder.rebuildNodeGypModule (E:\Projects\Software_Defined_Radio\boxRF\node_modules\electron-rebuild\src\module-rebuilder.ts:231:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at Rebuilder.rebuildModuleAt (E:\Projects\Software_Defined_Radio\boxRF\node_modules\electron-rebuild\src\rebuild.ts:283:5)
at Rebuilder.rebuild (E:\Projects\Software_Defined_Radio\boxRF\node_modules\electron-rebuild\src\rebuild.ts:189:9)
at E:\Projects\Software_Defined_Radio\boxRF\node_modules\@electron-forge\core\src\util\rebuild.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:\Users\susha\AppData\Roaming\npm-cache_logs\2021-05-28T03_58_03_166Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions