我一直在遵循这里的指示信息:http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port,并且刚刚完成了make -j8步骤。尽管制作完成了100%,但我遇到了错误
make[2]: *** [interfaces/python/CMakeFiles/cvpy.dir/cv.o] Error 1
make[1]: *** [interfaces/python/CMakeFiles/cvpy.dir/all] Error 2
make: *** [all] Error 2
/other/open_cv/opencv/opencv/interfaces/python/cv.cpp:18: error: ‘Py_ssize_t’ does not name a type
/other/open_cv/opencv/opencv/interfaces/python/cv.cpp:206: error: ‘Py_ssize_t’ does not name a type
/other/open_cv/opencv/opencv/interfaces/python/cv.cpp: In function ‘PyObject* iplimage_tostring(PyObject*, PyObject*)’:
/other/open_cv/opencv/opencv/interfaces/python/cv.cpp:282: error: ‘what_size’ was not declared in this scope
/other/open_cv/opencv/opencv/interfaces/python/cv.cpp: In function ‘PyObject* cvmat_tostring(PyObject*, PyObject*)’:
/other/open_cv/opencv/opencv/interfaces/python/cv.cpp:425: error: ‘what_size’ was not declared in this scope
最佳答案
我有一个旧版本的python(MacPython覆盖了默认的python版本)。只需摆脱MacPython,一切就好了。
https://stackoverflow.com/questions/2278669/
相关文章:
visual-studio-2008 - CBlobResult令人费解。使用Visual C++2
c# - 如何在 Emgu 上为视频或相机捕捉进行白色 Blob 跟踪?
visual-studio-2008 - 如何在Visual C++上设置OpenCV 2.0?
opencv - cvWarpPerspective,具有转换矩阵,如何提取四点?
docker - Windows 容器无法访问互联网,但 Linux 容器可以 - 在主机上激活 V
visual-c++ - Visual c++ OpenCV 2.1 contains()