ios ZBar扫二维码奇奇怪怪的错误

Undefined symbols for architecture armv7:

"_CVPixelBufferGetHeight", referenced from:

-[ZBarCVImage convertCVtoRGB] in libzbar.a(ZBarCVImage.o)

"_CVPixelBufferRetain", referenced from:

-[ZBarCVImage setPixelBuffer:] in libzbar.a(ZBarCVImage.o)

"_CVPixelBufferRelease", referenced from:

-[ZBarCVImage setPixelBuffer:] in libzbar.a(ZBarCVImage.o)

"_CMSampleBufferGetNumSamples", referenced from:

-[ZBarCaptureReader captureOutput:didOutputSampleBuffer:fromConnection:] in libzbar.a(ZBarCaptureReader.o)

"_iconv_open", referenced from:

__nl_find_msg inGStreamer(libintl_a_i386_-dcigettext.o)

这些错误并非是配置不正确,而是需要增加libiconv.dylib这个库,

把coreVideo.FrameWork加进去!CoreMedia.FrameWork 加进去

增加之后就可以正常编译运行了,

上一篇:Express 教程 01 - 入门教程之经典的Hello World


下一篇:Python基础+Pythonweb+Python扩展+Python选修四大专题 超强麦子学院Python35G视频教程