Closed Jambickz closed 1 month ago
I've been trying to solve this problem myself for about a month, nothing helps. previously there was an error right after building, when I put a different version of python, I managed to at least start compiling, but after 10 minutes of waiting, the error appears.
try to use pnpm to install this library - somehow it works, yarn\npm does not work
try to use pnpm to install this library - somehow it works, yarn\npm does not work
boss,pnpm not work for me T0T
PS C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm> pnpm install @u4/opencv4nodejs -D
Packages: +204
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 204, reused 203, downloaded 1, added 1, done
node_modules/.pnpm/@u4+opencv4nodejs@7.1.1_typescript@5.5.4/node_modules/@u4/opencv4nodejs: Running installnode_modules/.pnpm/@u4+opencv4nodejs@7.1.1_typescript@5.5.4/node_modules/@u4/opencv4nodejs: Running install script, failed in 12.3s
.../node_modules/@u4/opencv4nodejs install$ node-gyp rebuild
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@10.2.0
│ gyp info using node@20.16.0 | win32 | x64
│ gyp info find Python using Python version 3.11.2 found at "C:\Users\Administrator\AppData\Local\Progra…
│ gyp info find VS using VS2019 (16.11.35130.168) found at:
│ gyp info find VS "I:\SOFT\soft\VS2019"
│ gyp info find VS run with --verbose for detailed information
│ gyp info spawn C:\Users\Administrator\AppData\Local\Programs\Python\Python311\python.exe
│ gyp info spawn args [
│ gyp info spawn args 'C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\node_modules\.pnpm…
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'msvs',
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\node_modules\.pnpm…
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\node_modules\.pnpm…
│ gyp info spawn args '-I',
│ gyp info spawn args 'C:\Users\Administrator\AppData\Local\node-gyp\Cache\20.16.0\include\node…
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=C:\Users\Administrator\AppData\Local\node-gyp\Cache\20.16.…
│ gyp info spawn args '-Dnode_gyp_dir=C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\node…
│ gyp info spawn args '-Dnode_lib_file=C:\\Users\\Administrator\\AppData\\Local\\node-gyp\\C…
│ gyp info spawn args '-Dmodule_root_dir=C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\n…
│ 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 'C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\node_modules\.pnpm…
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn I:\SOFT\soft\VS2019\MSBuild\Current\Bin\MSBuild.exe
│ gyp info spawn args [
│ gyp info spawn args 'build\binding.sln',
│ gyp info spawn args '/clp:Verbosity=minimal',
│ gyp info spawn args '/nologo',
│ gyp info spawn args '/p:Configuration=Release;Platform=x64'
│ gyp info spawn args ]
│ �ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�-m�����ء�
│ I:\SOFT\soft\VS2019\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.WindowsSDK.targets(46,5): error MSB8036: �…
│ gyp ERR! build error
│ gyp ERR! stack Error: I:\SOFT\soft\VS2019\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1
│ gyp ERR! stack at ChildProcess.
│ gyp ERR! stack at ChildProcess.emit (node:events:519:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
│ gyp ERR! System Windows_NT 10.0.19045
│ gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Administrator\Desktop\opencv\ope…
│ gyp ERR! cwd C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\node_modules.pnpm\@u4+opencv4nod…
│ gyp ERR! node -v v20.16.0
│ gyp ERR! node-gyp -v v10.2.0
│ gyp ERR! not ok
└─ Failed in 12.3s at C:\Users\Administrator\Desktop\opencv\opencv4nodejs-npm\node_modules.pnpm\@u4+opencv4nodejs@7.1.1_typescript@5.5.4\node_modules\@u4\opencv4nodejs
ELIFECYCLE Command failed with exit code 1.
when running npm install @u4/opencv4nodejs i get this error
windows 11 v18.20.3 Python 3.10.0 cmake version 3.29.3 Visual studio tools 2022 node-gyp v10.1.0 I don't have defender
package.json file package.json
Log console:
LOG file 2024-06-24T12_01_05_613Z-debug-0.log