Ask Your Question

lesca's profile - activity

2014-02-10 01:57:05 -0600 commented question Failed to compile cv2.pyd with VS 2012

@berak That's all right. but there was an error when I submit my question. I guess that's why the duplicate appears.

2014-02-10 01:55:16 -0600 commented answer Failed to compile cv2.pyd with VS 2012

That's right! It was successfully compiled with RELEASE build.

2014-02-10 01:54:16 -0600 received badge  Scholar (source)
2014-02-09 05:43:01 -0600 received badge  Supporter (source)
2014-02-08 10:56:42 -0600 asked a question Failed to compile cv2.pyd with VS 2012

Hello experts,

I am trying to compiling opencv on my computer but with no luck. Please help and find where is wrong!

My platform:

Windows 7 + VS2012 + Cmaker 2.8.11.2 + Python 2.7.6

I am getting following errors, but I am not sure what lib I am missing. Any help is welcome!

Error 2 error LNK2019: unresolved external symbol __imp___Py_NegativeRefcount referenced in function __catch$?pycvCalcEMD2@@YAPAU_object@@PAU1@00@Z$0 C:\opencv\build\modules\python\cv2.obj opencv_python
Error 3 error LNK2019: unresolved external symbol __imp___Py_Dealloc referenced in function __catch$?pycvCalcEMD2@@YAPAU_object@@PAU1@00@Z$0 C:\opencv\build\modules\python\cv2.obj opencv_python
Error 4 error LNK2019: unresolved external symbol __imp___PyObject_DebugMalloc referenced in function "struct _object * __cdecl pyopencv_CvRTrees_CvRTrees(struct _object *,struct _object *,struct _object *)" (?pyopencv_CvRTrees_CvRTrees@@YAPAU_object@@PAU1@00@Z) C:\opencv\build\modules\python\cv2.obj opencv_python
Error 5 error LNK2019: unresolved external symbol __imp___PyObject_DebugFree referenced in function "void __cdecl Capture_dealloc(struct _object *)" (?Capture_dealloc@@YAXPAU_object@@@Z) C:\opencv\build\modules\python\cv2.obj opencv_python
Error 6 error LNK2019: unresolved external symbol __imp__Py_InitModule4TraceRefs referenced in function "struct _object * __cdecl init_cv(void)" (?init_cv@@YAPAU_object@@XZ) C:\opencv\build\modules\python\cv2.obj opencv_python
Error 7 error LNK2001: unresolved external symbol __imp___Py_RefTotal C:\opencv\build\modules\python\cv2.obj opencv_python
Error 8 error LNK1120: 6 unresolved externals C:\opencv\build\lib\Debug\cv2.pyd opencv_python
2014-02-08 10:55:57 -0600 asked a question Failed to compile cv2.pyd with VS 2012

Hello experts,

I am trying to compiling opencv on my computer but with no luck. Please help and find where is wrong!

My platform:

Windows 7 + VS2012 + Cmaker 2.8.11.2 + Python 2.7.6

I am getting following errors, but I am not sure what lib I am missing. Any help is welcome!

Error 2 error LNK2019: unresolved external symbol __imp___Py_NegativeRefcount referenced in function __catch$?pycvCalcEMD2@@YAPAU_object@@PAU1@00@Z$0 C:\opencv\build\modules\python\cv2.obj opencv_python
Error 3 error LNK2019: unresolved external symbol __imp___Py_Dealloc referenced in function __catch$?pycvCalcEMD2@@YAPAU_object@@PAU1@00@Z$0 C:\opencv\build\modules\python\cv2.obj opencv_python
Error 4 error LNK2019: unresolved external symbol __imp___PyObject_DebugMalloc referenced in function "struct _object * __cdecl pyopencv_CvRTrees_CvRTrees(struct _object *,struct _object *,struct _object *)" (?pyopencv_CvRTrees_CvRTrees@@YAPAU_object@@PAU1@00@Z) C:\opencv\build\modules\python\cv2.obj opencv_python
Error 5 error LNK2019: unresolved external symbol __imp___PyObject_DebugFree referenced in function "void __cdecl Capture_dealloc(struct _object *)" (?Capture_dealloc@@YAXPAU_object@@@Z) C:\opencv\build\modules\python\cv2.obj opencv_python
Error 6 error LNK2019: unresolved external symbol __imp__Py_InitModule4TraceRefs referenced in function "struct _object * __cdecl init_cv(void)" (?init_cv@@YAPAU_object@@XZ) C:\opencv\build\modules\python\cv2.obj opencv_python
Error 7 error LNK2001: unresolved external symbol __imp___Py_RefTotal C:\opencv\build\modules\python\cv2.obj opencv_python
Error 8 error LNK1120: 6 unresolved externals C:\opencv\build\lib\Debug\cv2.pyd opencv_python