phonegap/phonegap-plugins — Issue #277: Barcode Reader Build Errors
Author: DreamteamOne
Created: 2011-12-09 06:13:00+00:00
State: open

Hi,

Can someone please help me with the following:

I am using Lion 10.7.2 + PhoneGap 1.2.0 + Xcode 4.2.1 (Build 4D502)

When I run to build the BarcodeReader test app I am getting the following errors:

--

Ld /Users/Admin/Library/Developer/Xcode/DerivedData/ZXingBarcodeScanner-gxfuyjsycoeqygbumglzcqrbysns/Build/Products/Debug-iphonesimulator/ZXingBarcodeScanner.app/ZXingBarcodeScanner normal i386
cd /Users/Admin/Desktop/XZingBarcodeScanner/ZXingBarcodeScanner
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/Admin/Library/Developer/Xcode/DerivedData/ZXingBarcodeScanner-gxfuyjsycoeqygbumglzcqrbysns/Build/Products/Debug-iphonesimulator -F/Users/Admin/Library/Developer/Xcode/DerivedData/ZXingBarcodeScanner-gxfuyjsycoeqygbumglzcqrbysns/Build/Products/Debug-iphonesimulator -F/Users/Shared/PhoneGap/Frameworks -filelist /Users/Admin/Library/Developer/Xcode/DerivedData/ZXingBarcodeScanner-gxfuyjsycoeqygbumglzcqrbysns/Build/Intermediates/ZXingBarcodeScanner.build/Debug-iphonesimulator/ZXingBarcodeScanner.build/Objects-normal/i386/ZXingBarcodeScanner.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak_library /usr/lib/libSystem.B.dylib -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -weak_framework Foundation -weak_framework UIKit -weak_framework CoreGraphics -weak_framework AddressBook -weak_framework AddressBookUI -weak_framework AudioToolbox -weak_framework AVFoundation -weak_framework CoreLocation -weak_framework MediaPlayer -weak_framework QuartzCore -weak_framework SystemConfiguration -weak_framework MobileCoreServices -weak_framework CoreMedia -weak_framework PhoneGap -o /Users/Admin/Library/Developer/Xcode/DerivedData/ZXingBarcodeScanner-gxfuyjsycoeqygbumglzcqrbysns/Build/Products/Debug-iphonesimulator/ZXingBarcodeScanner.app/ZXingBarcodeScanner

Undefined symbols for architecture i386:
"_CVPixelBufferLockBaseAddress", referenced from:
-[PGbcsProcessor getImageFromSample:] in PGBarcodeScanner.o
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in PGBarcodeScanner.o
"_CVPixelBufferGetBytesPerRow", referenced from:
-[PGbcsProcessor getImageFromSample:] in PGBarcodeScanner.o
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in PGBarcodeScanner.o
"_CVPixelBufferGetWidth", referenced from:
-[PGbcsProcessor getImageFromSample:] in PGBarcodeScanner.o
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in PGBarcodeScanner.o
"_CVPixelBufferGetHeight", referenced from:
-[PGbcsProcessor getImageFromSample:] in PGBarcodeScanner.o
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in PGBarcodeScanner.o
"_CVPixelBufferGetBaseAddress", referenced from:
-[PGbcsProcessor getImageFromSample:] in PGBarcodeScanner.o
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in PGBarcodeScanner.o
"_CVPixelBufferUnlockBaseAddress", referenced from:
-[PGbcsProcessor getImageFromSample:] in PGBarcodeScanner.o
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in PGBarcodeScanner.o
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref in PGBarcodeScanner.o
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
-[PGbcsProcessor setUpCaptureSession] in PGBarcodeScanner.o
"_iconv_open", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::basic_string, std::allocator >&, unsigned char const*, unsigned long, char const*)in zxing-all-in-one.o
"_iconv", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::basic_string, std::allocator >&, unsigned char const*, unsigned long, char const*)in zxing-all-in-one.o
"_iconv_close", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::basic_string, std::allocator >&, unsigned char const*, unsigned long, char const*)in zxing-all-in-one.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

--

Thank you!

James