ios - Undefined symbols for architecture i386: for OpenCV project -


i trying build this project, display below error,

undefined symbols architecture i386:   "cv::merge(std::vector<cv::mat, std::allocator<cv::mat> > const&, cv::_outputarray const&)", referenced from:       -[rrmainviewcontroller colorsobeledge:isvertical:] in rrmainviewcontroller.o   "cv::split(cv::mat const&, std::vector<cv::mat, std::allocator<cv::mat> >&)", referenced from:       -[rrmainviewcontroller colorsobeledge:isvertical:] in rrmainviewcontroller.o   "cv::exception::exception(int, std::string const&, std::string const&, std::string const&, int)", referenced from:       -[rrmainviewcontroller floodfillpostprocess:withcolor:] in rrmainviewcontroller.o ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation) 

i have added opencv.framework , added line in .pch file

#ifdef __cplusplus #import <opencv2/opencv.hpp> #endif 

added library in project

libstdc++.6.0.9.dylib
libc++.dylib
libz.1.2.5.dylib

but still got above error.. please help... thanx in advance..

here screenshot build phase

enter image description here

=================================================================
solved
this answer @karthika has helped me.

opencv framework or other files not added in build phases. go project settings->build phases->link binary libraries , check if opencv exists in list. otherwise click on + , add go in build phases compile sources , make sure rrmainviewcontroller.m present in list. otherwise click on + , add it

this answer may too: undefined symbols architecture i386: _objc_class_$_skpsmtpmessage", referenced from: error


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -