Build failure snow leopard 10.6.3 (Bug #257)
Description
/Library/Python/2.6/site-packages/numpy-1.4.0.dev7542_20091216-py2.6-macosx-10.6-universal.egg/numpy/core/include/numpy/npy_common.h:79:2: error: #error Must use Python with unicode enabled. [ 92%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acascadeandhog.o [ 92%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/achesscorners.o [ 92%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acolor.o /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:13: error: expected initializer before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:16: error: ISO C++ forbids declaration of ‘PyObject?_HEAD’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:17: error: expected ‘;’ before ‘void’ /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:18: error: ‘Py_ssize_t’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:22: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:24: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:24: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:29: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:31: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:31: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:36: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:38: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:38: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:43: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:45: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:45: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:49: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:54: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:56: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:56: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:60: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:62: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:62: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:67: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:69: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:69: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:73: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:75: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:75: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:79: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:81: error: ISO C++ forbids declaration of ‘PyObject?’ with no type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:81: error: expected ‘;’ before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:85: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:93: error: ‘PyObject?’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:96: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:101: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:106: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:111: error: ‘PyObject?_HEAD’ does not name a type /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:115: error: ‘PyObject?’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:115: error: ‘o’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:116: error: ‘PyObject?’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:116: error: ‘o’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:117: error: ‘PyObject?’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:117: error: ‘o’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:118: error: ‘PyObject?’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:118: error: ‘o’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:118: error: expected primary-expression before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:118: error: ‘dst’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:118: error: expected primary-expression before ‘const’ /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:118: error: initializer expression list treated as compound expression /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:119: error: ‘PyObject?’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:119: error: ‘o’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:119: error: expected primary-expression before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:119: error: ‘dst’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:119: error: expected primary-expression before ‘const’ /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:119: error: initializer expression list treated as compound expression /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:120: error: ‘PyObject?’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:120: error: ‘o’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:120: error: expected primary-expression before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:120: error: ‘dst’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:120: error: expected primary-expression before ‘const’ /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:120: error: initializer expression list treated as compound expression /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:121: error: ‘PyObject?’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:121: error: ‘o’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:121: error: expected primary-expression before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:121: error: ‘dst’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:121: error: expected primary-expression before ‘const’ /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:121: error: initializer expression list treated as compound expression /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:122: error: expected initializer before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:123: error: expected initializer before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:124: error: expected initializer before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:125: error: expected initializer before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:145: error: expected initializer before ‘*’ token /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp: In function ‘void translate_error_to_exception()’: /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:150: error: ‘opencv_error’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:150: error: ‘PyErr?_SetString’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp: In function ‘int failmsg(const char*, ...)’: /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:180: error: ‘PyExc?_TypeError’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:180: error: ‘PyErr?_SetString’ was not declared in this scope /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp: At global scope: /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:188: error: expected initializer before ‘*’ token [ 92%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acomposeRT.o /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:115: warning: ‘is_iplimage’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:116: warning: ‘is_cvmat’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:117: warning: ‘is_cvmatnd’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:118: warning: ‘convert_to_CvArr’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:119: warning: ‘convert_to_IplImage’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:120: warning: ‘convert_to_CvMat’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:121: warning: ‘convert_to_CvMatND’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:148: warning: ‘void translate_error_to_exception()’ defined but not used /Users/abdalrahmaneweiwi/opencv/opencv/interfaces/python/cv.cpp:171: warning: ‘int failmsg(const char*, ...)’ defined but not used maker2: *** [interfaces/python/CMakeFiles/cvpy.dir/cv.o] Error 1 maker1: *** [interfaces/python/CMakeFiles/cvpy.dir/all] Error 2 maker1: *** Waiting for unfinished jobs.... [ 92%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acondens.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acontourmoments.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acontours.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acontoursmatch.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aconvhull.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acornerssubpix.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/acreatecontourtree.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/adistancetransform.o [ 93%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/adrawing.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/adrawing_regress.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aeigenobjects.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aemd.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aestimaterigid.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/affine3d_estimator.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/afilter.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/afloodfill.o [ 94%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/afundam.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/ahistograms.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/ahmmobs.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/ahoughtransform.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aimage.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aimgwarp.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/akalman.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/akmeans.o [ 95%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/amatchcontourtrees.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/amoments.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/amotiontemplates.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/amotseg.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/amser.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/anearestneighbors.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aoptflowhs.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aoptflowlk.o [ 96%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aoptflowpyrlk.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aposit.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/apyrsegmentation.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/areprojectImageTo3D.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/asnakes.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/astereocorrespondencegc.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/astereomatching.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/asubdivisions.o [ 97%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/atemplmatch.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/athresh.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/aundistort.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/bcameracalibration.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/bchesscorners.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/bundistort.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/cvchessboardgenerator.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/cvtest.o [ 98%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/detectors_test.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/fast.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/grabcut.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/highguitest.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/highguitest_guionly.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/inpaint.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/optflow.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/tchesscorners.o [ 99%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/tsysa.o [100%] Building CXX object tests/cv/CMakeFiles/cvtest.dir/src/watershed.o Linking CXX executable ../../bin/cvtest [100%] Built target cvtest make: *** [all] Error 2
Associated revisions
Merge pull request #257 from AnnaKogan8:perf-tests-timing-script
History
Updated by Ryan Lei almost 15 years ago
I've read that you do need the python interface, but it works for me: Mac OS X 10.6.3
Because my cmake configuration says: <pre> -- Interfaces: -- Old Python: 0 -- Python: ON -- Python interpreter: /opt/local/bin/python2.6 -- Python numpy: 0 </pre> The Python interpreter goes to the one installed by Macports, not the Apple-built-in python. The Macports one is newer (2.6.5, Apr, 2010), and the built-in one is older (2.6.1, Feb, 2010): <pre> $ /opt/local/bin/python2.6 Python 2.6.5 (r265:79063, Apr 5 2010, 01:51:43) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin $ /usr/bin/python Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin </pre>
- Status changed from Open to Done
- (deleted custom field) set to worksforme
Updated by anonymous - almost 15 years ago
romanab, can you confirm? What does the output of cmake configuration say? Thanks.