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 ++コンパイラオプションを含む)をデモプロジェクトのプロパティと比較しました。すべてが正しく行われています。