Ask Your Question

Revision history [back]

Compiling problems on ios

Getting this problems:

Ld /Users/ashik/Library/Developer/Xcode/DerivedData/proj-ecgyfwzjltwqnfcdbdyzabqozbba/Build/Products/Debug-iphonesimulator/proj.app/proj normal i386 cd /Users/ashik/Documents/myproj setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/ashik/Library/Developer/Xcode/DerivedData/proj-ecgyfwzjltwqnfcdbdyzabqozbba/Build/Products/Debug-iphonesimulator -F/Users/ashik/Library/Developer/Xcode/DerivedData/proj-ecgyfwzjltwqnfcdbdyzabqozbba/Build/Products/Debug-iphonesimulator -F/Users/ashik/Documents/myproj -F/Users/ashik/Documents/myproj/ios -filelist /Users/ashik/Library/Developer/Xcode/DerivedData/proj-ecgyfwzjltwqnfcdbdyzabqozbba/Build/Intermediates/proj.build/Debug-iphonesimulator/proj.build/Objects-normal/i386/proj.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -all_load -Obj-C -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework opencv2 -framework CoreImage -lz -framework ImageIO -weak_framework AVFoundation -framework AssetsLibrary /Users/ashik/Library/Developer/Xcode/DerivedData/proj-ecgyfwzjltwqnfcdbdyzabqozbba/Build/Products/Debug-iphonesimulator/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework CFNetwork -framework CoreLocation -framework CoreVideo -weak_framework CoreMedia -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -o /Users/ashik/Library/Developer/Xcode/DerivedData/proj-ecgyfwzjltwqnfcdbdyzabqozbba/Build/Products/Debug-iphonesimulator/proj.app/proj

Undefined symbols for architecture i386: "std::runtime_error::what() const", referenced from: vtable for cvflann::FLANNException in opencv2(miniflann.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::find_last_of(char const, unsigned long, unsigned long) const", referenced from: cv::CommandLineParser::CommandLineParser(int, char const const, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(command_line_parser.o) cv::glob(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > >&, bool) in opencv2(glob.o) cv::detail::matchesGraphAsString(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > >&, std::__1::vector<cv::detail::matchesinfo, std::__1::allocator<cv::detail::matchesinfo=""> >&, float) in opencv2(motion_estimators.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::find(char const, unsigned long, unsigned long) const", referenced from: cv::DescriptorExtractor::create(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(descriptors.o) cv::FeatureDetector::create(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(detectors.o) cv::Directory::GetListFiles(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, bool) in opencv2(inputoutput.o) cv::Directory::GetListFolders(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, bool) in opencv2(inputoutput.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::find(char, unsigned long) const", referenced from: cv::CommandLineParser::CommandLineParser(int, char const* const, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(command_line_parser.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::rfind(char, unsigned long) const", referenced from: cv::LatentSvmDetector::load(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > > const&) in opencv2(latentsvmdetector.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::compare(char const) const", referenced from: cv::CommandLineParser::Impl::split_string(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, char, bool) const in opencv2(command_line_parser.o) cv::CommandLineParser::printMessage() const in opencv2(command_line_parser.o) cv::FeatureDetector::create(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(detectors.o) cv::AdjusterAdapter::create(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(dynamic.o) cv::DescriptorMatcher::create(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(matchers.o) cv::CascadeClassifier::Data::read(cv::FileNode const&) in opencv2(cascadedetect.o) cv::LatentSvmDetector::load(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > > const&) in opencv2(latentsvmdetector.o) ... "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from: cv::AlgorithmInfo::get(cv::Algorithm const, char const, int, void) const in opencv2(algorithm.o) void std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Param>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Param> > >::__push_back_slow_path<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Param> const>(std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Param> const&) in opencv2(algorithm.o) std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > >::__append(unsigned long) in opencv2(algorithm.o) std::__1::enable_if<__is_forward_iterator<cv::mat*>::value, void>::type std::__1::vector<cv::mat, std::__1::allocator<cv::mat=""> >::assign<cv::mat*>(cv::Mat, cv::Mat) in opencv2(algorithm.o) std::__1::vector<cv::mat, std::__1::allocator<cv::mat=""> >::__append(unsigned long) in opencv2(algorithm.o) void std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Algorithm ()()>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Algorithm ()()> > >::__push_back_slow_path<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Algorithm ()()> const>(std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, cv::Algorithm ()()> const&) in opencv2(algorithm.o) void std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > > >::__push_back_slow_path<std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const>(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(command_line_parser.o) ... "std::__1::__vector_base_common<true>::__throw_out_of_range() const", referenced from: cv::BriskScaleSpace::getKeypoints(int, std::__1::vector<cv::keypoint, std::__1::allocator<cv::keypoint=""> >&) in opencv2(brisk.o) cv::FREAK::buildPattern() in opencv2(freak.o) CirclesGridClusterFinder::parsePatternPoints(std::__1::vector<cv::point_<float>, std::__1::allocator<cv::point_<float> > > const&, std::__1::vector<cv::point_<float>, std::__1::allocator<cv::point_<float> > > const&, std::__1::vector<cv::point_<float>, std::__1::allocator<cv::point_<float> > >&) in opencv2(circlesgrid.o) CirclesGridFinder::isDetectionCorrect() in opencv2(circlesgrid.o) CirclesGridFinder::findLongestPath(std::__1::vector<graph, std::__1::allocator<graph=""> >&, Path&) in opencv2(circlesgrid.o) cv::ChamferMatcher::matching(cv::ChamferMatcher::Template&, cv::Mat&) in opencv2(chamfermatching.o) "std::__1::__basic_string_common<true>::__throw_length_error() const", referenced from: std::__1::basic_stringbuf<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::str() const in opencv2(miniflann.o) std::__1::basic_stringbuf<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::str() const in opencv2(retina.o) std::__1::basic_stringbuf<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::str() const in opencv2(motion_estimators.o) "std::__1::locale::has_facet(std::__1::locale::id&) const", referenced from: std::__1::basic_filebuf<char, std::__1::char_traits<char=""> >::basic_filebuf() in opencv2(spinimages.o) std::__1::basic_filebuf<char, std::__1::char_traits<char=""> >::basic_filebuf() in opencv2(calonder.o) std::__1::basic_filebuf<char, std::__1::char_traits<char=""> >::basic_filebuf() in opencv2(global_motion.o) "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from: cv::CommandLineParser::printErrors() const in opencv2(command_line_parser.o) cv::CommandLineParser::printMessage() const in opencv2(command_line_parser.o) std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<char, std::__1::char_traits<char="">, std::__1::allocator<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(command_line_parser.o) std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(command_line_parser.o) std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(out.o) std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char) in opencv2(out.o)

Any ideas guys?