【问题标题】:Undefined symbols for architecture armv7 erros in project using zxing GreyscaleLuminanceSource XCode 5使用 zxing GreyscaleLuminanceSource XCode 5 的项目中架构 armv7 错误的未定义符号
【发布时间】:2014-02-19 15:06:40
【问题描述】:

我的 iOS 7 项目中的错误,部署目标 = 6.1,使用最新的 ZXingWidget:

Undefined symbols for architecture armv7:
  "zxing::GreyscaleLuminanceSource::GreyscaleLuminanceSource(unsigned char*, int, int, int, int, int, int)", referenced from:
  -[SSAColorCardReader readImage] in SSAColorCardReader.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

连接到我的 Mac 的设备是 iPhone 5S。

项目设置如下:Target 的 Build Settings Architecture = Standard,Build Active Architecture Only = NO,Valid Architectures = armv7。

与我的问题密切相关并尝试了建议但没有成功的帖子是here (SO post)。回顾这个和其他喜欢它并尝试他们的建议我仍然无法解决这个问题。 update* 你知道我做错了什么吗? *** 当我为 iPhone 5S 编译 ScanTest 应用程序时,它可以工作,所以我希望能找到解决方案。

【问题讨论】:

    标签: iphone ios7 xcode5 zxing


    【解决方案1】:

    我找到了解决方案:在部署目标 iOS7 上,似乎需要将编译器设置为 C++ 11 (sdt) 以及 libc++ (LLVM)

    切换这些设置后,构建成功运行

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多