peterbraden / node-opencv

OpenCV Bindings for node.js
MIT License
4.38k stars 857 forks source link

fail to install - cannot find 'cv.h' file #58

Open astelixoose opened 11 years ago

astelixoose commented 11 years ago

Hi,

When trying to install opencv, getting an error :

screenshot_1

This is problem with include path, but i have no idea how fix it. Please help.

penguin359 commented 11 years ago

This is just a front-end to the actually OpenCV library, have you built and installed that yet?

astelixoose commented 11 years ago

I have installed OpenCV library, but i dont know if it's correctly. How can i check it ?

Installed:

Environment variables:

I created "opencv.pc" in "C:\opt\gtk\lib\pkgconfig\opencv.pc":

# Package Information for pkg-config

prefix=C:/OpenCV
exec_prefix=${prefix}/build/x86/vc10/bin
libdir=${prefix}/build/x86/vc10/lib
includedir_old=${prefix}/build/include/opencv
includedir_new=${prefix}/build/include

Name: OpenCV
Description: Open Source Computer Vision Library
Version: 2.3.1
Libs: ${libdir}/opencv_core231 ${libdir}/opencv_imgproc231 ${libdir}/opencv_highgui231 ${libdir}/opencv_ml231 ${libdir}/opencv_video231 ${libdir}/opencv_features2d231 ${libdir}/opencv_calib3d231 ${libdir}/opencv_objdetect231 ${libdir}/opencv_contrib231 ${libdir}/opencv_legacy231 ${libdir}/opencv_flann231
Cflags: ${includedir_old} ${includedir_new}

Find "cv.h" results:

C:\OpenCV\build\include\opencv\cv.h
C:\OpenCV\include\opencv\cv.h

Listing to files in C:\OpenCV:

.
..
3rdparty
android
build
CMakeLists.txt
cmake_uninstall.cmake.in
cvconfig.h.cmake
data
doc
include
index.rst
modules
opencv-XXX.pc.cmake.in
OpenCV.mk.in
opencv.pc.cmake.in
OpenCVAndroidProject.cmake
OpenCVConfig-version.cmake.in
OpenCVConfig.cmake.in
OpenCVFindIPP.cmake
OpenCVFindLATEX.cmake
OpenCVFindOpenEXR.cmake
OpenCVFindOpenNI.cmake
OpenCVFindPkgConfig.cmake
OpenCVFindXimea.cmake
OpenCVModule.cmake
OpenCVPCHSupport.cmake
README
samples
penguin359 commented 11 years ago

Can you post the output of pkg-config --libs opencv and pkg-config --cflags opencv? For --cflags, you should see something like -I...\include\opencv and if you look inside that folder, you should find cv.h.

astelixoose commented 11 years ago

pkg-config --libs opencv

C:/opt/gtk/build/x86/vc10/lib/opencv_core231 
C:/opt/gtk/build/x86/vc10/lib/opencv_imgproc231 
C:/opt/gtk/build/x86/vc10/lib/opencv_highgui231 
C:/opt/gtk/build/x86/vc10/lib/opencv_ml231 
C:/opt/gtk/build/x86/vc10/lib/opencv_video231 
C:/opt/gtk/build/x86/vc10/lib/opencv_features2d231 
C:/opt/gtk/build/x86/vc10/lib/opencv_calib3d231 
C:/opt/gtk/build/x86/vc10/lib/opencv_objdetect231 
C:/opt/gtk/build/x86/vc10/lib/opencv_contrib231 
C:/opt/gtk/build/x86/vc10/lib/opencv_legacy231 
C:/opt/gtk/build/x86/vc10/lib/opencv_flann231

pkg-config --cflags opencv

C:/opt/gtk/build/include/opencv 
C:/opt/gtk/build/include

These folders do not exist

"cv.h" is only in:

C:\OpenCV\build\include\opencv\cv.h
C:\OpenCV\include\opencv\cv.h
C:\xampp\xampp\perl\lib\CORE\cv.h
C:\cygwin\lib\perl5\5.10\i686-cygwin\CORE\cv.h
carthagan commented 11 years ago

Seems like pkg-config is looking into C:/opt/gtk instead of the prefix that you have defined in "opencv.pc". Maybe he isn't reading the right file. Did you set an environment variable PKG_CONFIG_PATH to the location of "opencv.pc" file and add it to the systems path ?

astelixoose commented 11 years ago

He is reading the file. These are results "pkg-config --debug opencv"

(...)
Reading 'opencv' from file 'C:/opt/gtk/lib/pkgconfig\opencv.pc'
Parsing package file 'C:/opt/gtk/lib/pkgconfig\opencv.pc'
  line>
  line>
  line>prefix=C:/OpenCV
 Variable declaration, 'prefix' overridden with 'C:/opt/gtk'
  line>exec_prefix=${prefix}/build/x86/vc10/bin
 Variable declaration, 'exec_prefix' has value 'C:/opt/gtk/build/x86/vc10/bin'
  line>libdir=${prefix}/build/x86/vc10/lib
 Variable declaration, 'libdir' has value 'C:/opt/gtk/build/x86/vc10/lib'
  line>includedir_old=${prefix}/build/include/opencv
 Variable declaration, 'includedir_old' has value 'C:/opt/gtk/build/include/opencv'
  line>includedir_new=${prefix}/build/include
 Variable declaration, 'includedir_new' has value 'C:/opt/gtk/build/include'
  line>
  line>Name: OpenCV
  line>Description: Open Source Computer Vision Library
  line>Version: 2.3.1
  line>Libs: ${libdir}/opencv_core231 ${libdir}/opencv_imgproc231 ${libdir}/opencv_highgui231 ${libdir}/opencv_ml231 ${libdir}/opencv_video231 ${libdir}/opencv_features2d231 ${libdir}/opencv_calib3d231 ${libdir}/opencv_objdetect231 ${libdir}/opencv_contrib231 ${libdir}/opencv_legacy231 ${libdir}/opencv_flann231
  line>Cflags: ${includedir_old} ${includedir_new}
Path position of 'OpenCV' is 1
Adding 'opencv' to list of known packages, returning as package 'opencv'

I have set the environment variable:

PKG_CONFIG_PATH - C:\opt\gtk\lib\pkgconfig

This is the problem:

Variable declaration, 'prefix' overridden with 'C:/opt/gtk'

but i dont know why

System path is:

path - (...);C:\opt\gtk\bin\;%OPENCV_DIR%\bin;C:\Python27;(...)

In the location "C:\opt\gtk\bin\" i have pkg-config.exe

penguin359 commented 11 years ago

Don't know why, but it seems to be grabbing the prefix from the lib/pkgconfig folder location. Is there a lib/pkgconfig under the OpenCV folder? If there is, can you point PKG_CONFIG_PATH there? If there isn't, can you move /lib/pkgconfig there and update PKG_CONFIG_PATH?

penguin359 commented 11 years ago

Sounds like this is standard behavior according to http://mingw-users.1079350.n2.nabble.com/pkg-config-overrides-prefix-td7578195.html. Two possible solutions, add --dont-define-prefix to binding.gyp as an argument to pkg-config or move the contents of C:\OpenCV to C:\opt\gtk. It sounds like you have installed OpenCV and pkg-config to two different prefixes, but, since Windows doesn't have a standard prefix for FLOSS, pkg-config tries to help the developer by overriding the prefix found in the pkgconfig files since they are usually wrong on Windows.

astelixoose commented 11 years ago

I moved the contents of C:\OpenCV to C:\opt\gtk.

pkg-config --libs opencv

C:/opt/gtk/build/x86/vc10/lib/opencv_core231 
C:/opt/gtk/build/x86/vc10/lib/opencv_imgproc231 
C:/opt/gtk/build/x86/vc10/lib/opencv_highgui231 
C:/opt/gtk/build/x86/vc10/lib/opencv_ml231 
C:/opt/gtk/build/x86/vc10/lib/opencv_video231 
C:/opt/gtk/build/x86/vc10/lib/opencv_features2d231 
C:/opt/gtk/build/x86/vc10/lib/opencv_calib3d231 
C:/opt/gtk/build/x86/vc10/lib/opencv_objdetect231 
C:/opt/gtk/build/x86/vc10/lib/opencv_contrib231 
C:/opt/gtk/build/x86/vc10/lib/opencv_legacy231 
C:/opt/gtk/build/x86/vc10/lib/opencv_flann231

pkg-config --cflags opencv

C:/opt/gtk/build/include/opencv 
C:/opt/gtk/build/include

All these paths are correct.

Find "cv.h" results:

C:\opt\gtk\build\include\opencv
C:\opt\gtk\include\opencv

Environment variables:

But it still does not work ;(

screenshot_2

carthagan commented 11 years ago

It seems that MSBuild doesn't "look" into the includes of opencv. Download the new binding.gyp file, I have fixed it for this case (https://github.com/peterbraden/node-opencv/commit/7ea1435491a754df9e1b4b2ea1b89036bf90983f), or simply add the following lines : ,'include_dirs': [ '<!@(pkg-config --cflags opencv)' ]

astelixoose commented 11 years ago

I cloned this repo and tried to build it.

results "node-gyp rebuild":

gyp info it worked if it ends with ok
gyp info using node-gyp@0.10.6
gyp info using node@0.10.13 | win32 | ia32
gyp info spawn python
gyp info spawn args [ 'c:\\Users\\Raphy\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'e:\\PIASKOWNICA\\projects\\iris_recognition\\opencv\\node-opencv\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'c:\\Users\\Raphy\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'c:\\Users\\Raphy\\.node-gyp\\0.10.13\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=c:\\Users\\Raphy\\.node-gyp\\0.10.13',
gyp info spawn args   '-Dmodule_root_dir=e:\\PIASKOWNICA\\projects\\iris_recognition\\opencv\\node-opencv',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'e:\\PIASKOWNICA\\projects\\iris_recognition\\opencv\\node-opencv\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
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=Win32' ]
  Contours.cc
  Point.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
..\src\Contours.cc(64): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(65): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(93): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(103): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(115): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(127): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(145): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(161): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(180): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Contours.cc(219): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(212): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(212): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
  CascadeClassifierWrap.cc
  Matrix.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
..\src\Matrix.cc(100): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(100): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(103): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(104): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(105): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(106): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\CascadeClassifierWrap.cc(90): warning C4244: '=' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\CascadeClassifierWrap.cc(95): warning C4244: '=' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\CascadeClassifierWrap.cc(96): warning C4244: '=' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(169): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(170): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(181): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(182): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(187): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(187): warning C4244: '=' : conversion from 'double' to 'uchar', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(242): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(259): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(278): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(294): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(450): warning C4244: '=' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(473): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(474): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(476): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(477): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(482): warning C4244: '=' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(506): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(507): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(509): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(510): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(515): warning C4244: '=' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(679): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(679): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(739): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(740): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(741): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(742): warning C4244: 'initializing' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(779): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(780): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(805): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(806): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(819): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(831): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(861): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(959): warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(959): warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(959): warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(991): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(992): error C3861: 'round': identifier not found [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\Matrix.cc(993): error C3861: 'round': identifier not found [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
  VideoCaptureWrap.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
  init.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
..\src\VideoCaptureWrap.cc(48): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
  OpenCV.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
  FaceRecognizer.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
  CamShift.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
  HighGUI.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
..\src\CamShift.cc(48): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\CamShift.cc(48): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\CamShift.cc(48): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
..\src\CamShift.cc(48): warning C4244: 'argument' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flann::Index_<T>': was declared deprecated [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference to class template instantiation 'cv::flann::Index_<T>' being compiled
..\src\HighGUI.cc(77): warning C4244: '=' : conversion from 'int64_t' to 'int', possible loss of data [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Users\Raphy\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Users\\Raphy\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd e:\PIASKOWNICA\projects\iris_recognition\opencv\node-opencv
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok 
carthagan commented 11 years ago

The problem is that there isn't a function called round in the math.h library, so you have to add it :

static inline double round(double value) { return floor(value + 0.5); }

peterbraden commented 11 years ago

Is this a bug in my code? Should I add round? Guessing this is a windows only thing?

carthagan commented 11 years ago

Yeah this is a windows bug. You have to add the round function in Matrix.h !

astelixoose commented 11 years ago

So, i added round function to my math.h:

E:\Program Files\Microsoft Visual Studio 10.0\VC\include\math.h

inline double round(double value)
{
    return floor(value + 0.5);
}

I getting an error from first image when i trying to install opencv. So i installed it from the repo.

git pull
node-gyp rebuild
npm install

I getting warnings only from node-gyp rebuild e.g:

(...)
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning
C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::
New(v8::Handle<T>)' [E:\PIASKOWNICA\projects\iris_recognition\node_modules\open
cv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
  init.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning
C4530: C++ exception handler used, but unwind semantics are not enabled. Specif
y /EHsc [E:\PIASKOWNICA\projects\iris_recognition\node_modules\opencv\build\ope
ncv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning
C4530: C++ exception handler used, but unwind semantics are not enabled. Specif
y /EHsc [E:\PIASKOWNICA\projects\iris_recognition\node_modules\opencv\build\ope
ncv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flan
n::Index_<T>': was declared deprecated [E:\PIASKOWNICA\projects\iris_recognitio
n\node_modules\opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference
   to class template instantiation 'cv::flann::Index_<T>' being compiled
..\src\VideoCaptureWrap.cc(48): warning C4244: 'argument' : conversion from 'do
uble' to 'int', possible loss of data [E:\PIASKOWNICA\projects\iris_recognition
\node_modules\opencv\build\opencv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flan
n::Index_<T>': was declared deprecated [E:\PIASKOWNICA\projects\iris_recognitio
n\node_modules\opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference
   to class template instantiation 'cv::flann::Index_<T>' being compiled
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning
C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::
New(v8::Handle<T>)' [E:\PIASKOWNICA\projects\iris_recognition\node_modules\open
cv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning
C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::
New(v8::Handle<T>)' [E:\PIASKOWNICA\projects\iris_recognition\node_modules\open
cv\build\opencv.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
  OpenCV.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning
C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::
New(v8::Handle<T>)' [E:\PIASKOWNICA\projects\iris_recognition\node_modules\open
cv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
  FaceRecognizer.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning
C4530: C++ exception handler used, but unwind semantics are not enabled. Specif
y /EHsc [E:\PIASKOWNICA\projects\iris_recognition\node_modules\opencv\build\ope
ncv.vcxproj]
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning
C4530: C++ exception handler used, but unwind semantics are not enabled. Specif
y /EHsc [E:\PIASKOWNICA\projects\iris_recognition\node_modules\opencv\build\ope
ncv.vcxproj]
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flan
n::Index_<T>': was declared deprecated [E:\PIASKOWNICA\projects\iris_recognitio
n\node_modules\opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference
   to class template instantiation 'cv::flann::Index_<T>' being compiled
C:\opt\gtk\build\include\opencv2/flann/flann.hpp(233): warning C4996: 'cv::flan
n::Index_<T>': was declared deprecated [E:\PIASKOWNICA\projects\iris_recognitio
n\node_modules\opencv\build\opencv.vcxproj]
          C:\opt\gtk\build\include\opencv2/flann/flann.hpp(278) : see reference
   to class template instantiation 'cv::flann::Index_<T>' being compiled
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning
C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::
New(v8::Handle<T>)' [E:\PIASKOWNICA\projects\iris_recognition\node_modules\open
cv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
  CamShift.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xmemory(196): warning
C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::
New(v8::Handle<T>)' [E:\PIASKOWNICA\projects\iris_recognition\node_modules\open
cv\build\opencv.vcxproj]
          with
          [
              T=v8::Object
          ]
  HighGUI.cc
E:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning
C4530: C++ exception handler used, but unwind semantics are not enabled. Specif
y /EHsc [E:\PIASKOWNICA\projects\iris_recognition\node_modules\opencv\build\ope
ncv.vcxproj]
(...)

and i added this package to my package.json.

npm ls:

iris_recognition@0.0.2 E:\PIASKOWNICA\projects\iris_recognition
├── connect-timeout@0.0.1
├─┬ express@2.5.8
│ ├─┬ connect@1.9.2
│ │ └── formidable@1.0.11
│ ├── mime@1.2.4
│ ├── mkdirp@0.3.0
│ └── qs@0.4.2
├─┬ fileupload@0.2.2
│ ├── async@0.1.22
│ └── mime@1.2.7
├── gm@1.5.0
├─┬ GridFS@0.2.0
│ └─┬ mongodb@1.1.7
│   └── bson@0.1.3
├─┬ jade@0.26.1
│ ├── commander@0.5.2
│ └── mkdirp@0.3.0
├─┬ mongoose@3.1.2
│ ├── hooks@0.2.1
│ ├─┬ mongodb@1.1.7
│ │ └── bson@0.1.3
│ └── ms@0.1.0
├─┬ opencv@0.3.1
│ ├── buffers@0.1.1
│ └─┬ vows@0.7.0
│   ├── diff@1.0.5
│   └── eyes@0.1.8
├─┬ session-mongoose@0.0.2
│ ├─┬ connect@1.9.2
│ │ ├── formidable@1.0.11
│ │ ├── mime@1.2.7
│ │ └── qs@0.5.0
│ └── mongeese@0.0.1
└─┬ stylus@0.28.1
  ├── cssom@0.2.5
  ├── debug@0.7.0
  └── mkdirp@0.3.4

When i added it to application cv = require('opencv') i getting: node app.js:

module.js:356
  Module._extensions[extension](this, filename);
                               ^
Error: no errorE:\PIASKOWNICA\projects\iris_recognition\node_modules\opencv\buil
d\Release\opencv.node
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (E:\PIASKOWNICA\projects\iris_recognition\node_modules
\opencv\lib\bindings.js:1:80)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (E:\PIASKOWNICA\projects\iris_recognition\node_modules
\opencv\lib\opencv.js:6:16)
Machiel-B commented 10 years ago

I'm having the same issue. Did you ever find a solution?

tiny-tinker commented 10 years ago

Same here! I've been banging my head on this for a few days now. Anyone have any other suggestions?

Machiel-B commented 10 years ago

I gave up on this. I'm running an opencv python script through a node child process now.

fabiorogeriosj commented 10 years ago

Hi guys, I was facing the same problem last week.

I solved the problem by installing a virtual machine with Ubuntu and installing OpenCV + Node.js it! It worked perfectly!

darioodiaz commented 9 years ago

I have been searching this error and that's because the node version of the compiling fies is different from the node version that "decompile" the .node project

Here the explanation:

https://github.com/sass/node-sass/issues/76

darioodiaz commented 9 years ago

Something weird is I use opencv 2.4.10, VS 10 and node 0.10 and when I try to use detectObject function when the source image isnt have a face the save function works, but when the image has face the save function doesnt work, any idea? I'll compile the node-gyp with VS 12

darioodiaz commented 9 years ago

I do an npm update and when I recompiled the lib I have this issue u.u, why its so complicated? hahaha, trying to find the solution... I think that the node-gyp compile process doenst match with the nodejs import project