First error:
file://<mypath>/PGBarcodeScanner.mm: error: Semantic Issue:
'autorelease' is unavailable: not available in automatic reference
counting mode
file://<mypath>/PGBarcodeScanner.mm: error: Automatic Reference
Counting Issue: ARC forbids explicit message send of 'autorelease'
file://<mypath>/PGBarcodeScanner.mm: error: Automatic Reference
Counting Issue: ARC forbids explicit message send of 'dealloc'
file://<mypath>/PGBarcodeScanner.mm: error: Semantic Issue:
'autorelease' is unavailable: not available in automatic reference
counting mode
...
And some undefined symbols???
Undefined symbols for architecture armv7:
"zxing::Result::getBarcodeFormat() const", referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"zxing::MultiFormatReader::MultiFormatReader()", referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"zxing::DecodeHints::DecodeHints()", referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"zxing::DecodeHints::addFormat(zxing::BarcodeFormat)", referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"zxing::ReaderException::ReaderException(char const*)", referenced from:
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in
PGBarcodeScanner.o
"zxing::Result::getText()", referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"zxing::HybridBinarizer::HybridBinarizer(zxing::Ref<zxing::LuminanceSource>)",
referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"typeinfo for zxing::ReaderException", referenced from:
typeinfo for zxing::ReaderException*in PGBarcodeScanner.o
GCC_except_table60 in PGBarcodeScanner.o
"zxing::GreyscaleLuminanceSource::GreyscaleLuminanceSource(unsigned
char*, int, int, int, int, int, int)", referenced from:
-[PGbcsProcessor getLuminanceSourceFromSample:imageBytes:] in
PGBarcodeScanner.o
"zxing::BinaryBitmap::BinaryBitmap(zxing::Ref<zxing::Binarizer>)",
referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"zxing::String::getText() const", referenced from:
-[PGbcsProcessor
captureOutput:didOutputSampleBuffer:fromConnection:] in
PGBarcodeScanner.o
"typeinfo for zxing::IllegalArgumentException", referenced from:
GCC_except_table60 in PGBarcodeScanner.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
Is it because of armv7 architecture?
Micha.
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
Thx.
--
I've opened up an issue for this:
https://github.com/phonegap/phonegap-plugins/issues/231
--
Patrick Mueller - http://muellerware.org
here's a link to a stack overflow question on the topic:
http://stackoverflow.com/questions/7778356/how-to-enable-disable-automatic-reference-counting
i will try it...
but any solution for the barcodescanner problem yet?
Micha.
Just about all caught up with stuff after my vacation, should be looking
into all the barcode scanner issues today.
I've opened a new bug to track the potential ARC issue. Looking for
work-arounds. My current thought is that if we can recognize ARC is
enabled for the compilation of the barcode files, that we cause the
compile to generate an error with a diagnostic message that "ARC is not
supported" (with more verbage, on how to recover, presumably).
Any thoughts welcome.
https://github.com/phonegap/phonegap-plugins/issues/235
As noted in https://github.com/phonegap/phonegap-plugins/issues/231 , it
turns out that you can just delete the JSON includes. The code used to
use the JSON libraries directly, but changed the code at some point so
that it's no longer needed.
I've added some proposed verbage to the Barcode Scanner readme
concerning disabling ARC, in the following issue:
https://github.com/phonegap/phonegap-plugins/issues/235#openstruct-118025260
I should mention I tested with phonegap 1.2.0 on XCode 4.2 on Mac OSX
10.7. None of the changes I made should cause issues in other environments.
-------------------------------------------------------------
iOS BarcodeScanner: requires old JSON include in the .mm file
-------------------------------------------------------------
https://github.com/phonegap/phonegap-plugins/issues/231
Removed the JSON header files from the .mm file, as they were no longer
needed, and causing compile errors.
-------------------------------------------------------------
iOS BarcodeScanner: README fixes
-------------------------------------------------------------
https://github.com/phonegap/phonegap-plugins/issues/232
The README errors relating to the "barcodeScanner" typo have been
resolved. In addition, a note was added concerning the "build" process
only being needed if you update the zxing code.
-------------------------------------------------------------
iOS BarcodeScanner: does not compile / link when using ARC
-------------------------------------------------------------
https://github.com/phonegap/phonegap-plugins/issues/235
Added notes to the README on how to avoid compilation errors relating to
Automagic Reference Counting (ARC).