Open seyedaed opened 10 years ago
Hello, @seyedaed. I forked opencv-node, and pushed branch, for VS2012/2013. https://github.com/ayapi/opencv-node/tree/msvs2012-2013
I can't tell it works or not because I'm Win8 64bit user(You're Win7), but if you wouldn't mind, please try it.
@codeboost, Thank you for producing an awesome library!
I tried to setup opencv-node to run using VS2012 on windows 7 with little success. I'm kind of new to this and understand VS 2012 might not be supported right now, but I thought I would share the results in case it might be helpful to anyone.
C:\windows\system32>set OPENCV_ROOT=c:/OpenCV C:\windows\system32>npm install -g opencv-node --msvs_version=2012 npm http GET https://registry.npmjs.org/opencv-node npm http 304 https://registry.npmjs.org/opencv-node npm http GET https://registry.npmjs.org/coffee-script npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/underscore npm http 304 https://registry.npmjs.org/coffee-script npm http 304 https://registry.npmjs.org/keypress npm http 304 https://registry.npmjs.org/underscore
C:\Users\deadeyes\AppData\Roaming\npm\node_modules\opencv-node>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\ node-gyp.js" configure build 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 '/MTd' [C:\Users\deadeye s\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] cl : Command line warning D9025: overriding '/MT' with '/MTd' [C:\Users\deadeye s\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] opencvjs.cpp cl : Command line warning D9025: overriding '/MT' with '/MTd' [C:\Users\deadeye s\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] opencv_manual.cpp cl : Command line warning D9025: overriding '/MT' with '/MTd' [C:\Users\deadeye s\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] addon.cpp ..\src\opencv_manual.cpp(17): error C2065: 'MSG' : undeclared identifier [C:\Us ers\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] ..\src\opencv_manual.cpp(17): error C2146: syntax error : missing ';' before id entifier 'msg' [C:\Users\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\ build\addon.vcxproj] ..\src\opencv_manual.cpp(17): error C2065: 'msg' : undeclared identifier [C:\Us ers\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] ..\src\opencv_manual.cpp(18): error C2065: 'msg' : undeclared identifier [C:\Us ers\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] ..\src\opencv_manual.cpp(18): error C3861: 'GetMessage': identifier not found [ C:\Users\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxp roj] ..\src\opencv_manual.cpp(19): error C2065: 'msg' : undeclared identifier [C:\Us ers\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] ..\src\opencv_manual.cpp(19): error C3861: 'TranslateMessage': identifier not f ound [C:\Users\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addo n.vcxproj] ..\src\opencv_manual.cpp(20): error C2065: 'msg' : undeclared identifier [C:\Us ers\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addon.vcxproj] ..\src\opencv_manual.cpp(20): error C3861: 'DispatchMessage': identifier not fo und [C:\Users\deadeyes\AppData\Roaming\npm\node_modules\opencv-node\build\addon .vcxproj] ..\src\opencvjs.cpp(561): warning C4267: 'argument' : conversion from 'size_t' to 'const int', possible loss of data [C:\Users\deadeyes\AppData\Roaming\npm\no de_modules\opencv-node\build\addon.vcxproj] ..\src\opencvjs.cpp(609): warning C4267: 'argument' : conversion from 'size_t' to 'const int', possible loss of data [C:\Users\deadeyes\AppData\Roaming\npm\no de_modules\opencv-node\build\addon.vcxproj] ..\src\opencvjs.cpp(942): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\deadeyes\AppData\Roaming\npm\node_mod ules\opencv-node\build\addon.vcxproj] ..\src\opencvjs.cpp(1022): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\deadeyes\AppData\Roaming\npm\node_mo dules\opencv-node\build\addon.vcxproj] ..\src\opencvjs.cpp(2573): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\deadeyes\AppData\Roaming\npm\node_mo dules\opencv-node\build\addon.vcxproj] ..\src\opencvjs.cpp(2772): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\deadeyes\AppData\Roaming\npm\node_mo dules\opencv-node\build\addon.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\vector(323): war ning C4506: no definition for inline function 'v8::Persistent v8::Persistent