justadudewhohacks / face-recognition.js

Simple Node.js package for robust face detection and face recognition. JavaScript and TypeScript API.
MIT License
1.91k stars 277 forks source link

can't use npm install face-recognition for auto build #151

Open sukda13 opened 5 years ago

sukda13 commented 5 years ago

I need help Every shell that I perform npm, the system will always have this error. I don't know how to solve this problem . Can you teach me step by step. Please. ◕︵◕

Build succeeded. 0 Warning(s) 0 Error(s)

Time Elapsed 00:02:02.62

face-recognition@0.9.4 install E:\Face node\face-recognition.js\node_modules\face-recognition node-gyp rebuild

E:\Face node\face-recognition.js\node_modules\face-recognition>if not defined npm_config_node_gyp (node "C:\Users\MSI\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\MSI\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. cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] index.cc cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] ImageRGB.cc cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] ImageGray.cc cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] CvImage.cc Rect.cc cl : Command line warning D9025: overriding '/MT' with '/MD' [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj] cl : Command line warning D9025: overriding '/GR-' with '/GR' [E:\Face node\face-recognition.js\node_modules\face-recog nition\build\facerec.vcxproj] MmodRect.cc FullObjectDetection.cc Point.cc e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\ImageRGB.cc)e:\face node\face-recognition.js\node_modul es\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::Int32Value': was declared deprecated (compili ng source file ..\cc\MmodRect.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxproj ]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\ImageRGB.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Va lue::Int32Value' (compiling source file ..\cc\MmodRect.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\MmodRect.cc)e:\face node\face-recognition.js\node_modu les\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Uint32Value': was declared deprecated (compi ling source file ..\cc\ImageRGB.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxpr oj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\MmodRect.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::V alue::Uint32Value' (compiling source file ..\cc\ImageRGB.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\ImageRGB.cc)e:\face node\face-recognition.js\node_modu les\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compi ling source file ..\cc\MmodRect.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxpr oj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageRGB.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::V alue::NumberValue' (compiling source file ..\cc\MmodRect.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\MmodRect.cc)e:\face node\face-recognition.js\node_modu les\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compi ling source file ..\cc\ImageRGB.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxpr oj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\MmodRect.cc) c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageRGB.cc)e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(11 3): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compiling source file ..\cc\MmodRect.cc)

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\MmodRect.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\ImageRGB.cc) [E:\Face node\face-recognition.js\node_m odules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageRGB.cc) e:\face node\face-recognition.js\node_modules\face-recognition\cc\mmodrect.h(2): fatal error C1083: Cannot open include file: 'dlib/image_processing/full_object_detection.h': No such file or directory (compiling source file ..\cc\MmodRect .cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\face-recognition\cc\imagergb.h(2): fatal error C1083: Cannot open include file: 'dlib/matrix.h': No such file or directory (compiling source file ..\cc\ImageRGB.cc) [E:\Face node\face-recognit ion.js\node_modules\face-recognition\build\facerec.vcxproj] Array.cc ChipDetails.cc e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\CvImage.cc) [E:\Face node\face-recognition.js\node_modu les\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\CvImage.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\index.cc) [E:\Face node\face-recognition.js\node_module s\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\index.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\CvImage.cc) [E:\Face node\face-recognition.js\node_mod ules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\CvImage.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\index.cc) [E:\Face node\face-recognition.js\node_modul es\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\CvImage.cc) [E:\Face node\face-recognition.js\node_mod ules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\index.cc) c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\CvImage.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\index.cc)e:\face node\face-recognition.js\node_modules \native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compilin g source file ..\cc\CvImage.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\index.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\index.cc) [E:\Face node\face-recognition.js\node_modul es\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\index.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\index.cc) [E:\Face node\face-recognition.js\node_modu les\face-recognition\build\facerec.vcxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\index.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Valu e::NumberValue' (compiling source file ..\cc\CvImage.cc)e:\face node\face-recognition.js\node_modules\native-node-uti ls\src\typeconverters.h(25): warning C4996: 'v8::Value::Int32Value': was declared deprecated (compiling source file . .\cc\Rect.cc)e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::Int32Value': was declared deprecated (compiling source file ..\cc\ImageGray.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\FullObjectDetection.cc) [E:\Face node\face-recognition. js\node_modules\face-recognition\build\facerec.vcxproj]

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\CvImage.cc) [E:\Face node\face-recognition.js\node_mo dules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\CvImage.cc)

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\Rect.cc)e:\face node\face-recognition.js\node_modules\face-recognition\cc\utils.h(2): fatal error C1 083: Cannot open include file: 'dlib/image_io.h': No such file or directory (compiling source file ..\cc\index.cc)

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\FullObjectDetection.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling source file ..\cc\ImageGray.cc)e:\face node\face-recognition.js\node_modules\n ative-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Uint32Value': was declared deprecated (compilin g source file ..\cc\Rect.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\FullObjectDetection.cc)c:\users\msi.node-gyp\10.15.0\ include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\Rect.cc)e:\face node\face-recognition.js\nodemodules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Uint32Val ue': was declared deprecated (compiling source file ..\cc\ImageGray.cc)utils.cc [E:\Face node\face-recognition.js\node modules\face-recognition\build\facerec.vcxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\FullObjectDetection.cc)e:\face node\face-recognition.js\node_modules\face-recognition\cc\genericima gebase.h(2): fatal error C1083: Cannot open include file: 'dlib/matrix.h': No such file or directory (compiling sourc e file ..\cc\CvImage.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\FullObjectDetection.cc)e:\face node\face-recognition.j s\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::NumberValue': was declared deprec ated (compiling source file ..\cc\Rect.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\ImageGray.cc)e:\face node\face-recognition.js\node_modules\na tive-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::Int32Value': was declared deprecated (compiling so urce file ..\cc\Point.cc)ImageWindow.cc [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.v cxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FullObjectDetection.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaratio n of 'v8::Value::NumberValue' (compiling source file ..\cc\Rect.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2 478): note: see declaration of 'v8::Value::Int32Value' (compiling source file ..\cc\Point.cc)e:\face node\face-recogn ition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::NumberValue': was declar ed deprecated (compiling source file ..\cc\ImageGray.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\FullObjectDetection.cc)e:\face node\face-recognition.j s\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::NumberValue': was declared deprec ated (compiling source file ..\cc\Rect.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facere c.vcxproj]

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\Point.cc) [E:\Face node\face-recognition.js\node_modul es\face-recognition\build\facerec.vcxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FullObjectDetection.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaratio n of 'v8::Value::Uint32Value' (compiling source file ..\cc\Point.cc) c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\Rect.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value ::NumberValue' (compiling source file ..\cc\ImageGray.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\FullObjectDetection.cc) [E:\Face node\face-recognitio n.js\node_modules\face-recognition\build\facerec.vcxproj]

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\Rect.cc)e:\face node\face-recognition.js\node_modules \native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compilin g source file ..\cc\Point.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\ImageGray.cc)c:\users\msi.node-gyp\10.15.0\include\no de\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FullObjectDetection.cc) [ E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\Rect.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value ::NumberValue' (compiling source file ..\cc\Point.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: se e declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageGray.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\ImageGray.cc)e:\face node\face-recognition.js\node_mo dules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::NumberValue': was declared deprecated (com piling source file ..\cc\Point.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxpro j]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageGray.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8:: Value::NumberValue' (compiling source file ..\cc\Point.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\Point.cc) [E:\Face node\face-recognition.js\node_modu les\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\Point.cc) e:\face node\face-recognition.js\node_modules\face-recognition\cc\rect.h(2): fatal error C1083: Cannot open include fil e: 'dlib/geometry/rectangle.h': No such file or directory (compiling source file ..\cc\Rect.cc) [E:\Face node\face-reco gnition.js\node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\face-recognition\cc\fullobjectdetection.h(2): fatal error C1083: Cannot o pen include file: 'dlib/image_processing/full_object_detection.h': No such file or directory (compiling source file ..\ cc\FullObjectDetection.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\face-recognition\cc\imagegray.h(2): fatal error C1083: Cannot open includ e file: 'dlib/matrix.h': No such file or directory (compiling source file ..\cc\ImageGray.cc) [E:\Face node\face-recogn ition.js\node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\face-recognition\cc\point.h(2): fatal error C1083: Cannot open include fi le: 'dlib/geometry/vector.h': No such file or directory (compiling source file ..\cc\Point.cc) [E:\Face node\face-recog nition.js\node_modules\face-recognition\build\facerec.vcxproj] ShapePredictor.cc FrontalFaceDetector.cc FaceDetectorNet.cc FaceRecognizerNet.cc e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\Array.cc) [E:\Face node\face-recognition.js\node_module s\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\Array.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\Array.cc) [E:\Face node\face-recognition.js\node_modul es\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\Array.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\Array.cc) [E:\Face node\face-recognition.js\node_modul es\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\Array.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\Array.cc) [E:\Face node\face-recognition.js\node_modul es\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\Array.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\Array.cc) [E:\Face node\face-recognition.js\node_modu les\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\Array.cc) e:\face node\face-recognition.js\node_modules\face-recognition\cc\array.h(2): fatal error C1083: Cannot open include fi le: 'dlib/matrix.h': No such file or directory (compiling source file ..\cc\Array.cc) [E:\Face node\face-recognition.js \node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\nodemodules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\ChipDetails.cc) [E:\Face node\face-recognition.js\node modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\ChipDetails.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\ChipDetails.cc) [E:\Face node\face-recognition.js\node _modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\ChipDetails.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\ChipDetails.cc) [E:\Face node\face-recognition.js\node _modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ChipDetails.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\ChipDetails.cc) [E:\Face node\face-recognition.js\node _modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ChipDetails.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\ChipDetails.cc) [E:\Face node\face-recognition.js\nod e_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ChipDetails.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\utils.cc) [E:\Face node\face-recognition.js\node_module s\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\utils.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\ImageWindow.cc)e:\face node\face-recognition.js\node_mo dules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Uint32Value': was declared deprecated (com piling source file ..\cc\utils.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxpro j]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\ImageWindow.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8: :Value::Uint32Value' (compiling source file ..\cc\utils.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\ImageWindow.cc)e:\face node\face-recognition.js\node_m odules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::NumberValue': was declared deprecated (co mpiling source file ..\cc\utils.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\build\facerec.vcxpr oj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\ImageWindow.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8 ::Value::NumberValue' (compiling source file ..\cc\utils.cc)e:\face node\face-recognition.js\node_modules\face-recogn ition\cc\chipdetails.h(2): fatal error C1083: Cannot open include file: 'dlib/image_transforms.h': No such file or di rectory (compiling source file ..\cc\ChipDetails.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\utils.cc) [E:\Face node\face-recognition.js\node_modul es\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\utils.cc)e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compiling source file ..\cc\ImageWindow.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\utils.cc) [E:\Face node\face-recognition.js\node_modu les\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\utils.cc)

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageWindow.cc) e:\face node\face-recognition.js\node_modules\face-recognition\cc\utils.h(2): fatal error C1083: Cannot open include fi le: 'dlib/image_io.h': No such file or directory (compiling source file ..\cc\utils.cc) [E:\Face node\face-recognition. js\node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\ImageWindow.cc) [E:\Face node\face-recognition.js\node _modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageWindow.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\ImageWindow.cc) [E:\Face node\face-recognition.js\nod e_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ImageWindow.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\ShapePredictor.cc) [E:\Face node\face-recognition.js\no de_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\ShapePredictor.cc)e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters .h(25): warning C4996: 'v8::Value::Int32Value': was declared deprecated (compiling source file ..\cc\FrontalFaceDetec tor.cc)

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\FrontalFaceDetector.cc)e:\face node\face-recognition.js\node_modules\face-recognition\cc\imagewindow .h(2): fatal error C1083: Cannot open include file: 'dlib/gui_widgets.h': No such file or directory (compiling source file ..\cc\ImageWindow.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\ShapePredictor.cc) [E:\Face node\face-recognition.js\n ode_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\FrontalFaceDetector.cc) [E:\Face node\face-recognition .js\node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\ShapePredictor.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\FrontalFaceDetector.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\ShapePredictor.cc)e:\face node\face-recognition.js\nod e_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compiling source file ..\cc\FrontalFaceDetector.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\bu ild\facerec.vcxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ShapePredictor.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FrontalFaceDetector.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\ShapePredictor.cc)e:\face node\face-recognition.js\nod e_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::NumberValue': was declared deprecated (compiling source file ..\cc\FrontalFaceDetector.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\bu ild\facerec.vcxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\ShapePredictor.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FrontalFaceDetector.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\FrontalFaceDetector.cc)e:\face node\face-recognition. js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::NumberValue': was declared depr ecated (compiling source file ..\cc\ShapePredictor.cc) [E:\Face node\face-recognition.js\node_modules\face-recognition\ build\facerec.vcxproj]

c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FrontalFaceDetector.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaratio n of 'v8::Value::NumberValue' (compiling source file ..\cc\ShapePredictor.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\FaceDetectorNet.cc) [E:\Face node\face-recognition.js\n ode_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\face-recognition\cc\frontalfacedetector.h(2): fatal error C1083: Cannot o pen include file: 'dlib/image_processing/frontal_face_detector.h': No such file or directory (compiling source file ..\ cc\FrontalFaceDetector.cc)c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value:: Int32Value' (compiling source file ..\cc\FaceDetectorNet.cc) [E:\Face node\face-recognition.js\node_modules\face-recogn ition\build\facerec.vcxproj]

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\FaceDetectorNet.cc) [E:\Face node\face-recognition.js\ node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\FaceDetectorNet.cc)e:\face node\face-recognition.js\node_modules\face-recognition\cc\shapepredictor .h(2): fatal error C1083: Cannot open include file: 'dlib/image_processing.h': No such file or directory (compiling s ource file ..\cc\ShapePredictor.cc)

e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\FaceDetectorNet.cc) [E:\Face node\face-recognition.js\ node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FaceDetectorNet.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\FaceDetectorNet.cc) [E:\Face node\face-recognition.js\ node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FaceDetectorNet.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\FaceDetectorNet.cc) [E:\Face node\face-recognition.js \node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FaceDetectorNet.cc) e:\face node\face-recognition.js\node_modules\face-recognition\cc\facedetectornet.h(2): fatal error C1083: Cannot open include file: 'dlib/dnn.h': No such file or directory (compiling source file ..\cc\FaceDetectorNet.cc) [E:\Face node\fa ce-recognition.js\node_modules\face-recognition\build\facerec.vcxproj] e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(25): warning C4996: 'v8::Value::In t32Value': was declared deprecated (compiling source file ..\cc\FaceRecognizerNet.cc) [E:\Face node\face-recognition.js \node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2478): note: see declaration of 'v8::Value::Int32Value' (compiling s ource file ..\cc\FaceRecognizerNet.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(43): warning C4996: 'v8::Value::Ui nt32Value': was declared deprecated (compiling source file ..\cc\FaceRecognizerNet.cc) [E:\Face node\face-recognition.j s\node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2477): note: see declaration of 'v8::Value::Uint32Value' (compiling source file ..\cc\FaceRecognizerNet.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(60): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\FaceRecognizerNet.cc) [E:\Face node\face-recognition.j s\node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FaceRecognizerNet.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(95): warning C4996: 'v8::Value::Nu mberValue': was declared deprecated (compiling source file ..\cc\FaceRecognizerNet.cc) [E:\Face node\face-recognition.j s\node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FaceRecognizerNet.cc) e:\face node\face-recognition.js\node_modules\native-node-utils\src\typeconverters.h(113): warning C4996: 'v8::Value::N umberValue': was declared deprecated (compiling source file ..\cc\FaceRecognizerNet.cc) [E:\Face node\face-recognition. js\node_modules\face-recognition\build\facerec.vcxproj] c:\users\msi.node-gyp\10.15.0\include\node\v8.h(2475): note: see declaration of 'v8::Value::NumberValue' (compiling source file ..\cc\FaceRecognizerNet.cc) e:\face node\face-recognition.js\node_modules\face-recognition\cc\facerecognizernet.h(2): fatal error C1083: Cannot ope n include file: 'dlib/dnn.h': No such file or directory (compiling source file ..\cc\FaceRecognizerNet.cc) [E:\Face nod e\face-recognition.js\node_modules\face-recognition\build\facerec.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\MSI\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262: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\MSI\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd E:\Face node\face-recognition.js\node_modules\face-recognition gyp ERR! node -v v10.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open 'E:\Face node\face-recognition.js\package.json' npm WARN face-recognition.js No description npm WARN face-recognition.js No repository field. npm WARN face-recognition.js No README data npm WARN face-recognition.js No license field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! face-recognition@0.9.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the face-recognition@0.9.4 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\MSI\AppData\Roaming\npm-cache_logs\2019-02-25T07_56_15_896Z-debug.log

sukda13 commented 5 years ago

I use window 10 for this system.

giangvincent commented 5 years ago

same issue

giangvincent commented 5 years ago

I think It maybe the white space of the directory "e:\face node..." , you need to change it. @justadudewhohacks had noted that issue : Important note: node-gyp won't handle whitespaces properly, thus make sure, that the path to your project directory does not contain any whitespaces. Installing opencv4nodejs under "C:\Program Files\some_dir" or similar will not work and will fail with: "fatal error C1083: Cannot open include file: 'opencv2/core.hpp'"!**

MrRefactoring commented 5 years ago

@mfvodka107 I do not think this is a problem with spaces. I have no spaces, but I have the same problem.

MrRefactoring commented 5 years ago

I spent a couple of days with a solution to this problem. As a result, it became easier for me to switch to face-api.js than to continue to look for a solution to this problem.

MrRefactoring commented 5 years ago

I also tried to switch between nodejs and node-gyp versions, but this did not help. I tried to install this dependency in the c:/test directory, but I also received the same error. I also tried to update dependency versions in some dependencies.