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 加进去

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

posted @ 2014-03-31 10:50 子午 阅读(...) 评论(...) 编辑 收藏