0

zxing私は自分のアプリケーションでlibを使用していOS Xます。プロジェクトに含めzxing-objcて、zxingデモ(zxing-root/objc/examples/demo)から別のViewControllerクラスにコードをコピーして貼り付けました。プロジェクトをコンパイルしようとすると、次のリンカーエラーが発生します。

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_QTCaptureDevice", referenced from:
     objc-class-ref in ScanViewController.o
  "_OBJC_CLASS_$_ZXCapture", referenced from:
      objc-class-ref in ScanViewController.o
  "_QTMediaTypeMuxed", referenced from:
      -[ScanViewController performVideoSourceScan] in ScanViewController.o
  "_QTMediaTypeVideo", referenced from:
      -[ScanViewController performVideoSourceScan] in ScanViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

すべてのコードを注意深くチェックし、プロジェクトのプロパティ(c ++コンパイラオプションを含む)をデモプロジェクトのプロパティと比較しました。すべてが正しく行われています。

4

1 に答える 1