opencv - Unable to build OpenCV2 since lots of Object-C error -
guys
i'm trying build opencv2 on os x 10.8.3 under this official installation guide.
the configure step works fine:
cmake -d:cmake_build_type=release ..
but when build make:
make -j 8
there turns out lots of object-c errors this:
/system/library/frameworks/foundation.framework/headers/nsstring.h:260: error: expected ';' before '__attribute__' /system/library/frameworks/foundation.framework/headers/nsstring.h:261: error: expected ':' before '(' token /system/library/frameworks/foundation.framework/headers/nsstring.h:261: error: expected type-specifier before '(' token /system/library/frameworks/foundation.framework/headers/nsstring.h:261: error: expected ')' before '(' token /system/library/frameworks/foundation.framework/headers/nsstring.h:261: error: expected identifier before '(' token /system/library/frameworks/foundation.framework/headers/nsstring.h:261: error: expected ';' before '(' token /system/library/frameworks/foundation.framework/headers/nsstring.h:262: error: expected ';' before '__attribute__' in file included /system/library/frameworks/foundation.framework/headers/foundation.h:52, /system/library/frameworks/qtkit.framework/headers/qterror.h:8, /system/library/frameworks/qtkit.framework/headers/qtkit.h:11, /users/kuankuan/desktop/roysdata/workspace/opencv/opencv-2.4.5/modules/highgui/src/cap_qtkit.mm:34: /system/library/frameworks/foundation.framework/headers/nspointerarray.h:57: error: expected ';' before '__attribute__' /system/library/frameworks/foundation.framework/headers/nspointerarray.h:58: error: expected ';' before '__attribute__' in file included /system/library/frameworks/foundation.framework/headers/foundation.h:54, /system/library/frameworks/qtkit.framework/headers/qterror.h:8, /system/library/frameworks/qtkit.framework/headers/qtkit.h:11, /users/kuankuan/desktop/roysdata/workspace/opencv/opencv-2.4.5/modules/highgui/src/cap_qtkit.mm:34: /system/library/frameworks/foundation.framework/headers/nsport.h:68: error: expected constructor, destructor, or type conversion before '-' token[ 42%] /system/library/frameworks/foundation.framework/headers/nsport.h:115: error: expected constructor, destructor, or type conversion before '-' token in file included /system/library/frameworks/foundation.framework/headers/foundation.h:57,
i have installed xcode , xcode command line tool. how can deal issue ? i'm going use opencv under c++.
many !
Comments
Post a Comment