xcode 编译opencv ios容易出现的错误
2013-12-31 16:15
417 查看
(1)出现 "std::__1::basic_ostream<char, std::__1::char_traits<char> >::flush()"之类的错误
解决办法是加入c++库 ,想项目中加入libc++.dylib
Select your project (the blue file) in your project navigator (Command 1 if it's hidden)
Select your target
Go to Build Phases
Expand "Link Binary With Libraries"
Click the "+"
Type libc++.dylib in the search bar.
Select the libc++.dylib file and press "Add"
(2)出现下面错误
解决方法是添加 AVFoundation , CoreVideo 和 CoreMedia frameworks
(3)出现下面错误assert错误时,需要添加AssetsLibrary.framework
Undefined symbols for architecture i386: "std::__1::basic_ostream<char, std::__1::char_traits<char> >::flush()", referenced from: cv::gpu::error(char const*, char const*, int, char const*) in opencv2(gpumat.o) "std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)", referenced from: 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> >::sentry::~sentry()", referenced from: 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> >::operator<<(int)", referenced from: cv::gpu::error(char const*, char const*, int, char const*) in opencv2(gpumat.o) "std::__1::cerr", referenced from:
解决办法是加入c++库 ,想项目中加入libc++.dylib
Select your project (the blue file) in your project navigator (Command 1 if it's hidden)
Select your target
Go to Build Phases
Expand "Link Binary With Libraries"
Click the "+"
Type libc++.dylib in the search bar.
Select the libc++.dylib file and press "Add"
(2)出现下面错误
"_CVPixelBufferGetBaseAddress", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o "_CVPixelBufferUnlockBaseAddress", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o "_CVPixelBufferLockBaseAddress", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o "_CMSampleBufferGetImageBuffer", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o "_CVPixelBufferGetHeight", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o "_kCVPixelBufferPixelFormatTypeKey", referenced from: _kCVPixelBufferPixelFormatTypeKey$non_lazy_ptr in MainViewController.o (maybe you meant: _kCVPixelBufferPixelFormatTypeKey$non_lazy_ptr) "_CVPixelBufferGetWidth", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o "_CVPixelBufferGetBytesPerRow", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o "_CMTimeMake", referenced from: -[MainViewController setupCaptureSession] in MainViewController.o "_CVPixelBufferGetDataSize", referenced from: -[MainViewController imageFromSampleBuffer:] in MainViewController.o
解决方法是添加 AVFoundation , CoreVideo 和 CoreMedia frameworks
(3)出现下面错误assert错误时,需要添加AssetsLibrary.framework
相关文章推荐
- iOS:Xcode的beta下编译低版本项目时,出现的Link错误( "_fwrite$UNIX2003", referenced from:)
- iOS 中使用 XIB 自定义cell 的两种方法 以及 编译出现常见 的错误 ++++(xcode6.0之后)
- 关于Xcode编译ios程序时出现的错误:The identity 'iPhone Developer' doesn't match any valid certificate/private key
- 编写目标跟踪程序时出现Tracher未定义的错误-->opencv_contrib编译(Windows)
- 解决Xcode 6 beta 编译Cocos2d-x iOS项目失败 在Xcode 6 里编译 iOS项目时可能会失败,提示如下错误: Undefined symbols
- Xcode技巧:项目导入外部文件后编译运行出现Undefined symbols for architecture x86_64错误
- IOS开发笔记:编译时出现的错误
- iOS开发中,Xcode编译错误:does not contain bit code
- IOS错误之----通过XCode上传App应用程序出现证书签名错误的解决方法
- XCode编译Worklight native源码出现“buildtime.sh: Permission denied”错误的解决方法
- iOS工程中Xcode出现my mac 64-bit错误
- opencv-3.1.0在Ubuntu系统上使用g++编译时出现“/usr/bin/ld: cannot find -lippicv ” 错误及其解决办法
- iOS开发中Xcode编译错误 linker command failed with exit co
- iOS巅峰之编译时出现的错误(总结)
- IOS编译过程出现过的错误汇总
- 【ios开发之疑难杂症】xcode运行出现SpringBoard 无法启动应用程序(错误:7)
- XCode编译Iphone出现的问题:code signing is required for product type 'Application' in SDK 'iOS 4.3'
- 升级到xcode4.2 iOS sdk 5.0旧版工程编译后出现的警告解决办法
- ubuntu14.04编译opencv-2.4.9出现“nvcc fatal : Unsupported gpu architecture 'compute_11'”错误
- IOS开发笔记:编译时出现的错误