Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Trusted Contributor
Bluenoser
Posts: 164
Registered: ‎04-04-2012
My Carrier: Bell

barcodescanner example

Has anyone been able to compile the barcodescanner example? There seems to be a lot of things missing or misconfigured.

Please use plain text.
Regular Contributor
Q-T
Posts: 69
Registered: ‎12-02-2011
My Carrier: none

Re: barcodescanner example

I just tried to compile it and it worked fine.  There were these warning messages during compile:

WARNING: Failure to find: ../src/*.hpp
WARNING: Failure to find: ../src/*.h
WARNING: Failure to find: ../src/*.hpp
WARNING: Failure to find: ../src/*.h

 

Probable because there seems to be no .hpp or h files. only one main.cpp file.

 

If you look in its sub directory : barcodereader/arm/o.le-v7-g (assuming you did debug mode) you will see the executable

Please use plain text.
Regular Contributor
Q-T
Posts: 69
Registered: ‎12-02-2011
My Carrier: none

Re: barcodescanner example

Bluenoser

 

I  uploaded  the app to the phone and found it to work.  Not sure how practical a camera barcode scanner is.  Seeing how RIM is in the enterprise space it would be nice to have a see a phone that could take a real bar code scanner as an attachment.

 

What do you say RIM ?

Please use plain text.
Trusted Contributor
Bluenoser
Posts: 164
Registered: ‎04-04-2012
My Carrier: Bell

Re: barcodescanner example

Yes. I got the barcodereader example to work, but the barcodescanner does not.

Please use plain text.
Regular Contributor
Q-T
Posts: 69
Registered: ‎12-02-2011
My Carrier: none

Re: barcodescanner example

sorry did not know there was a difference where did you get the scanner app from ?
Please use plain text.
Trusted Contributor
Bluenoser
Posts: 164
Registered: ‎04-04-2012
My Carrier: Bell

Re: barcodescanner example

Please use plain text.
BlackBerry Development Advisor
PBernhardt
Posts: 155
Registered: ‎12-16-2008
My Carrier: Bell

Re: barcodescanner example

This appears to be because I forgot to include the translations/ directory when I added to project to GitHub. We should have it fixed shortly.

 

The BarcodeScanner sample shows you how to use the built in ZXing library to make the decoder yourself, and how to handle the preview frames coming from the camera. This would be useful if you wanted to, for example, scan inverted barcodes. It also shows you how to set up a custom component, and an invocation target.

 

If you just want to scan supported baracodes, the barcodereader sample is the way to go. Just tell it to scan the formats you want.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt
Please use plain text.