Closed Nick-lab closed 5 years ago
damn well over a week and nothing at all?
Looks like the same as #642
Might be a simple fix (possibly S3 bucket permissions), but right now it seems like this module is completely broken/unusable
S3 was only ever a temporary cache for prebuilt binaries, but it was causing too much confusion so I removed it.
still same error is there a version to install for this fix? eg npm install --save opencv@6.2.0
?
6.2 should be fine
still same issue
C:\Users\Brian\Documents\apps\Electron Apps\AxeHouse\node_modules\opencv>if not defined npm_config_node_gyp (node "C:\Users\Brian\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\Brian\AppData\Roaming\npm\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.
init.cc
Matrix.cc
OpenCV.cc
CascadeClassifierWrap.cc
Contours.cc
Point.cc
VideoCaptureWrap.cc
VideoWriterWrap.cc
CamShift.cc
HighGUI.cc
FaceRecognizer.cc
Features2d.cc
BackgroundSubtractor.cc
Constants.cc
Calib3D.cc
ImgProc.cc
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Point.cc) [C:\Users\Brian\Documents\apps\Electron Apps\Ax
eHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\init.cc) [C:\Users\Brian\Documents\apps\Electron Apps\Axe
House\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\VideoCaptureWrap.cc) [C:\Users\Brian\Documents\apps\Elect
ron Apps\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Constants.cc) [C:\Users\Brian\Documents\apps\Electron App
s\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\ImgProc.cc) [C:\Users\Brian\Documents\apps\Electron Apps\
AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\FaceRecognizer.cc) [C:\Users\Brian\Documents\apps\Electro
n Apps\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Contours.cc) [C:\Users\Brian\Documents\apps\Electron Apps
\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Matrix.cc) [C:\Users\Brian\Documents\apps\Electron Apps\A
xeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\VideoWriterWrap.cc) [C:\Users\Brian\Documents\apps\Electr
on Apps\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\OpenCV.cc) [C:\Users\Brian\Documents\apps\Electron Apps\A
xeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\HighGUI.cc) [C:\Users\Brian\Documents\apps\Electron Apps\
AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Calib3D.cc) [C:\Users\Brian\Documents\apps\Electron Apps\
AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\CamShift.cc) [C:\Users\Brian\Documents\apps\Electron Apps
\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\CascadeClassifierWrap.cc) [C:\Users\Brian\Documents\apps\
Electron Apps\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\BackgroundSubtractor.cc) [C:\Users\Brian\Documents\apps\E
lectron Apps\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Features2d.cc) [C:\Users\Brian\Documents\apps\Electron Ap
ps\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
Stereo.cc
LDAWrap.cc
Histogram.cc
win_delay_load_hook.cc
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Stereo.cc) [C:\Users\Brian\Documents\apps\Electron Apps\A
xeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\Histogram.cc) [C:\Users\Brian\Documents\apps\Electron App
s\AxeHouse\node_modules\opencv\build\opencv.vcxproj]
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\src\LDAWrap.cc) [C:\Users\Brian\Documents\apps\Electron Apps\
AxeHouse\node_modules\opencv\build\opencv.vcxproj]
nativemat.cc
win_delay_load_hook.cc
c:\opencv\build\include\opencv2\photo\photo.hpp(49): fatal error C1083: Cannot open include file: 'opencv2/photo/photo_
c.h': No such file or directory (compiling source file ..\test\nativemat.cc) [C:\Users\Brian\Documents\apps\Electron Ap
ps\AxeHouse\node_modules\opencv\build\test_nativemat.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\Brian\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Brian\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Brian\Documents\apps\Electron Apps\AxeHouse\node_modules\opencv
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN @angular/animations@7.2.0 requires a peer of @angular/core@7.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv@6.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the opencv@6.2.0 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\Brian\AppData\Roaming\npm-cache\_logs\2019-03-22T13_01_03_787Z-debug.log
I don't think that's the same issue. That looks like a path problem where node-opencv can't find your local install of opencv
that's weird i have all the paths correct
C:\Users\Brian\Documents\apps\tane>echo %OPENCV_DIR%
C:\OpenCV\build\x64\vc14
C:\Users\Brian\Documents\apps\tane>echo %OPENCV_INCLUDE_DIR%
C:\OpenCV\build\include
C:\Users\Brian\Documents\apps\tane>echo %OPENCV_LIB_DIR%
C:\OpenCV\build\x64\vc14\lib
Yeah not sure, just saying that this:
Cannot open include file: 'opencv2/photo/photo_c.h': No such file or directory
Doesn't look the same as the original S3 issue.
okay well ill leave this issue closed then. I just don't want to bother anybody else or open a new issue. Thanks for all the help you two have given me I really do appreciate it.
if anybody else is having this same issue with node-opencv go to opencv4nodejs repository much better installation let it generate and install for you instead of trying to figure out what is breaking this one.
@Nick-lab did you get opencv4nodejs running? I mean did you manage to bundle it? I am trying since weeks and can't get it working...
Been trying to get this package to install for weeks now and didn't want to bother devs but i am at the end of my rope. have come from all other common errors that where fixed from other tickets like #580 and making sure Python Path is defined correctly now im having issues with MSBuild.exe and have tried to follow general fixes for this error mostly for node-gyp package but am not sure if this was necessary.
Output
any help would be appreciated.
edit
sigh kinda figured I wouldn't get anything back.