c++ - apple mach-O linker (id) error with open cv 3.2.0 -
i installed opencv 3.2.0-dev on mac(10.12) using homebrew following instruction http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/.
i solved qtkit.h problem skipping checkout step.
then tried build small c++ program in xcode 8 because i'm more familiar c++ python, gave me apple mach-o linker (id) error shown here: error message screenshot
the search paths header , library /usr/local/include , /usr/local/lib respectively. , linker flags
-lopencv_calib3d -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videoio -lopencv_videostab
and know when use opencv version later 3.1(i think), linker flags can replaced opencv_world310.lib. there similar way in xcode?
anyone can me that?
homebrew install opencv in /usr/local/cellar/
, not in /usr/local/
. need modify header , library search paths correspondingly.
Comments
Post a Comment